When attempting to converge an existing vSphere/NSX environment to VCF 9.1 using the VCF Installer, the workflow fails during the Domain Discovery phase with the following error in the UI:
Failed to discovery domain inventory with vCenter [VC_FQDN]. Reference Token: [TOKEN]
In /var/log/vmware/vcf/domainmanager/domainmanager.log, a java.lang.NullPointerException is observed at DomainDiscoveryVdsHelper.getPortGroupActiveUplinks:
ERROR [vcf_dm] [c.v.v.d.u.DomainDiscoveryVdsHelper] Failed to process VDS [VDS_NAME] in vCenter [VC_FQDN]java.lang.NullPointerException: null at com.vmware.vcf.discovery.utils.DomainDiscoveryVdsHelper.getPortGroupActiveUplinks(DomainDiscoveryVdsHelper.java:464)
VCF 9.1
This issue occurs when the VCF discovery automation encounters a Distributed Portgroup (DVPortgroup) that has an empty or unset Active Uplinks list in its Teaming and Failover policy. The discovery logic expects at least one active uplink to be defined and fails with a null reference when it attempts to iterate over an unpopulated activeUplinkPort array.
This commonly affects NSX-managed VLAN-backed segments that were created without an explicit uplink teaming policy.
To resolve this issue, manually assign an active uplink to the affected portgroup in vCenter or NSX Manager.
domainmanager.log debug lines immediately preceding the error).https://[VC_FQDN]/mob/?moid=[PORTGROUP_MOID]&doPath=config.defaultPortConfig.uplinkTeamingPolicy.uplinkPortOrderactiveUplinkPort is no longer empty.