After performing a vCenter Server domain repoint, several services including hvc, vpxd, vapi-endpoint, and vpxd-svcs fails to start.
The vCenter Server UI displays following error: "Error 500 An error occurred while fetching identity providers. Try again"
Attempting to start all services via service-control --start --all resulted in the below error:
Performing start operation on profile: ALL...Successfully started service vmware-vmonService-control failed. Error: Failed to start services in profile ALL. RC=1, stderr=Failed to start hvc, vpxd, vapi-endpoint, vpxd-svcs services. Error: Operation timed out
/var/log/vmware/vmon.log pointing to a pre-start failure of vpxd-svcs service.YYYY-MM-DDThh:mm:ssZ In(05) host-2459 <vpxd-svcs-prestart> Constructed command: /usr/bin/python /usr/lib/vmware-vpxd-svcs/scripts/linux/pre-start/main.py /storage /var/logYYYY-MM-DDThh:mm:ssZ Wa(03) host-2459 <vpxd-svcs> Service pre-start command's stderr: Traceback (most recent call last):YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 File "/usr/lib/vmware-vpxd-svcs/scripts/linux/pre-start/tagging_grpc_registration.py", line 129, in update_endpointsYYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 is_service_info.serviceId)YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 AttributeError: 'NoneType' object has no attribute 'serviceId'YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 During handling of the above exception, another exception occurred:YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 Traceback (most recent call last):YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 File "/usr/lib/vmware-vpxd-svcs/scripts/linux/pre-start/main.py", line 100, in <module>YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 endpoint_registration_runner(logging_file)YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 File "/usr/lib/vmware-vpxd-svcs/scripts/linux/pre-start/main.py", line 65, in endpoint_registration_runnerYYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 UpdateTaggingServiceGrpcEndpoint(logging_file).run()YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 File "/usr/lib/vmware-vpxd-svcs/scripts/linux/pre-start/tagging_grpc_registration.py", line 54, in runYYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 self.update_endpoints()YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 File "/usr/lib/vmware-vpxd-svcs/scripts/linux/pre-start/tagging_grpc_registration.py", line 146, in update_endpointsYYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 raise Exception("Tagging grpc reregistration failed while"YYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459 Exception: Tagging grpc reregistration failed while executing vpxd-svcs prestart commandsYYYY-MM-DDThh:mm:ssZ Wa(03)+ host-2459YYYY-MM-DDThh:mm:ssZ Er(02) host-2459 <vpxd-svcs> Service pre-start command failed with exit code 1.
vCenter Server 7.X
vCenter Server 8.X
This issue is due to missing service registrations caused by a failed domain repoint operation.
/usr/lib/vmware-vmafd/bin/dir-cli service listpython lsdoctor.py -u/usr/lib/vmware-lookupsvc/tools/lstool.py list --url https://localhost/lookupservice/sdk --no-check-cert | grep -i "Service Type:" | sort | uniq -cpython lsdoctor.py -rservice-control --stop --all && service-control --start --all