/var/log/vmware/vc-ws1a-broker/federation-service.log:YYYY-MM-DDTHH:MM:SS,353 WARN <REDACTED_HOSTNAME>:federation (ForkJoinPool-2-worker-1) [-;-;-;-;-;-] com.vmware.vidm.common.gateway.mesh.GatewayAuthProvider - Failed to acquire token, returning cached token - Optional.empty, ScUnauthorizedException[Operation: POST -> http://localhost:10114/acs/token][Status:401]
/var/log/vmware/trustmanagement/trustmanagement-svcs.log
YYYY-MM-DDTHH:MM:SS.186Z [tomcat-exec-22 [] ERROR com.vmware.vcenter.trustmanagement.authbroker.BrokerClient opId=] VMware Identity services unavailable
defaultMessage = VMware Identity services unavailable,
args = [VMware Identity services unavailable],
defaultMessage = VMware Identity services unavailable,
args = [VMware Identity services unavailable],
curl -k --request POST --url https://localhost/rest/com/vmware/cis/session -u '<Admin user>:<Admin password>'
Generate admin client token for CUSTOMER tenant :curl -k --location --request GET 'https://localhost/api/vcenter/identity/broker/tenants/CUSTOMER/admin-client' --header 'vmware-api-session-id: <VC SESSION ID>'
Generate admin client token for OPERATOR tenant : curl -k --location --request GET 'https://localhost/api/vcenter/identity/broker/tenants/OPERATOR/admin-client' --header 'vmware-api-session-id: <VC SESSION ID>'
VMware Cloud Foundation 9.x
VMware vCenter
The issue is caused by the vc-ws1a-broker service entering an unhealthy state. Potential causes include:
Before proceeding, ensure to have a valid snapshot of the vCenter Server. Additionally, perform a file-based backup of the vCenter Server using the vCenter Server Appliance Management Interface (VAMI).
recover_ws1b.sh script attached to this KB article and upload it to the vCenter Server using a secure transfer utility. operator client ID and secret from the masterapp credentials file by executing the following command:cat /var/lib/ws1/masterapp-credentials.json<clientSecret> value and proceed directly to Step 5.e.g., cat: /var/lib/ws1/masterapp-credentials.json: No such file or directory). Perform the following sub-steps to resolve:Rotate_WS1B_secrets.sh script attached to this KB article and upload it to the vCenter Server.chmod +x Rotate_WS1B_secrets.ssed -i -e 's/\r//g' Rotate_WS1B_secrets.sh./Rotate_WS1B_secrets.shcat /var/lib/ws1/masterapp-credentials.jsonbash recover_ws1b.sh <SSO_User> <SSO_Password> <clientSecret>vmware-trustmanagement service to apply the changes:service-control --stop vmware-trustmanagement service-control --start vmware-trustmanagement