This article provides troubleshooting steps to be done when we have patch downloads failing in a vc behind a proxy
Symptoms:
1- Downloading of the Patch information is failing.
2- lifecycle.log shows the below errors :
ImageManagerCTL: 52656: 2020-04-11 00:34:03,581 imagemanagerctl:976 INFO Calling with arguments: depots --validate --depot https://hostupdate.vmware.com/software/VUM/PRODUCTION/addon-main/vmw-depot-index.xml --depot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml --depot https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml --depot https://hostupdate.vmware.com/software/VUM/PRODUCTION/vmtools-main/vmw-depot-index.xml --depot /storage/updatemgr/patch-store/hostupdate/__hostupdate20-consolidated-index__.xml
ImageManagerCTL: 52656: 2020-04-11 00:34:03,583 Downloader:262 INFO Opening https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml for download
ImageManagerCTL: 52656: 2020-04-11 00:34:03,616 DepotCollection:271 INFO Could not download from depot at https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml, skipping (('https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml', '', '<urlopen error [Errno -2] Name or service not known>'))
...
Traceback (most recent call last):
File "/usr/lib/vmware-imagebuilder/site-packages/vmware/esximage/ImageManager/DepotMgr.py", line 144, in _connect
validate=validate)
File "/usr/lib/vmware-imagebuilder/site-packages/vmware/esximage/DepotCollection.py", line 239, in ConnectDepots
ignoreerror, validate)
File "/usr/lib/vmware-imagebuilder/site-packages/vmware/esximage/DepotCollection.py", line 275, in _connectDepots
raise err
vmware.esximage.Errors.MetadataDownloadError: ('https://hostupdate.vmware.com/software/VUM/PRODUCTION/addon-main/vmw-depot-index.xml', '', "Could not download from depot at https://hostupdate.vmware.com/softw
ImageManagerCTL: 56624: 2020-04-30 12:24:57,387 imagemanagerctl:244 ERROR Load data from depot failed: ([MetadataDownloadError('https://hostupdate.vmware.com/software/VUM/PRODUCTION/addon-main/vmw-depot-index
ImageManagerCTL: 56624: 2020-04-30 12:24:57,387 imagemanagerctl:146 ERROR [DepotConnectError]
3- Depot validation using the below commands fails
/usr/lib/vmware-updatemgr/image-manager/image-manager-ctl depots --validate --depot https://hostupdate.vmware.com/software/VUM/PRODUCTION/addon-main/vmw-depot-index.xml --depot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml --depot https://hostupdate.vmware.com/software/VUM/PRODUCTION/iovp-main/vmw-depot-index.xml --depot https://hostupdate.vmware.com/software/VUM/PRODUCTION/vmtools-main/vmw-depot-index.xml --depot /storage/updatemgr/patch-store/hostupdate/__hostupdate20-consolidated-index__.xml