ESXi upgrade by VUM failed as "Host cannot download files from VMware vSphere Lifecycle Manager patch store. Check the network connectivity and firewall setup, and check esxupdate logs for details."
search cancel

ESXi upgrade by VUM failed as "Host cannot download files from VMware vSphere Lifecycle Manager patch store. Check the network connectivity and firewall setup, and check esxupdate logs for details."

book

Article ID: 426178

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

vCenter has healthy baseline , but remediation stage failed as "Host cannot download files from VMware vSphere Lifecycle Manager patch store. Check the network connectivity and firewall setup, and check esxupdate logs for details."

In Esxi host /var/run/esxupdate.log logged events :

YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: During handling of the above exception, another exception occurred:
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: Traceback (most recent call last):
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: File "/lib64/python3.11/site-packages/vmware/esximage/Transaction.py", line 130, in DownloadMetadatas
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: mfile = d.Get()
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: File "/lib64/python3.11/site-packages/vmware/esximage/Downloader.py", line 576, in Get
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: return self._getfromurl()
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: File "/lib64/python3.11/site-packages/vmware/esximage/Downloader.py", line 474, in _getfromurl
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: raise DownloaderError(self.url, self.local, str(e))
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: vmware.esximage.Downloader.DownloaderError: ('http://=vCenter-FQDN:9084/vum/repository/hostupdate/CIS/CIS-ESXi-7.0-Addon-cumulative_metadata.zip', '/tmp/tmpjom_jf9g', <urlopen error [Errno -3] Temporary failure in name resolution>)
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: During handling of the above exception, another exception occurred:
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: Traceback (most recent call last):
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: File "/usr/sbin/esxupdate", line 367, in main
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: EsxupdateLivePatcherMount.InitCommand(command, cmdArgs, options.meta,
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: File "/usr/sbin/esxupdate", line 199, in InitCommand
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: meta = Transaction.Transaction.DownloadMetadatas([url],
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: File "/lib64/python3.11/site-packages/vmware/esximage/Transaction.py", line 132, in DownloadMetadatas
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: raise Errors.MetadataDownloadError(metaUrl, None, str(e))
YYYY-MM-DDTHH:MM:49Z Er(11) esxupdate[85577742]: vmware.esximage.Errors.MetadataDownloadError: ('http://vCenter-FQDN:9084/vum/repository/hostupdate/CIS/CIS-ESXi-7.0-Addon-cumulative_meta
ta.zip', None, "('http://vCenter-FQDN:9084/vum/repository/hostupdate/CIS/CIS-ESXi-7.0-Addon-cumulative_metadata.zip', 

Environment

vSphere 8.x

Cause

The ESXi host can not resolve the vCenter FQDN correctly .Connect to vCenter-IP by 9084 correctly , but can not ping the vCenter-FQDN .  The ESXi host has wrong DNS server and search domain . 

 

Resolution

Set up the correct DNS server and DNS domain search by CLI

# esxcli network ip dns search --server=correct-domain-name

# esxcli network ip dns server add --server=correct-dns-server