Symptoms:
Update installation failed, list operation is not allowed
" errorInternal error occurs during execution of update process
."
vsphere_ui:ComponentDiscovery ERROR transport Command ['rpm', '-q', 'vsphere-ui'] exit-code=1, stdout=package vsphere-ui is not installed, stderr=
vsphere_ui:ComponentDiscovery ERROR vmware_b2b.patching.executor.hook_executor Patch hook 'vsphere_ui:ComponentDiscovery' failed.
Traceback (most recent call last):
File "/storage/core/software-update/updates/8.0.3.00300/scripts/patches/py/vmware_b2b/patching/executor/hook_executor.py", line 74, in executeHook
executionResult = systemExtension(args)
File "/storage/core/software-update/updates/8.0.3.00300/scripts/patches/libs/sdk/extensions.py", line 106, in __call__
result = self.extension(*args)
File "/storage/core/software-update/updates/8.0.3.00300/scripts/patches/libs/sdk/extensions.py", line 123, in _func
return func(*args)
File "/storage/core/software-update/updates/8.0.3.00300/scripts/patches/payload/components-script/vsphere_ui/__init__.py", line 91, in discover
source_client_version, source_client_cln = get_client_version_from_rpm()
File "/storage/core/software-update/updates/8.0.3.00300/scripts/patches/payload/components-script/vsphere_ui/version_util.py", line 41, in get_client_version_from_rpm
cmd_out = getCommandOutput(localOpsManager, command)
File "/storage/core/software-update/updates/8.0.3.00300/scripts/patches/libs/sdk/transport/__init__.py", line 215, in getCommandOutput
raise ExecutionException('Command failed with exit-code "%s"' % result.exitCode)
transport.ExecutionException: ('Command failed with exit-code "1"', 999)
2024-10-12T00:54:45.512Z ERROR vmware_b2b.patching.phases.discoverer Could not execute discovery hook in file: /storage/core/software-update/updates/8.0.3.00300/scripts/patches/payload/components-script/vsphere_ui
vCenter Server 7.x
Possible corruption in RPM DB.
Take valid backup of the vCenter and perform the below steps.
Note: Below steps are applicable for vCenter Server 7.x only, DO NOT try this operation on vCenter Server 8.x as step 4 is not applicable for 8.x.
root
user and enable the shell.mkdir /storage/core/rpmdbBackup/
cd /var/lib/rpm
mv __db* /storage/core/rpmdbBackup/
rpm --rebuilddb
service-control --restart applmgmt
Check for vCenter Updates again.
For vCenter Server 8.0 :
cp -a /storage/core/rpmdbBackup/* /var/lib/rpm/ && rpmdb --rebuild
service-control --restart applmgmt
Then retry update.
cp /etc/applmgmt/appliance/software_update_state.conf /storage/core/software_update_state.conf
service-control --stop applmgmt
rm -i /etc/applmgmt/appliance/software_update_state.conf
cd /var/log/vmware/upgrade
prechecks-succeeded
export-succeeded
import-succeeded
touch prechecks-succeeded
touch export-succeeded
touch import-succeeded
service-control --start applmgmt