"Exception occured in postinstallHook for soluser.Patch. Please check the logs for more details. Take corrective action and then resume."

/var/log/vmware/applmgmt/PatchRunner.log:"translatable": "An error occurred while invoking external command : '%(0)s'","args": ["Command: ['/usr/lib/vmware-vmca/bin/certool', '--server=#_Old_FQDN]', '--genCIScert', '--privkey=/etc/certs/machine/machine.priv', '--cert=/etc/certs/machine/machine.crt', '--Name=machine', '--FQDN=[#_New_FQDN]']\nStderr: "],"localized": "An error occurred while invoking external command : 'Command: ['/usr/lib/vmware-vmca/bin/certool', '--server=#_Old_FQDN]', '--genCIScert', '--privkey=/etc/certs/machine/machine.priv', '--cert=/etc/certs/machine/machine.crt', '--Name=machine', '--FQDN=[#_New_FQDN]']\nStderr: '"},{"id": "install.ciscommon.vmca.appendtocert","translatable": "Error in appending hostname/ip %(0)s to Cert.","args": ["[#_New_FQDN]"],"localized": "Error in appending hostname/ip [#_New_FQDN] to Cert."}],"componentKey": null,"problemId": null,"resolution": null}File "/storage/updatemgr/software-update2a_r2sbs/stage/scripts/patches/libs/sdk/extensions.py", line 123, in _funcreturn func(*args)File "/storage/updatemgr/software-update2a_r2sbs/stage/scripts/patches/payload/components-script/soluser/init.py", line 104, in patch_checkAndRenewSolutionUserCertificates(ctx)File "/storage/updatemgr/software-update2a_r2sbs/stage/scripts/patches/payload/components-script/soluser/init.py", line 161, in _checkAndRenewSolutionUserCertificatesraise eFile "/storage/updatemgr/software-update2a_r2sbs/stage/scripts/patches/payload/components-script/soluser/init.py", line 158, in _checkAndRenewSolutionUserCertificatesrenewSolutionUserCertificates()File "/storage/updatemgr/software-update2a_r2sbs/stage/scripts/patches/payload/components-script/soluser/init.py", line 177, in renewSolutionUserCertificatessolUser._cleanup()File "/storage/updatemgr/software-update2a_r2sbs/stage/scripts/patches/payload/components-script/soluser/utils.py", line 72, in _cleanuptempFiles = [self._private_key_path, self._public_key_path, self._cert_path, self._pfx_path]AttributeError: 'SolutionUser' object has no attribute '_private_key_path'YYYY-MM-DDTHH:MM:SS.MS+HH:MM ERROR vmware_b2b.patching.phases.patcher Patch hook Patch got ComponentWrapperError.Traceback (most recent call last):...............File "/storage/updatemgr/software-update2a_r2sbs/stage/scripts/patches/py/vmware_b2b/patching/executor/hook_executor_process.py", line 119, in executeHookraise expatch_errors.ComponentErrorYYYY-MM-DDTHH:MM:SS.MS+HH:MM WARNING root stopping status aggregation...YYYY-MM-DDTHH:MM:SS.MS+HH:MM ERROR main Patch vCSA failed
vCenter Server 8.x
This issue occurs due to legacy certificate metadata referencing a decommissioned domain or hostname stored in the VMware Directory Service (VMDIR). During the patching process, the soluser.Patch hook attempts to validate certificates against the current Fully Qualified Domain Name (FQDN). The certool utility fails when encountering the mismatch between the legacy domain metadata stored in VMDIR and the active environment settings, resulting in an interruption of the patch installation.
Prerequisites
Step 1: Clean Stale Entries Use the vCert utility to identify and remove stale certificate entries within the VMware Directory Service.
Step 2: Repair Solution User Certificates Use the lsdoctor tool Using the 'lsdoctor' Tool to validate the health of the Single Sign-On (SSO) environment and recreate affected solution user certificates.
root user.lsdoctor utility with the update flag to repair the solution user certificates: python lsdoctor.py -uStep 3: Regenerate Machine Certificates Ensure the machine certificates align with the current environment FQDN.
Step 4: Resume Patching
service-control --stop --all && service-control --start --all