Exception occurred in postInstallHook for content-library:Patch' /var/log/vmware/applmgmt/patchrunner.log we see entries similar to below:YYYY-MM-DDTHH:MM:SSZ content-library:Patch ERROR vmware_b2b.patching.executor.hook_executor Patch hook 'content-library:Patch' failed.Traceback (most recent call last): File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/py/vmware_b2b/patching/executor/hook_executor.py", line 74, in executeHook executionResult = systemExtension(args) File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/libs/sdk/extensions.py", line 106, in __call__ result = self.extension(*args) File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/libs/sdk/extensions.py", line 123, in _func return func(*args) File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/payload/components-script/content-library/__init__.py", line 303, in execute_patch register_cls() File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/payload/components-script/content-library/patches/add_new_cls_privileges.py", line 151, in register_cls reg_info.registerAll(solution_user_name, solution_user_id, service_id=service_id) File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/payload/components-script/content-library/patches/cis_register.py", line 387, in registerAll self.registerUserAndService(user_name, user_id, service, service_id=service_id) File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/payload/components-script/content-library/patches/cis_register.py", line 418, in registerUserAndService svcinfo = cloudvm_sso_cm_register( File "/usr/lib/vmware-cm/bin/cloudvmcisreg.py", line 728, in cloudvm_sso_cm_register serviceId = do_lsauthz_operation(cisreg_opts_dict) File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 1218, in do_lsauthz_operation authz_client.set_permission(domain_name, soluser_permission, File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 748, in set_permission ac = self.create_access_control(principal, rolenames, File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 723, in create_access_control for role_obj in authorization_service.GetRoles(): File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 618, in <lambda> self.f(*(self.args + (obj,) + args), **kwargs) File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 391, in _InvokeMethod return self._stub.InvokeMethod(self, info, args) File "/usr/lib/vmware/site-packages/pyVmomi/SoapAdapter.py", line 1767, in InvokeMethod self._CallLoginMethod() File "/usr/lib/vmware/site-packages/pyVmomi/SoapAdapter.py", line 1839, in _CallLoginMethod self.loginMethod(self.soapStub) File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 592, in _doLogin ds_sessionmgr.LoginBySamlToken() File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 618, in <lambda> self.f(*(self.args + (obj,) + args), **kwargs) File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 391, in _InvokeMethod return self._stub.InvokeMethod(self, info, args) File "/usr/lib/vmware/site-packages/pyVmomi/SoapAdapter.py", line 1605, in InvokeMethod raise Exception(msg)Exception: Raising a non-exception object: Attributes: Hierarchy: (<class 'NoneType'>, <class 'object'>)YYYY-MM-DDTHH:MM:SSZZ ERROR vmware_b2b.patching.phases.patcher Patch hook Patch got ComponentWrapperError.Traceback (most recent call last): File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 208, in patch _patchComponents(ctx, userData, statusAggregator.reportingQueue) File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 90, in _patchComponents executeComponentHook(Hook.Patch, ctx, c, userData, reportingQueue) File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/py/vmware_b2b/patching/executor/execution_facade.py", line 97, in executeComponentHook result = executeHook(c.patchScript, hook, args, File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/py/vmware_b2b/patching/executor/execution_facade.py", line 53, in executeHook result = executor.executeHook(scriptFile, hook, args, reportQueue, reportIdentifier) File "/storage/updatemgr/software-updatem87zliqd/stage/scripts/patches/py/vmware_b2b/patching/executor/hook_executor_process.py", line 119, in executeHook raise expatch_errors.ComponentError
vCenter Server 8.0.3
This issue occurs when services do not start in time during the patching process and the content library is unable to update the content library user. This creates a deadlock in the upgrade process and fails the upgrade.
To resolve the issue, restart the vpxd-svcs service in the vCenter CLI via an SSH client using the following:
service-control --stop vpxd-svcsservice-control --start vpxd-svcsAfter that return to the VAMI and choose 'Resume vCenter Update' , the update should restart and complete as normal.