Manage → Fleet Management → Identity & Access → VCF SSO Overview → Configure VCF SSO → Choose Deployment Mode → Select Instance(Recommended) , the following issues occur:Build → Lifecycle → VCF Management → ComponentsSometimes when the VIDB component is re-deployed without properly cleaning up the existing VIDB records, the tenant is not created as part of VIDB component registration. Because the tenant is not created, VCF Operations is unable to communicate with the external VIDB. In this situation the following error is visible in the adapter logs:
com.vmware.adapter.management.components.iam.exception.HttpResponseStatusException: API call https://<external-vidb-fqdn>/acs/t/CUSTOMER/token failed with status 401 and error {"error":"invalid_client","error_description":"Client is not authorized to perform this operation."} at com.vmware.adapter.management.components.iam.client.ApiInvoker.invoke(ApiInvoker.java:87) at com.vmware.adapter.management.components.iam.client.ApiInvoker.invoke(ApiInvoker.java:50) at com.vmware.adapter.management.components.iam.client.token.ExternalVidbTokenClient.getTenantAdminToken(ExternalVidbTokenClient.java:101) at com.vmware.adapter.management.components.iam.client.ApiClientProvider.getApiClient(ApiClientProvider.java:130)
| Flag | Required | Description |
--force | No | Bypass the existing-DB-rows safety check ( See ** ⚠️ --force Note below) |
--help, -h | No | Show help |
--ops-fqdn | Yes | VCF Operations platform FQDN |
--user | No | VCF Operations admin username (default: admin) |
--vidb-fqdn | Yes | External VIDB hostname to delete and re-register |
Notes
**⚠️ --force |
Copy reregister_vidb_component.sh to VCF Operations cluster node.
Run the script with the required parameter :
./reregister_vidb_component.sh --vidb-fqdn <VIDB_FQDN> --ops-fqdn <OPS_FQDN> [OPTIONS]Example:
./reregister_vidb_component.sh \
--vidb-fqdn <VIDB_FQDN> \
--ops-fqdn <OPS_FQDN>Wait 15 minutes for the VCF IAM config sync mechanism to detect the re-registered external VIDB. Should now be able to configure SSO.