Posts Tagged ‘VMware Update Manager’

The process below is how to re-register Vmware Update Manager

cd /lib/vmware-updatemgr/bin

mkdir backup

cp -p extension.xml backup/

cp -p vci-integrity.xml backup/

cp -p jetty-vum* backup/

Now go ahead and finish the failed registration with this command:

/usr/lib/vmware-updatemgr/bin/vmware-vciInstallUtils -C /usr/lib/vmware-updatemgr/bin/ -L /var/log/vmware/vmware-updatemgr/ -I /usr/lib/vmware-updatemgr/bin/ -v <your vCenter FQDN> -p 80 -U [email protected]<your SSO domain> -P <password> -S /usr/lib/vmware-updatemgr/bin/extension.xml -O extupdate

Upon running the above, I got an error saying it didn’t like the password , I had to put it in single quotes

chown updatemgr:updatemgr vci-integrity.xml

service-control –start vmware-updatemgr

Note: In the command above replace the information <your vCenter FQDN> with your own vcenter FQDN. 

/usr/lib/vmware-updatemgr/bin/ -v <your vCenter FQDN> -p 80 -U [email protected]<your SSO domain> -P <password>

GD Star Rating
loading...
GD Star Rating
loading...

1. Download the lsdoctor tool from this kb : https://kb.vmware.com/s/article/80469?lang=en_US
2. If VCSA then use Winscp to transfer the zip to vcenter appliance else in windows vc copy and paste to destination vc.
3. Follow the kb and run the trustfixer option -t : python lsdoctor.py -t 
4. Now restart the update manager service. 
5. Access the update manager tab.

GD Star Rating
loading...
GD Star Rating
loading...

vmwareupdatemanagerUpon trying to update a host to the latest Patch version using VMware Update Manager , an error message was displayed in the GUI :

Scan entity x.x.x.x Host cannot download files from VMware vSphere Update Manager patch store.  Check the network connectivity and firewall setup, and check esxupdate logs for details

SSH’ing into the host and looking at /vars/logs/esxupdate.log using VI , I saw the errors below with IP’s removed

Options: {‘nosigcheck’: None, ‘retry’: 5, ‘loglevel’: None, ‘cleancache’: None, ‘viburls’: None, ‘meta’: [‘http://x.x.x.x:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip‘, ‘http://x.x.x.x:9084/vum/repository/hostupdate/vmw/vmw-ESXi-5.1.0-metadata.zip‘], ‘proxyurl’: None, ‘timeout’: 30.0, ‘cachesize’: None, ‘hamode’: True, ‘maintenancemode’: None}
2014-03-10T13:11:58Z esxupdate: BootBankInstaller.pyc: INFO: Unrecognized value “title=Loading VMware ESXi” in boot.cfg
2014-03-10T13:11:58Z esxupdate: BootBankInstaller.pyc: INFO: Unrecognized value “title=Loading VMware ESXi” in boot.cfg
2014-03-10T13:11:59Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = ‘[‘/sbin/bootOption’, ‘-rp’]’, outfile = ‘None’, returnoutput = ‘True’, timeout = ‘0.0’.
2014-03-10T13:11:59Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = ‘[‘/sbin/bootOption’, ‘-ro’]’, outfile = ‘None’, returnoutput = ‘True’, timeout = ‘0.0’.
2014-03-10T13:11:59Z esxupdate: downloader: DEBUG: Downloading http://x.x.x.x:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip to /tmp/tmp6mJvD9…
2014-03-10T13:14:29Z esxupdate: esxupdate: ERROR: An esxupdate error exception was caught:
2014-03-10T13:14:29Z esxupdate: esxupdate: ERROR: Traceback (most recent call last):
2014-03-10T13:14:29Z esxupdate: esxupdate: ERROR:   File “/usr/sbin/esxupdate”, line 216, in main
2014-03-10T13:14:29Z esxupdate: esxupdate: ERROR:     cmd.Run()
2014-03-10T13:14:29Z 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
2014-03-10T13:14:29Z 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
2014-03-10T13:14:29Z esxupdate: esxupdate: ERROR: MetadataDownloadError: (‘http://x.x.x.x:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip‘, None, “(‘http://x.x.x.x:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip‘, ‘/tmp/tmp6mJvD9’, ‘[Errno 12] Timeout: <urlopen error timed out>’)”)
2014-03-10T13:14:29Z esxupdate: esxupdate: DEBUG: <<<

Googling around pointed at the issue being firewall related however telneting to the port 9084 worked fine. I then tried to access this link on my computer : http://x.x.x.x:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip. it eventually downloaded however seemed to take a while. In the end I rebooted the VCenter Server which fixed the problem , it was just timing out! It looks like TomCat can randomly start to leak memory which can be fixed if neede

GD Star Rating
loading...
GD Star Rating
loading...