When performing an import to create a Workload Domain (WLD) in VMware Cloud Foundation (VCF) 9.1.0, the process fails during the import phase (after validation) with an error indicating that the vCenter VM or cluster cannot be found.
The Subtask of importing fails with following error:
Description : Discover the existing domain from vCenter
Progress Messages : Failed to discovery domain inventory with vCenter <vCenter Server FQDN>
Following error can be seen in domainmanager.log :
YYYY-MM-DDTHH:MM:SS.SSS+0000 ERROR [vcf_dm,XXXXXXXXXXXXXXXXXXXXXXXXXX,XXXX] [c.v.v.d.u.DomainDiscoveryClusterHelper,dm-exec-XXX] Failed to process cluster <Cluster name> in vCenter <vCenter Server FQDN>, skipping
java.lang.ClassCastException: Cannot cast jdk.proxy4.$Proxy432 to com.vmware.vim.binding.vim.Datacenter
YYYY-MM-DDTHH:MM:SS.SSS+0000 ERROR [vcf_dm,XXXXXXXXXXXXXXXXXXXXXXXXXX,XXXX] [c.v.e.s.o.model.error.ErrorFactory,dm-exec-XXX] [LSGNMF] DOMAIN_DISCOVERY_FAILED Failed to discovery domain inventory with vCenter <vCenter Server FQDN>.
com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Failed to discovery domain inventory with vCenter <vCenter Server FQDN>.
VMware Cloud Foundation 9.1.0
This issue is caused by a bug in the SDDC Manager automation framework. The current logic fails to correctly traverse or identify clusters that are nested within folders in the vSphere inventory (e.g., Datacenter > Folder > Cluster).
Engineering has confirmed this is a known issue.
Workaround
To unblock the import process, temporarily move the cluster out of the folder so it resides directly under the Datacenter object.