Error: "Remediation failed for Host" during VCF 9.1 cluster remediation
search cancel

Error: "Remediation failed for Host" during VCF 9.1 cluster remediation

book

Article ID: 440918

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Cluster remediation via SDDC Manager fails with: A general system error occurred: Remediation failed for Host '####'
  • Remediation fails with an "HTTP Error 403: Forbidden" error when attempting to download the VIB
  • In /var/log/vmware/vmware-updatemgr/vum-server/vmware-vum-server.log on the vCenter Server, similar entries are seen

    YYYY-MM-DDTHH:MM:SS ERROR vmware-vum-server <PID> [vc@4413 sub="RemediateClusterTask" opID="<OP ID>"] [RemediateClusterTask, 863] Task:com.vmware.vcIntegrity.lifecycle.RemediateClusterTask ID:<Remediate task ID>. Host apply task taskId: <Task ID> failed for host: <ESX FQDN>
    YYYY-MM-DDTHH:MM:SS ERROR vmware-vum-server <PID> [vc@4413 sub="RemediateClusterTask" opID="<OP ID>"] [RemediateClusterTask, 893] Task:com.vmware.vcIntegrity.lifecycle.RemediateClusterTask ID:<Remediate task ID>. Host (host-<ID>) Apply task (<Task ID>) Failed with error (Id:com.vmware.vcIntegrity.lifecycle.EsxImage.VibDownloadError) (Msg:An error occurred while downloading VIB: 'URL: 'http://<vCenter FQDN>:9084/vum/repository/hostupdate/vmw/vib20/qedrntv/QLC_bootbank_qedrntv_3.71.90.2-1OEM.800.1.0.20613240.vib' Error: '('http://<vCenter FQDN>:9084/vum/repository/hostupdate/vmw/vib20/qedrntv/QLC_bootbank_qedrntv_3.71.90.2-1OEM.800.1.0.20613240.vib', '/tmp/vibdownload/QLC_bootbank_qedrntv_3.71.90.2-1OEM.800.1.0.20613240.vib', 'HTTP Error 403: Forbidden')'')
    YYYY-MM-DDTHH:MM:SS INFO vmware-vum-server 11278 [vc@4413 sub="Telemetry"] [TelemetryManager 278] Sending telemetry data: {"@type":"pman_error_report","taskId":"<Task ID>|<Remediate task ID>","entityId":"<ESX entity ID>|host-<ID>","parentTaskId":"","errorMessageId":"com.vmware.vcIntegrity.lifecycle.RemediateClusterTask.HostApplyFailed","errorMessage":"Remediation failed for Host '<ESX FQDN>'","errorTime":"<>"}

Environment

VCF 9.1

Cause

The root cause of this issue stems from improper owner and group permission settings on the vCenter Server VIBs. For environments running VCF 9.1, these VIBs must be assigned to the updatemgr user and the vum-filedownload-group group.

  • Validating the permission of the above VIB via SSH session on vCenter

ls -larth /storage/updatemgr/patch-store/hostupdate/vmw/vib20/qedentv/

drwxr-xr-x 175 updatemgr vum-filedownload-group    4096 May 11 18:13 ..
-rw-r--r--   1 updatemgr updatemgr              1395476 May 11 18:13 QLC_bootbank_qedentv_3.40.39.0-1OEM.700.1.0.15843807.vib
-rw-r--r--   1 updatemgr updatemgr              1391360 May 11 18:13 VMW_bootbank_qedentv_3.40.5.75-11vmw.900.0.24755229.vib

 

Resolution

To resolve the issue, update the permission for the vibs on the vCenter server using either of the below methods

Method 1: Restart the Update Manager service on vCenter server

  1. Log in to vCenter Management Interface using root credentials. Refer to Log In to the vCenter Appliance Management Interface
  2. Navigate to Services on the left pane -> select VMware vSphere Update Manager -> click Restart

Method 2: Apply the permission manually to the reported VIB files

  1. Log in to vCenter using ssh
  2. Navigate to the folder reported in the logs above and update the permission

    Sample:
    
    chgrp -R vum-filedownload-group /storage/updatemgr/patch-store/hostupdate/vmw/vib20/qedentv/*
    chmod -R g+rx /storage/updatemgr/patch-store/hostupdate/vmw/vib20/qedentv/*