2021-10-11 11:04:04,972.972Z vmdir:Validation INFO vmdir Checking for VMDir legacy schema and mixed mode vCenter
2021-10-11 11:04:05,686.686Z vmdir:Validation ERROR vmware_b2b.patching.executor.hook_executor Patch hook 'vmdir:Validation' failed.
Traceback (most recent call last):
File "/storage/core/software-update/updates/7.0.2.00100/scripts/patches/py/vmware_b2b/patching/executor/hook_executor.py", line 74, in executeHook
executionResult = systemExtension(args)
File "/storage/core/software-update/updates/7.0.2.00100/scripts/patches/libs/sdk/extensions.py", line 106, in __call__
result = self.extension(*args)
File "/storage/core/software-update/updates/7.0.2.00100/scripts/patches/libs/sdk/extensions.py", line 123, in _func
return func(*args)
File "/storage/core/software-update/updates/7.0.2.00100/scripts/patches/payload/components-script/vmdir/__init__.py", line 153, in validate
old_dc_list = check_psc_version(passwordval)
File "/storage/core/software-update/updates/7.0.2.00100/scripts/patches/payload/components-script/vmdir/__init__.py", line 113, in check_psc_version
if obj.get_attribute(node, "vmwPlatformServicesControllerVersion").startswith(("6.5")):
File "/usr/lib/vmware-vmdir/vmdir-tool/ldap_utils.py", line 204, in get_attribute
return val[0]
IndexError: list index out of rangeThis issue occurs when there is one or more stale entries of PSC server.
Confirm the stale entries are present using the LDIF of the vCenter server.
Get the LDIF file of the vCenter server:
/opt/likewise/bin/ldapsearch -b "dc=vsphere,dc=local" -s sub -D "cn=Administrator,cn=Users,dc=vsphere,dc=local" -W > FQDN.ldif
You can use the JXplorer to navigate through and validate the stale entry.
Run the cmsso-util unregister command - Using the cmsso command to unregister vCenter with External PSC or vCenter with Embedded PSC from Single Sign-On
Run the cmsso-util unregister command to unregister the stopped Platform Services Controller:
cmsso-util unregister --node-pnid Platform_Services_Controller_System_Name --username administrator@your_domain_name --passwd vCenter_Single_Sign_On_password
NOTE: If running the command encounters any failures, remove the entries using the jxplorer.
Run the update again, the pre-checks should succeed.