After upgrading vCenter Server from 6.7.x to 8.0.x and then attempting to upgrade ESXi hosts, the following situations can occur:
"A general system error occurred: Download patch definitions task failed while syncing depots. Error: 'integrity.fault.MetadataDownloadFailure: Cannot download patch definitions.' "
This issue occurs when upgrading from earlier releases, the Update Manager depots are preserved, including all of the items downloaded or used with those prior releases. After upgrading to vSphere 7.0 and later, some of the downloaded items are no long useable with vSphere Lifecycle Manager, causing vSphere Lifecycle Manager to be unable to complete its synchronization process successfully. Additionally, there may be an issue with one of the configured Depots.
Workaround:
This issue can be temporarily bypassed by disabling the particular problematic Download Source (Depot) and running a Sync Updates task again. To determine the Depot to disable, review the /var/log/vmware/vmware-updatemgr/vum-server/vmware-vum-server.log and look for similar entry:
[YYYY-MM-DDTHH:MM:SS] error vmware-vum-server[12614] [Originator@6876 sub=VciSigUpdateTask.SigUpdateTask{7}] [vciSigUpdateTask 559] \n\nError downloading ESXi updates from https://hostupdate.vmware.com/software/VUM/PRODUCTION/addon-main/vmw-depot-index.xml: no element found
This would indicate that there may be an issue with default "addon-main" depot. To disable this depot, perform the following:
Note: depending on the vendor and/or contents of the Depot, disabling a depot may affect the ability to receive all available host patches from VMware or other vendor patches. For example, if the depot to be disabled is the "/VUM/PRODUCTION/main/vmw-depot-index.xml", it would be advisable to reset the VUM DB using the steps below.
Resolution:
This issue can be resolved by resetting the Update Manager Database: