To resolve the issue, remove duplicate service registrations of Topology Service:
- Lists all Topology Service Registrations with this command: python python /usr/lib/vmidentity/tools/scripts/lstool.py list --url https://localhost/lookupservice/sdk --no-check-cert --type topologysvc
- Review the results and verify each vCenter Server only has one Topology Service registration:
Name: com.vmware.vcenter.topology.servicenameresource
Description: com.vmware.vcenter.topology.servicedescriptionresource
Service Product: com.vmware.vcenter.topology
Service Type: topologysvc
Service ID: 24c3e3ee-####-####-####-########3dc
Site ID: default-site
Node ID: c0d1ea69-####-####-####-########d13
Owner ID: machine-9060afc0-####-####-####-########f76@vsphere.local
Version: 1.0
Endpoints:
Type: com.vmware.topology.vapi
Protocol: vapi.json.https
URL: https://vcentertest.example.com:443/topologysvc
-------------------------------------------------------
Name: com.vmware.vcenter.topology.servicenameresource
Description: com.vmware.vcenter.topology.servicedescriptionresource
Service Product: com.vmware.vcenter.topology
Service Type: topologysvc
Service ID: 6d17e47a-####-####-####-########f11
Site ID: default-site
Node ID: c0d1ea69-####-####-####-########d13
Owner ID: machine-9060afc0-####-####-####-########f76@vsphere.local
Version: 1.0
Endpoints:
Type: com.vmware.topology.vapi
Protocol: vapi.json.https
URL: https://vcentertest.example.com:443/topologysvc
- Un-register duplicate registrations with this command:
/usr/lib/vmidentity/tools/scripts/lstool.py unregister --url https://localhost/lookupservice/sdk --id service_id --user 'administrator@vsphere.local' --password password --no-check-cert
For Example:
/usr/lib/vmidentity/tools/scripts/lstool.py unregister --url https://localhost/lookupservice/sdk --id 6d17e47a-####-####-####-########f11 --user 'administrator@vsphere.local' --password PASSWORD --no-check-cert
- Open /usr/lib/vmware-topologysvc/config/topologysvc.properties and confirm the entry topologysvc.patch.version=1. If the value is not 1, run this command to change it:
sed -i -e 's/topologysvc.patch.version=0/topologysvc.patch.version=1/g' /usr/lib/vmware-topologysvc/config/topologysvc.properties
- Start topologysvc service
service-control --start topologysvc