When performing a Cross vCenter Server export/migration from a source vCenter (vcenter01) to a target vCenter (vcenter02) within the same VCF fleet, the target vCenter inventory fails to load. The UI may display an empty array or an "invalidCredentials" error despite correct credentials.
com.vmware.vise.vim.commons.vcservice.impl.VcListServiceImpl Tried to add an alien VC whose GUID is already registered: 2e38####-####-####-####-########7c34dhttps://vcenter01.example.com/ui/tree/children?treeId=MigrateHostsAndClustersTree&nodeTypeId=RefOrVcAsRoot&objRef=urn:vmomi:Folder:group-d1:2e38####-####-####-####-########7c34d
[]The issue is caused by stale vCenter linking configuration data on the source vCenter. A previous attempt to delete or update the linking configuration in VCF Operations failed due to an INVALID_CERTIFICATE_EXCEPTION on the specific vCenter node. Because the cleanup task failed, the vCenter still retains metadata or "alien VC" registrations that conflict with new migration requests, preventing the inventory from being populated correctly.
To resolve this, a manual cleanup of the stale linking data must be performed via the VCF Operations API.
Prerequisites
Steps to cleanup of the stale linking data:
curl -kvs -X POST "https://<vcfops_fqdn>/suite-api/api/auth/token/acquire" -H "Content-Type: application/json" -H "Accept: application/json" -d '{"username" : "admin", "password" : "<admin_assword>" curl -k -X 'PUT' 'https://<vcf-ops-ip>/suite-api/internal/vcenterlinking/vcenters/cleanup?_no_links=true' -H 'accept: */*' -H 'X-Ops-API-use-unsupported: true' -H 'Authorization: OpsToken <ops-token from step #2>' -H 'Content-Type: application/json' -d '{ "vcenterIds": ["<vcenter-adapter-id-to-cleanup>"]}'