"Unable to connect to vCenter..." error when configuring replications in Cloud Director Availability 4.x
book
Article ID: 315168
calendar_today
Updated On:
Products
VMware Cloud Director
Issue/Introduction
Symptoms:
Configuring a new replication fails in Cloud Director Availability, and you see the error:
Unable to connect to vCenter '99391072-####-####-####-##########26'.
In the /opt/vmware/h4/cloud/log/cloud.log file on the Cloud Replication Management Appliance, you see a similar entry: 2019-11-20 11:23:58.591 ERROR - [UI__aa08147d-558f-479a-a3a9-47ba5768f2ba_0y_S2] [job-12] com.vmware.h4.jobengine.JobExecution : Task 55ee52c7-c017-442c-b327-e027abc31e01 (WorkflowInfo{type='start', resourceType='vappReplication', resourceId='C4VAPP-76c787c9-e735-4aff-8e19-00d05e4475ca', isPrivate=false, resourceName='null'}) has failed com.vmware.h4.replicator.api.exceptions.FailedToAcquireVcConnection: Unable to connect to vCenter '99391072-####-####-####-##########26'.
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
Environment
VMware vCloud Availability 3.0.x VMware Cloud Director Availability 4.x VMware vCloud Availability 3.5.x VMware Cloud Director 10.x
Cause
This issue occurs on the destination site when the instance UUID of a resource vCenter Server in Cloud Director has changed, but Cloud Director is not aware of the vCenter UUID change or Cloud Director has an incorrect value saved for the vCenter UUID.
Resolution
To verify that you are experiencing this issue, compare the current vCenter instance UUIDs for each resource vCenter Server with the UUIDs stored by Cloud Director.
vSphere 6.x Appliance
SSH to the vCenter Server Appliance and log in as root.
Show the vCenter instance UUID with the command:
grep instanceUuid /etc/vmware-vpx/instance.cfg
vSphere 6.x Windows Installation
RDP to the vCenter Server VM and log in with administrator credentials.
List all of the resource vCenter Servers and their UUIDs:
select name, url, uuid from virtual_center;
Compare the values in the uuid column to the current instanceUuid values of the resource vCenter Servers.
If there is a mismatch between the Cloud Director database and the vCenter Servers then you have confirmed you are experiencing this issue.
To resolve this issue contact VMware Support and note this Article ID (76301) in the problem description. For more information, see How to Submit a Support Request.