To view and update the valid IP addresses and DNS entries for the VMware Cloud Director cells in your VMware Cloud Director environment, you can use the VMware Cloud Director API.

Problem

You cannot access the VMware Cloud Director Service Provider Admin Portal or the VMware Cloud Director Tenant Portal after a successful login.

After you enter your credentials in the login screen, the following error message is displayed: Failed to Start. An error was encountered during initialization. This can be caused by issues such as accessing the application via an unsupported public URL or poor connectivity.

Cause

VMware Cloud Director uses a Cross-Origin Resource Sharing (CORS) filter implementation to maintain a list of all valid endpoints that you can use to access the Service Provider Admin Portal and the VMware Cloud Director Tenant Portal.

The CORS filtering list is populated and updated during the cell configuration. It contains HTTP and HTTPS entries with IP addresses and DNS names for all cells in the server group. It also contains a public IP address that is used by the load balancer which fronts the VMware Cloud Director server group.

During the cell configuration of appliance deployments, the list is not updated with the DNS names of the VMware Cloud Director cells, and you cannot use the DNS name of a cell to access it.

Prerequisites

Familiarize yourself with the relevant VMware Cloud Director API documentation.

Solution

  1. Make a GET request with the appropriate headers to the https://{api_host}/cloudapi/1.0.0/site/settings/cors API endpoint.

    The system output is a list that contains HTTP and HTTPS entries with IP addresses and DNS names for all cells in the server group. It also contains a public IP address that the load balancer uses. The IP address fronts the VMware Cloud Director server group.

  2. (Optional) Edit the list and make a PUT request to the API endpoint.