To view and update the valid IP addresses and DNS entries for the vCloud Director cells in your vCloud Director environment, you can use the manage-config subcommand of the cell management tool.

Problem

You cannot access the vCloud Director Service Provider Admin Portal or the vCloud 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

vCloud 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 vCloud 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 vCloud Director server group.

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

Solution

  1. Log in or SSH as root to one of the cells in the server group.
  2. To list the valid URLs that you can use to access the vCloud Director cells in your environment, run the following command line.
    [root@cell /opt/vmware/vcloud-director/bin]#./cell-management-tool manage-config -n webapp.allowed.origins -l

    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 is used by the load balancer which fronts the vCloud Director server group.

    The list is a comma-separated string, without spaces between the entries.

  3. (Optional) To update the webapp.allowed.origins configuration setting, run the following command line. In the command line, the value parameter of the setting is a list of IP addresses and DNS names in a comma-separated string without spaces between the entries.
    [root@cell /opt/vmware/vcloud-director/bin]#./cell-management-tool manage-config -n webapp.allowed.origins -v "comma_separated_list_of_URLs_without_spaces"