Summary tab in vSphere Client shows "VMware vAPI Endpoint Service Health Alarm" in vCenter Server 7.0.
You see a warning in /var/log/vmware/vapi/endpoint/endpoint.log , similar to :
YYYY-MM-DD | WARN | state-manager1 | ApiConnectionsStateBuilder | Duplicate service URLs detected for URL http://localhost:10095/trustmanagement and serviceIds 204c27a6-17b8-4249-a689-34794704eaff\com.vmware.trustmanagement.vapi and 03f85a86-ffd8-424f-afce-70080d9afecd\com.vmware.trustmanagement.vapi. Service 204c27a6-17b8-4249-a689-34794704eaff\com.vmware.trustmanagement.vapi will not be registered.
YYYY-MM-DD | INFO | state-manager1 | StatusInfoFactory | HEALTH YELLOW Incorrect service registration found in Lookup Service. Multiple services registered on same URL - http://localhost:10095/trustmanagement.
VMware vCenter Server 7.x
To fix this issue, you will need to remove the duplicate service(s) endpoints.
Note: Please make sure to have a valid backup or offline (VCSA VM powered off) snapshot before applying the below steps.
Log in to the vCenter Server Appliance through SSH.
Remove the duplicate service with lstool.py. The service to remove is the one that endpoint.log mentions "will not be registered". It is "204c27a6-17b8-4249-a689-34794704eaff" on the above case.
# /usr/lib/vmware-lookupsvc/tools/lstool.py unregister --url https://localhost:7090/lookupservice/sdk --id 204c27a6-17b8-4249-a689-34794704eaff --user '[email protected]' --password 'PASSWORD' --no-check-cert
Reboot the VCSA, or restart all services.
#service-control --stop --all && service-control --start --all
This issue is being checked by Diagnostics for VMware Cloud Foundation.
The check is as follows: