This article provides steps to identify the cause for failure encountered while adding AD over LDAP if the AD has the same domain name as the SSO domain. Or issue encountered while repointing to new SSO domain if current SSO domain name is the same as AD domain. In both instances, vpxd-svcs service fails to start.
During the SSO domain repoint vpxd-svcs service fails with the below log entries in /var/log/vmware/vpxd/vpxd-svcs.log
:
YYYY-MM-DDTHH:MM:SS Wa(03) host-##### <vpxd-svcs> Service pre-start command's stderr: YYYY-MM-DDTHH:MM:SS Security error: (vmodl.fault.SecurityError) {
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### dynamicType = <unset>,
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### dynamicProperty = (vmodl.DynamicProperty) [],
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### msg = '',
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### faultCause = <unset>,
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### faultMessage = (vmodl.LocalizableMessage) []
YYYY-MM-DDTHH:MM:SS Wa(03) host-##### <vpxd-svcs> Service pre-start command's stderr: Traceback (most recent call last):
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 260, in securityctx_modifier
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 348, in add_securityctx_to_requests
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### return req_method(self, *args, **kargs)
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 364, in reregister_service
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### self.service_content.serviceRegistration.Set(svc_id, svc_set_spec)
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 595, in <lambda>
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### self.f(*(self.args + (obj,) + args), **kwargs)
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 385, in _InvokeMethod
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### return self._stub.InvokeMethod(self, info, args)
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### File "/usr/lib/vmware/site-packages/pyVmomi/SoapAdapter.py", line 1570, in InvokeMethod
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### raise obj # pylint: disable-msg=E0702
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### pyVmomi.VmomiSupport.SecurityError: (vmodl.fault.SecurityError) {
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### dynamicType = <unset>,
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### dynamicProperty = (vmodl.DynamicProperty) [],
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### msg = '',
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### faultCause = <unset>,
YYYY-MM-DDTHH:MM:SS Wa(03)+ host-##### faultMessage = (vmodl.LocalizableMessage) []
vCenter Server 7.x
vCenter Server 8.x
/usr/lib/vmware-lookupsvc/tools/lstool.py list --url 'http://localhost:7090/lookupservice/sdk' > /tmp/services.txt
grep -i wrong.local /tmp/services.txt
In this example we see that the vmwLKUPOwnerId's are incorrect and still referencing the old SSO domain name WRONG.LOCAL
vmwLKUPOwnerId: machine-########-####-####-####-############@WRONG.LOCAL
vmwLKUPOwnerId: machine-########-####-####-####-############@WRONG.LOCAL
vmwLKUPOwnerId: machine-########-####-####-####-############@WRONG.LOCAL
vmwLKUPOwnerId: machine-########-####-####-####-############@WRONG.LOCAL
Please note that, further troubleshooting requires offline snapshot of VCSA. If this VCSA is participating in ELM then offline snapshots of all VCSA in ELM are required.
Resolution Steps:
cmsso-util domain-repoint -m execute --src-emb-admin Administrator --dest-domain-name <destination_PSC_domain> --debug
<destination_PSC_domain>
with the new domain of the vCenter.
tail -f /var/log/vmware/cloudvm/
cmsso_util.log |grep -i "End Getting Endpoint Specs"
cd /storage/domain-data/service-phase-data/specs && sed -i "s|@WRONG.LOCAL|@RIGHT.LOCAL|g" * && sed -i "s|@wrong.local|@right.local|g" *
NOTE: Make sure to search for the old domain regardless of case sensitivity