"Cannot execute upgrade script on host" while upgrading Host via lifecycle manager.
Symptoms :
Lifecycle Manager fails to upgrade host with custom baseline group configured.
2024-08-21T13:21:51Z esxupdate: 10031191: root: INFO: Options = {'depot': None, 'viburl': None, 'nameid': None, 'profile': None, 'baseimageversion': None, 'addon': None, 'softwarespec': None, 'level': None, 'updateonly': False, 'noliveinstall': False, 'nomaintmode': False, 'force': False, 'dryrun': False, 'oktoremove': False, 'proxy': None, 'nosigcheck': False, 'pending': None, 'rebooting': False, 'downgrade': None, 'nohwwarning': False}
2024-08-21T13:21:53Z esxupdate: 10031191: HostImage: INFO: Installers initiated are {'live': <vmware.esximage.Installer.LiveImageInstaller.LiveImageInstaller object at 0x9fea39d160>, 'boot': <vmware.esximage.Installer.BootBankInstaller.BootBankInstaller object at 0x9fea50d220>, 'locker': <vmware.esximage.Installer.LockerInstaller.LockerInstaller object at 0x9fea39d3d0>}
2024-08-21T15:07:00Z esxupdate: 10034336: vmware.esximage.Vib: DEBUG: Verifying VIB VMW_bootbank_mtip32xx-native_3.9.8-1vmw.703.0.20.19193900 signature #2
2024-08-21T15:07:00Z esxupdate: 10034336: vmware.esximage.Vib: ERROR: Failed to verify VIB signature #2: ('VMW_bootbank_mtip32xx-native_3.9.8-1vmw.703.0.20.19193900', 'Could not find a trusted signer: self signed certificate')
Note : In the above events, after the "Installers initialed" event , we see multiple events for failed to verify vib signature for all the vibs in the image.
Also, while upgrading the ESXi from cli using the custom offline bundle. It still fails with "profile validation" error.
ESXi 7.0
ESXi 8.0
vCenter 7.0
vCenter 8.0
To resolve this :
esxcli software profile update -d /vmfs/volumes/DATASTORE/ZIP -p Image_Profile_from_aboveoutput
if the above command gives an error, try the below command :
esxcli software profile install -d /vmfs/volumes/DATASTORE/ZIP -p Image_Profile_from_aboveoutput