Symptom:
1. Host fails to download vmware-hbr-agent.vib
2. Host constantly attempts to install vmware-hbr-agent.vib
You see the below tasks getting logged in ESXi -
Install
esxi01.###.com
An error occurred during host configuration.
com.vmware.vr-sa-030a9a90-6b44-4572-8ec2-d9bb12068284@vsphere.local
dd/mm/yyyy, hh:mm:ss
dd/mm/yyyy, hh:mm:ss
Task Name: Install
Status : An error occurred during host configuration: /usr/sbin/esxupdate returned with exit status: 7.
Initiator: com.vmware.vr-sa-0a440f82-9c5b-xxxx-9730-aca4ff53646c@vsphere.local
Target : Host 192.X.X.X
Server : vCenter vcsa.
###
.com
Validation:
"/var/log/vpxa.log"
, to see below events -yyyy-mm-ddThh:mm:ssZ info vpxa[2100734] [Originator@6876 sub=Default opID=71ab0cc4-ba6d-4222-a2a8-24c3c9002a57-HMSINT-29-72-65] [VpxLRO] -- ERROR task-41013 -- patchManager -- vim.host.PatchManager.InstallV2: vim.fault.PlatformConfigFault:
--> Result:
--> (vim.fault.PlatformConfigFault) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>,
--> text = "/usr/sbin/esxupdate returned with exit status: 7"
--> msg = "An error occurred during host configuration."
--> }
--> Args:
-->
--> Arg metaUrls:
--> (string) []
--> Arg bundleUrls:
--> (string) []
--> Arg vibUrls:
--> (string) [
--> "https://vSphere-replication.
###
.com:8043/vib/vmware-hbr-agent.vib"--> ]
--> Arg spec:
--> (vim.host.PatchManager.PatchManagerOperationSpec) {
--> proxy = "http://vcenter.
###
.com",--> port = 80,
--> userName = <unset>,
--> password = <unset>,
--> cmdOption = <unset>
--> }
"/var/log/vmware/vpxd.log"
, to see below events -yyyy-mm-ddThh:mm:ssZ info vpxd[07995] [Originator@6876 sub=Default opID=c2fb10d3-695c-466c-ab47-d1f67ae7c8a2-HMSINT-46-18] [VpxLRO] -- ERROR task-23603 -- patchManager-10 -- vim.host.PatchManager.InstallV2: vim.fault.PlatformConfigFault:
--> Result:
--> (vim.fault.PlatformConfigFault) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>,
--> text = "/usr/sbin/esxupdate returned with exit status: 7"
--> msg = "An error occurred during host configuration."
--> }
--> Args:
-->
--> Arg metaUrls:
--> (string) []
--> Arg bundleUrls:
--> (string) []
--> Arg vibUrls:
--> (string) [
--> "https://replication.
###
.com:8043/vib/vmware-hbr-agent.vib"--> ]
--> Arg spec:
--> (vim.host.PatchManager.PatchManagerOperationSpec) {
--> proxy = "http://vCenter.
###
.com",--> port = 80,
--> userName = <unset>,
--> password = <unset>,
--> cmdOption = <unset>
--> }
"/var/log/esxupdate.log"
, to see below events -An error occurred during host configuration: /usr/sbin/esxupdate returned with exit status: 7.
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: esximage.Downloader.DownloaderError: ('https://192.
###
.###
.:x8043/vib/vmware-hbr-agent.vib', '', '<urlopen error [Errno -3] Temporary failure in name resolution>')yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: During handling of the above exception, another exception occurred:
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: Traceback (most recent call last):
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: File "/usr/sbin/esxupdate", line 378, in main
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: cmd.Run()
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: File "/lib64/python3.8/site-packages/vmware/esx5update/Cmdline.py", line 161, in Run
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: res = t.InstallVibsFromSources(viburls, metaurls, None,
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: File "/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 834, in InstallVibsFromSources
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: self.GetVibsAndMetaFromSources(vibUrls, metaUrls, vibspecs,
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: vibsToInstall = Transaction._getVibsFromUrls(vibUrls)
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: raise Errors.VibDownloadError(url, None, str(e))
yyyy-mm-ddThh:mm:ssZ Er(11) esxupdate[8059525]: esximage.Errors.VibDownloadError: ('https://192.
###
.###
.###
:8043/vib/vmware-hbr-agent.vib', None, "('https://192.###
.###
.###
:8043/vib/vmware-hbr-agent.vib', '', '<urlopen error [Errno -3] Temporary failure in name resolutionyyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: --- Command: update Args: ['update'] Options:
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: esxupdate: INFO: viburls = ['https://replication.
###
.com:8043/vib/vmware-hbr-agent.vib'] yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Opening https://replication.
###
.com:8043/vib/vmware-hbr-agent.vib for download yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Proxies configured: {'http': 'http://vCenter.
###
.com:80', 'https': 'http://vCenter.###
.com:80', 'ftp': 'http://vCenter.###
.com:80'} yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: Proxy: ERROR: Proxy server cannot connect to the endpoint: HTTP/1.1 404 Not Found Connection: close Content-Type: text/html Content-Length: 48
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: WARNING: Download failed: Proxy server vCenter.
###
.com:80 returned status 404, 4 retry left... yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Proxies configured: {'http': 'http://vCenter.###
.com:80', 'https': 'http://vCenter.###
.com:80', 'ftp': 'http://vCenter.###
.com:80'} yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: Proxy: ERROR: Proxy server cannot connect to the endpoint: HTTP/1.1 404 Not Found Date: Connection: close Content-Type: text/html Content-Length: 48
yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: WARNING: Download failed: Proxy server vCenter.
###
.com:80 returned status 404, 3 retry left... yyyy-mm-ddThh:mm:ssZ esxupdate: 2405325: downloader: INFO: Proxies configured: {'http': 'http://vCenter.
.com:80', 'https': 'http://vCenter.###
###
.com:80', 'ftp': 'http://vCenter.###
.com:80'}
[root@ESXihost:~] esxcli software vib list | grep -i hbr
vmware-hbr-agent 8.0.2-0.0.22517424 VMware VMwareCertified 2024-03-21
[root@ESXihost:~] esxcli software vib remove -n vmware-hbr-agent
Removal Result
Message: Operation finished successfully.
Reboot Required: false
VIBs Installed:
VIBs Removed: VMware_bootbank_vmware-hbr-agent_8.0.2-0.0.22517424
VIBs Skipped:
esxcli network firewall set --enabled false
esxcli network firewall set --enabled true (Set it back to true after downloading the file)
[root@ESXihost:~] esxcli software vib install --proxy=http://vCenter.
###
.com:80 -v http://replication.###.com:8043/vib/vmware-hbr-agent.vib [VibDownloadError]
('https://replication.
###
.com:8043/vib/vmware-hbr-agent.vib', '', 'Proxy server vCenter.###
.com:80 returned status 404') url = //http://replication.
###
.com:8043/vib/vmware-hbr-agent.vibPlease refer to the log file for more details. (Refer to esxupdate.log)
Download the vib file manually from the VR appliance by navigating to /opt/vmware/hbr/vib/ using winscp and download the file to local system.
Upload the vib file to the local datastore of the host.
Note:
Bad Example:[root@vCenter:~] hostname
vCenter.
###
.com[root@Atlanta:~] hostname -i
172.X.X.X
root@ESXihost [ ~ ]# hostname
vCenter.
###
.comroot@ESXihost [ ~ ]# hostname -i
127.0.0.1
- The host and vCenter have the same hostnames - vCenter.x.com
[root@localhost:~] hostname
localhost.localdomain
[root@localhost:~] hostname -i
127.0.0.1
- Here, there is no DNS record created for this host.
1. Make sure vCenter, vSphere Replication, SRM and ESXi hosts are using the correct DNS server. (Decommissioned DNS must not be used)
2. Create forward and reverse lookup records in DNS for vCenter, vSphere Replication, SRM and ESXi hosts, if it does not exist.
3. If step 1 & 2 are not working, update the "hosts
" file of vCenter, vSphere Replication and/or SRM.
- Update the hosts file at "/etc/hosts
" file in the format of "IP FQDN Hostname
"; Example: "192.X.X.X SRM01.
"###
.local SRM01
1. Verify the DNS record for the host is correctly configured in DNS manager (forward/reverse lookup must be configured)
2. Verify the hostname in DCUI matches the DNS record
3. Verify the Primary & alternate DNS servers are correct & working from the host.
4. Verify the custom DNS suffix is set