Continues failed tasks on vCenter "An error occurred during host configuration: /usr/sbin/esxupdate returned with exit status: 7."
search cancel

Continues failed tasks on vCenter "An error occurred during host configuration: /usr/sbin/esxupdate returned with exit status: 7."

book

Article ID: 422894

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms : 

  • vCenter reports continues failed tasks "An error occurred during host configuration: /usr/sbin/esxupdate returned with exit status: 7."
 

Environment

  • VMware vSphere Replication 8.x
  • VMware vSphere Replication 9.x

Cause

The ESXi VIB installation will fails because the vSphere Replication certificate configured using a short hostname instead of the Fully Qualified Domain Name (FQDN).

Cause Validation:

  • The /var/log/vmware/vpxd/vpxd.log file on vCenter reported the following error, confirming the failure during VIB installation:
    YYYY-MM-DDTHH:MM.SSSZ error vpxd[07218] [Originator@6876 sub=Default opID=fe44c13d-fd4c-42cb-bcef-081e212dff69-HMSINT-75-eb] [VpxLRO] -- ERROR task-19756 -- ########-####-####-####-############(########-####-####-####-############) -- patchManager-1013 -- 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: /usr/sbin/esxupdate returned with exit status: 7."
    --> }
    --> Args:
    -->
    --> Arg metaUrls:
    --> (string) []
    --> Arg bundleUrls:
    --> (string) []
    --> Arg vibUrls:
    --> (string) [
    -->    "https://Replicationserver_Shortname:443/vib/vmware-hbr-agent.vib"
    --> ]
    --> Arg spec:
    -->

  • The var/run/log/esxupdate.log file from ESXi host reports that the ESXi attempted to download the VIB from vSphere Replication URL but the same failed due to inability to resolve the name in the URL:
    YYYY-MM-DDTHH:MM.SSSZ Er(11) esxupdate[25213329]: esximage.Errors.VibDownloadError: ('https://Replicationserver_Shortname:443/vib/vmware-hbr-agent.vib', None, "('https://Replicationserver_Shortname:443/vib/vmware-hbr-agent.vib', '', '<urlopen error [Errno -3] Temporary failure in name resolution>')")

    YYYY-MM-DDTHH:MM.SSSZ In(14) esxupdate[25214018]: Opening https://Replicationserver_Shortname:443/vib/vmware-hbr-agent.vib for download
    YYYY-MM-DDTHH:MM.SSSZ Wa(12) esxupdate[25214018]: Download failed: <urlopen error [Errno -3] Temporary failure in name resolution>, 4 retry left...
    YYYY-MM-DDTHH:MM.SSSZ Wa(12) esxupdate[25214018]: Download failed: <urlopen error [Errno -3] Temporary failure in name resolution>, 3 retry left...
    YYYY-MM-DDTHH:MM.SSSZ Wa(12) esxupdate[25214018]: Download failed: <urlopen error [Errno -3] Temporary failure in name resolution>, 2 retry left...
    YYYY-MM-DDTHH:MM.SSSZ Wa(12) esxupdate[25214018]: Download failed: <urlopen error [Errno -3] Temporary failure in name resolution>, 1 retry left...

  • The vSphere replication VAMI page confirms that the certificate consists short name. 

Resolution

  • Take online snapshot of the vSphere Replication appliance.
    Note: Offline snapshot of both the sites required if the vCenters are in linked mode. 
  • Change the certificate to use the correct FQDN.