Cluster creation on an existing Workload Domain fails with the following error:
When trying to add a new cluster to an imported WLD the SDDC Manager displays a red banner on step 4 "Switch Configuration":Failed to validate host selection: Invalid Parameter: hostsOnly=true, skipHostSwitchValidation=false
(Provided the VDS configuration is applied to the hosts in the cluster.)
In /var/log/vmware/vcf/domainmanager/domainmanager.log an error can be seen: Error reading inventory for NSX transport zones information for domain 45554.....
No default cluster found for domain : 45554........
VMware Cloud Foundation 5.x
Due to the Workload domain being imported earlier to VCF, no cluster was marked as default to that Workload domain thus failing the workflow.
Note: This is a destructive operation. Please ensure that all necessary backups and snapshots are taken prior to proceeding with the steps below to avoid any issue.To be able to add a new cluster to a Workload Domain, we have to set another cluster in the Workload Domain as default, so that the required cluster can be successfully created.
su root)VCF < 5.x : psql -h localhost -U postgres -d platformVCF >=5.x : /usr/pgsql/13/bin/psql -h localhost -U postgres -d platformSelect * from cluster;is_defaultSelect * from cluster where name='<clusterNameFromStep2>';update cluster set is_default='t' where name='<clusterNameFromStep2>'; \qdomainmanager servicesystemctl restart domainmanager If you require assistance with this activity, please log a case through the Broadcom Support Portal to engage a Technical Support Engineer (TSE). Ensure that a snapshot of the SDDC Manager VM is taken beforehand, and reference this Knowledge Base (KB) article when submitting the case to support.