VMware Cloud Community
chrisslagel
Contributor
Contributor

Host update errors

Trying to scan my hosts for updates and getting:

"Scan entity
10.1.2.233
Host cannot
download
files from
VMware
vSphere
Update
Manager
patch store. 
Check the
network
connectivity
and firewall
setup, and
check
esxupdate
logs for
details."
Logs read as follow:
2012-12-10T14:41:10Z esxupdate: root: INFO: Command = profile.setacceptance
2012-12-10T14:41:10Z esxupdate: root: INFO: Options = {}
2012-12-10T14:41:10Z esxupdate: BootBankInstaller.pyc: INFO: Unrecognized value "title=Loading VMware ESXi" in boot.cfg
2012-12-10T14:41:10Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/bootOption', '-rp']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.
2012-12-10T14:41:10Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/bootOption', '-ro']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.
2012-12-10T14:41:10Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-U', 'host-acceptance-level', '-G']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.
2012-12-10T14:41:10Z esxupdate: imageprofile: INFO: Adding VIB VMware_locker_tools-light_5.1.0-0.0.799733 to ImageProfile (Updated) ESXi-5.1.0-799733-standard
2012-12-10T14:41:10Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-U', 'host-acceptance-level', '-G']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.
2012-12-10T14:41:10Z esxupdate: root: DEBUG: Finished execution of command = profile.setacceptance
2012-12-10T14:41:10Z esxupdate: root: DEBUG: Completed esxcli output, going to exit esxcli-softwareinternal
2012-12-10T16:37:59Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetTimeout']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.
2012-12-10T16:37:59Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRetries']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.
2012-12-10T16:37:59Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRateLimit']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.
2012-12-10T16:37:59Z esxupdate: esxupdate: INFO: ---
Command: scan
Args: ['scan']
Options: {'nosigcheck': None, 'retry': 5, 'loglevel': None, 'cleancache': None, 'viburls': None, 'meta': ['http://noxvcenter1:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip', 'http://noxvcenter1:9084/vum/repository/hostupdate/vmw/vmw-ESXi-5.1.0-metadata.zip'], 'proxyurl': None, 'timeout': 30.0, 'cachesize': None, 'hamode': True, 'maintenancemode': None}
2012-12-10T16:37:59Z esxupdate: BootBankInstaller.pyc: INFO: Unrecognized value "title=Loading VMware ESXi" in boot.cfg
2012-12-10T16:37:59Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/bootOption', '-rp']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.
2012-12-10T16:37:59Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/bootOption', '-ro']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.
2012-12-10T16:37:59Z esxupdate: downloader: DEBUG: Downloading http://noxvcenter1:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip to /tmp/tmpu4CL3t...
2012-12-10T16:37:59Z esxupdate: esxupdate: ERROR: An esxupdate error exception was caught:
2012-12-10T16:37:59Z esxupdate: esxupdate: ERROR: Traceback (most recent call last):
2012-12-10T16:37:59Z esxupdate: esxupdate: ERROR:   File "/usr/sbin/esxupdate", line 216, in main
2012-12-10T16:37:59Z esxupdate: esxupdate: ERROR:     cmd.Run()
2012-12-10T16:37:59Z esxupdate: esxupdate: ERROR:   File "/build/mts/release/bora-799733/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esx5update/Cmdline.py", line 106, in Run
2012-12-10T16:37:59Z esxupdate: esxupdate: ERROR:   File "/build/mts/release/bora-799733/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Transaction.py", line 71, in DownloadMetadatas
2012-12-10T16:37:59Z esxupdate: esxupdate: ERROR: MetadataDownloadError: ('http://noxvcenter1:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip', None, "('http://noxvcenter1:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip', '/tmp/tmpu4CL3t', '[Errno 4] IOError: <urlopen error [Errno -2] Name or service not known>')")
2012-12-10T16:37:59Z esxupdate: esxupdate: DEBUG: <<<
Seems like a lot of errors... Any ideas?
0 Kudos
5 Replies
nshetty
Enthusiast
Enthusiast

Hello,

You have ports blocked for update manager, hence the download of patches or updates is failing.

If you have a proxy then provide the address @ download tab under "Configuration" tab of update manager.

When you also perform a scan try selecting only patches and then check if the download completes or fails. Perform the vice versa for updates.

Nitin

0 Kudos
abirhasan
Enthusiast
Enthusiast

please see the network configurations in your vSphere and make sure that you got internet on that machine. If you have any proxy server then put the proxy address your browser. Then may help to update your system.

abirhasan 
0 Kudos
vmfcraig
Enthusiast
Enthusiast

Best place to start is your the DNS settings on your ESXi Hosts.

Verify these are correct, then enter any proxy details in the 'Admin View' of Update Manager.

Blog - vmfocus.com Twitter - @Craig_Kilborn
chrisslagel
Contributor
Contributor

Figured it out, it was a DNS issue.  Just added the vCenter host to the /etc/hosts file on the ESXi hosts and it now works fine.  Thanks everyone.

0 Kudos
nshetty
Enthusiast
Enthusiast

Awesome, good to hear that Smiley Happy

0 Kudos