“No Datacenters are Available” when accessing VMware Cloud Director Tenant Portal
search cancel

“No Datacenters are Available” when accessing VMware Cloud Director Tenant Portal

book

Article ID: 320505

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Unable to access VMware Cloud Director Tenant portal, 
Error:
No Datacenters are Available

Environment

VMware Cloud Director 10.x

Cause

VMware Cloud Director cannot interact with the Public API Endpoint for two reasons:

  1. Incorrectly configured Certificates
  2. Network Access to the Public API Endpoint

Resolution

Incorrectly configured Certificates

Ensure the Certificates have a correctly configured Subject Alternative Name (SAN).

  1. Connect to a machine with OpenSSL installed
  2. Run the command openssl s_client -connect <HTTPS REST API base URL>:443 | openssl x509 -noout -text | grep DNS
  3. If you are connecting to vCloud Director with an FQDN or IP that is not present in the output, you may need to reconfigure your certificates.

For more information, see Generating Self-Signed Certificates for the VMware Cloud Director HTTPS Endpoint

Ensure the Public Addresses Section is filled out correctly.

  1.  Login to to the vCloud Director UI as a System Administrator
  2.  Click Administration
  3. Click Public Addresses
  4. Click Customize Public Endpoints
  5. In the "API" section fill in your appropriate values for
    5.1 HTTP Base URL
    5.2 HTTPS REST API base URL
    5.3 Certificate chain
    If unsure, run the command openssl s_client -showcerts -connect <HTTPS REST API base URL> | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p', Click Apply 

Network Access to the Public API Endpoint

Ensure connectivity from all Cells within the vCloud Director Server Group, to the Address specified in HTTPS REST API base URL section of the Public Addresses.
Note: You can use commands such as Telnet, and cURL to verify connectivity to the HTTPS Endpoint over port 443, or another port if the Default is not being used.

There may be an internal requirement that restricts the Cells from being able to access the Public Addresses.
In this instance, you can edit the Cell's Host File to redirect API Requests to itself rather than trying to contact the Public Addresses.

  1.  SSH to the vCloud Director Cell
  2.  Login as root
  3.  Backup the file /etc/hosts
  4. Edit the file /etc/hosts
  5.  Add an entry in the format <Cell HTTP Interface IP> <HTTPS REST API base URL>
  6. Save the File
  7.  Perform a Ping Command against the HTTPS REST API base URL and verify that the value returned is the Cell HTTP Interface IP
  8.  Repeat steps 1-7 above for all subsequent Cells.