Note: This issue may be transient as another vCenter Server in an Enhanced Link Mode domain is restarting. Before continuing with troubleshooting, it is advised to wait 10 minutes, log out, and log back into the vCenter Server. The error may clear on its own. In addition, it is strongly advised to determine if logging into the other vCenter Server identified in the error message directly to determine if vCenter services are up and running before continuing. If all vCenter Servers are up and running and this error persists, continue with this resolution to identify duplicate service registrations or other errors.
To resolve this with scripting, refer to:
Using the VCF Diagnostic Tool for vSphere (VDT)
Using the 'lsdoctor' Tool
To resolve this manually, refer to the below sections.
vSphere 6.x
Find a duplicate registered vCenter Server instance
To find a duplicate registered vCenter Server instance follow the steps below:
Note: Reviewing the vsphere-client / vsphere-ui logs are necessary to identify the cause of this error if there are no duplicate registrations.
For Windows:
- Log in to the server where the Platform Services Controller is installed.
- Open a Windows Command Prompt as administrator.
- To create a text file with a list of the services registered within the Platform Services Controller, run the below command:
"%VMWARE_PYTHON_BIN%" "%VMWARE_CIS_HOME%\VMware Identity Services\lstool\scripts\lstool.py" list --url http://localhost:7080/lookupservice/sdk --type vcenterserver > c:\psc_services.txt
- Open the generated text file to find a list of services registered to the Platform Services Controller.
Example output:
Name: AboutInfo.vpx.name
Description: AboutInfo.vpx.name
Service Product: com.vmware.cis
Service Type: vcenterserver
Service ID: 12345678-1234-1234-1234-123456789
Site ID: default-first-site
Node ID: #######-####-####-####-######
Owner ID: vpxd-#######-####-####-####-######@vsphere.local
Version: 6.0
Endpoints:
Type: com.vmware.cis.workflow
Protocol: vmomi
URL: http://vcenter1.example.com:8088
SSL trust:
Name: vCenterService
Description: vCenter Server
Service Product: com.vmware.cis
Service Type: vcenterserver
Service ID: default-first-site:#######-####-####-####-######
Site ID: default-first-site
Owner ID: <vCenter admin username>@vsphere.local
Version: 5.5
Endpoints:
Type: com.vmware.vim
Protocol: vmomi
URL: https://legacy-vcenter.example.com:443/sdk
Unregister a duplicate vCenter Server service:
To unregister the duplicate service endpoint, run this command:
"%VMWARE_PYTHON_BIN%" "%VMWARE_CIS_HOME%\VMware Identity Services\lstool\scripts\lstool.py" unregister --url http://localhost:7080/lookupservice/sdk --id Service_ID from Step 4 --user "[email protected]" --password "ExamplePassword
" --no-check-cert
Example:
"%VMWARE_PYTHON_BIN%" "%VMWARE_CIS_HOME%\VMware Identity Services\lstool\scripts\lstool.py" unregister --url http://localhost:7080/lookupservice/sdk --id 12345678-1234-1234-1234-123456789 --user "[email protected]" --password "ExamplePassword" --no-check-cert
vCenter Server Appliance
Connect to the Platform Services Controller / vCenter using SSH.
- Run this command to enable access the Bash shell:
shell.set --enabled true
- Type
shell
and press Enter
- To create a text file with a list of the services registered within the Platform Services Controller, run this command:
/usr/lib/vmidentity/tools/scripts/lstool.py list --url http://localhost:7080/lookupservice/sdk --type vcenterserver > /tmp/psc_services.txt
For vCenter 7.0:
/usr/lib/vmware-lookupsvc/tools/lstool.py list --url http://localhost:7090/lookupservice/sdk --type vcenterserver > /tmp/psc_services.txt --no-check-cert
- Open the generated text file to find a list of services registered to the Platform Services Controller / vCenter.
Example output:
Name: AboutInfo.vpx.name
Description: AboutInfo.vpx.name
Service Product: com.vmware.cis
Service Type: vcenterserver
Service ID: 12345678-1234-1234-1234-123456789
Site ID: home
Node ID: #######-####-####-####-######
Owner ID: vpxd-#######-####-####-####-######@vsphere.local
Version: 6.0
Endpoints:
Type: com.vmware.cis.workflow
Protocol: vmomi
URL: http://vcenter1.example.com:8088
Name: AboutInfo.vpx.name
Description: AboutInfo.vpx.name
Service Product: com.vmware.cis
Service Type: vcenterserver
Service ID: #######-####-####-####-######
Site ID: home
Node ID: #######-####-####-####-######
Owner ID: vpxd-#######-####-####-####-######@vsphere.local
Version: 6.0
Endpoints:
Type: com.vmware.cis.workflow
Protocol: vmomi
URL: http://vcenter2.example.com:8088
Note: To identify a valid registration against stale registration /etc/vmware/install-defaults/vmdir.ldu-guid can be looked to compare Node ID from above out output
- To unregister the duplicate service endpoint, run this command:
/usr/lib/vmidentity/tools/scripts/lstool.py unregister --url http://localhost:7080/lookupservice/sdk --id Service_ID from Step 4 --user '[email protected]' --password 'ExamplePassword' --no-check-cert
- For vCenter 7.0
/usr/lib/vmware-lookupsvc/tools/lstool.py unregister --url http://localhost:7090/lookupservice/sdk --id Service_ID from Step 4 --user '[email protected]' --password 'ExamplePassword' --no-check-cert
Note: To find out which node is the right node mapped with the PSC / vCenter, view the vmdir.ldu-guid file of the respective machine.
- Connect to PSC / vCenter via SSH
cd /etc/vmware/install-defaults/
cat /etc/vmware/install-defaults/vmdir.ldu-guid
The output gives the ORIGINAL NODE id. Remove the stale entry registered for other node ids.