Symptoms:
Failed to verify the SSL certificate for one or more vCenter Server Systems: https://<vCenter-FQDN-Or-IP>:443/sdkCould not connect to one or more vCenter Server Systems: https://<vCenter-FQDN-Or-IP>:443/sdk
sdoctor tool may report duplicate service registrations within the SSO domain. This occurs when new endpoints are registered without the successful removal of previous ones.python lsdoctor.py -l.(--lscheck ) the following error is reported: ERROR generateReport: [FQDN] (VC 7.0 or CGW) found Duplicates Found: Ignore if this is the PSC HA VIP. Otherwise, you must unregister the extra endpoints.
When running python vdt.py (Using the VCF Diagnostic Tool for vSphere (VDT)), an error similar to the following is reported in the SSO Checks section:* [FAIL] ######## (VC Server or CGW) [FAIL] Duplicates Found You must unregister the extra endpoints. Please run lsdoctor.py -r option 3 on this node for each service type listed Duplicates by Node ID:
'Node ID: NO_NODE_ID'" 'Service type: <service1>':
- 'Service ID: <serivce1 ID>'
Note the NO_NODE_ID value for Node ID.
Possible duplicate entries in the Lookup Service Registration Database detected"This issue occurs in these situations when using Enhanced Linked Mode:
Important: Contact Broadcom support to obtain assistance to safely proceed with below solution steps.
Note:
Steps to check stale registrations on vCenter Server:
1. List of the services registered within the vCenter:
/usr/lib/vmware-lookupsvc/tools/lstool.py list --url https://localhost/lookupservice/sdk --no-check-cert > /tmp/psc.txt2. Validate the number of service registrations for each vCenter:
less /tmp/psc.txt | grep -i "Service Type: " | sort | uniq -c3. Identify a valid registration against stale registration using /etc/vmware/install-defaults/vmdir.ldu-guid to compare Node ID from above file (/tmp/psc.txt):
Name: ServiceNameDescription: ServiceDescriptionService Product: com.vmware.cisService Type: ServiceTypeService ID: 1f10XX8f-438d-XXb-90f8-47e7d6XXa94fSite ID: default-first-siteNode ID: b2b7XX1e-5XX9-4a55-88XX-699fXXeb1d6fOwner ID: vpxd-extension@vsphere.localVersion: 1.0Endpoints:Type: com.vmware.cis.data.providerProtocol: vmomiURL: https://vcsa.example.org:443/sdkSSL trust:Endpoint Attributes:cis.common.ep.localurl: http://localhost:11080/sdkAttributes:com.vmware.cis.cm.HostId: 603b3XX1-fXXb-4XX2-aXX5-81517XX8f47a /etc/vmware/install-defaults/vmdir.ldu-guid.Scenario 1: When the Node ID is same between service registrations which needs to be removed.
For Example:
Below 2 service registration have the same Node ID, Service Type, Owner ID.
Name: ServiceName
Description: ServiceDescription
Service Product: com.vmware.cis
Service Type: ServiceType
Service ID: 1f10XX8f-438d-XXb-90f8-XXXd6XXa94f
Site ID: default-first-site
Node ID: b2b7XX1e-5XX9-4a55-88XX-699fXXeb1d6f
Owner ID: vpxd-extension@sso_domain
Name: ServiceNameDescription: ServiceDescriptionService Product: com.vmware.cisService Type: ServiceTypeService ID: 789XXXXfg-64e3-XXb-32u9-XXX862XXXSite ID: default-first-siteNode ID: b2b7XX1e-5XX9-4a55-88XX-699fXXeb1d6fOwner ID: vpxd-extension@sso_domain
In this case we need to identify the stale entry to be removed using the vCenter server logs.
Firsboot log will have all the registered service registration entries which are downloaded during the vCenter server installation, from here we can get the valid service ID which was installed in vCenter server.
Go to the location /var/log/firstboot in the vCenter server logs and run the command grep -i "Service ID" * | less (service ID for which the duplicate entry is detected)
If an output as below is seen for the service ID, which means that service ID is currently installed in the vCenter server and it is a valid one which should not be removed.
vmidentity-firstboot.py_2##3_stdout.log:XXXX-0x-XXTXX:XX:XX.XXXZ Running command: ['/usr/lib/vmware-lookupsvc/tools/lstool.py', 'register', '--id', 'Service ID', '--user', 'Administrator@sso_domain', '--password', '*******', '--spec', '/var/lib/lookupsvc/lookupsvc syaas.service.spec', '--url', 'https://vCenter server FQDN.au:443/lookupservice/sdk']Following steps need to be performed to remove the stale entries identified above:
Take a no memory snapshot of the vCenter server if it is standalone or powered off snapshots of vCenter servers if in linked mode
Take SSH access to the vCenter server and run the following command to unregister the stale service ID:
/usr/lib/vmware-lookupsvc/tools/lstool.py unregister --url http://localhost:7090/lookupservice/sdk --id Stale_Service_ID --user 'administrator@sso_domain' --password 'sso_password' --no-check-certScenario 2: When the Node ID is different between duplicate service registrations which needs to be removed
Refer the following KB to remove stale entry using a script when the Node ID's are different:
Scenario 3: When the Node ID is not present to validate the duplicate service registrations. Also, we do not see any firstboot logs related to the specific service.
/usr/lib/vmware-lookupsvc/tools/lstool.py list --url https://localhost/lookupservice/sdk --no-check-cert > /tmp/psc.txt
Note: Ensure that a proper snapshot is taken for the vCenter before making any changes.