Import offline bundle or sync operations may fail in vSphere Lifecycle Manager in vCenter Server Appliance 7.x/8.x
search cancel

Import offline bundle or sync operations may fail in vSphere Lifecycle Manager in vCenter Server Appliance 7.x/8.x

book

Article ID: 320199

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi VMware vCenter Server 7.0 VMware vCenter Server 8.0

Issue/Introduction

  • The content of the offline bundle does not show up in Lifecycle Manager.
  • You see a message similar to:

A general system error occurred: Download patch definitions task failed while syncing depots. Error: 'integrity.fault.HostPatchInvalidVendorCode: Invalid vendor code CIS in patch metadata, another vendor code with different capitalization already exists in database. Check the Lifecycle Manager log files for more details.

  • The Save or Validate operations with the image containing packages from Hardware Support Manager fail with a message similar to:

Failed to fetch component information for hardware support package VMware ESXi 7.0 Upgrade Pack in the depot, Invalid hardware support spec specified in the draft

  • Importing offline bundle into vSphere Lifecycle Manager fails through the vSphere Web Client.
  • You see a message similar to:

Error: 'integrity.fault.HostPatchInvalidVendorCode'

  • In the /var/log/vmware/vmware-updatemgr/vum-server/vmware-vum-server-log4cpp.log file, you see a message similar to:

[YYYY-MM-DD HH:MM:SS: 'HostUpdateDepotManager' 13xxxxxxxx00 ERROR]  [metadataCache, 319] Invalid vendor code: <VENDOR CODE>, this conflicts with the existing code: <vendor code>. Invalid code is from URL:https://hostupdate.domain.com/software/VUM/PRODUCTION/addon-main/addon/<VENDOR CODE>
[YYYY-MM-DD HH:MM:SS: 'VciSigUpdateTask.SigUpdateTask{11}' 13xxxxxxxxxx00 ERROR]  [vciSigUpdateTask, 427] Error download ESX 4x updates from https://hostupdate.domain.com/software/VUM/PRODUCTION/addon-main/vmw-depot-index.xml: <VENDOR CODE>

Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

Environment

  • VMware vCenter Server Appliance 7.x
  • VMware vCenter Server Appliance 8.x

Cause

This issue occurs due to a mismatch in vendor codes (lower/upper case) in the online and offline content downloaded into the vSphere Lifecycle Manager. 

Resolution

Note: Check if Firewall blocking connection/ports to configure the Cluster Image to download package from the Depot.

  1. Connect to the vCenter Server Appliance through SSH.

  2. Run this shell command to switch to the BASH Shell

  3. Copy the script KB_320199_remove-addon.sh or (KB_320199_remove-addon_8.x.sh) to a location in the vCenter Server Appliance.

  4. Change the permissions of the script by running this command:

chmod +500 KB_320199_remove-addon.sh
or
chmod +500 KB_320199_remove-addon_8.x.sh

  1. Execute the script by running this command:

./KB_320199_remove-addon.sh
or
./KB_320199_remove-addon_8.x.sh

     6.  Re-sync the content download into vSphere Lifecycle Manager by selecting Home > Lifecycle Manager > Actions > Sync updates from the vSphere client

Additional Information

Reset the Update Manager DB if the clean-up is failing using the script or the issue is still happening after the DB cleanup. For more info, refer KB "ERROR: update or delete on table "pm_depot_components" violates foreign key constraint "pm_depot_addons_components_component_name_fkey" on table "pm_depot_addons_components"" when running the "remove-addon.sh" script to remove vendor add-ons.

If you get this error '/usr/bin/bash^M: bad interpreter: No such file or directory' run the following command in your terminal.

sed -i -e 's/$///r//' KB_320199_remove-addon_8.x.sh

Attachments

KB_320199_remove-addon_8.x.sh get_app
KB_320199_remove-umds-addon_1754078678120.sh get_app
KB_320199_remove-addon.sh get_app