When adding a host to a cluster in SDDC Manager, the task fails with the following error
"No unassigned hosts available with storage type NFS. Commission hosts with physical NICs 0 & 1 to Add Host."
Review of the vcf-commonsvcs.log shows cluster deletion and recreation events with an incorrect storage type:
/var/log/vmware/vcf/commonsvcs/vcf-commonsvcs.log:
YYYY-MM-DD THH:MM:SS.621 [DomainExtensionsImpl] DELETE Domain Inventory JSON { ... "clusters":[ { "name":"dc-p-lx", ... "primaryDatastoreType":"NFS", "id":"58b63cab-####-####-####-############..." } ... ] }
YYYY-MM-DD THH:MM:SS.655 [ClusterInventoryServiceImpl] Delete Cluster - 58b63cab-####-####-####-############
YYYY-MM-DD THH:MM:SS.672 [ClusterInventoryServiceImpl] Create Cluster - 58b63cab- ####-####-####-############ on vCenter - #######-...
VMware Cloud Foundation 9.0.x.
The SDDC Manager inventory contains stale primaryDatastoreType metadata. This occurs when a domain sync operation is performed while an NFS datastore is mounted. In VCF 9.0.x, the storage type is not recomputed when a datastore is removed out-of-band in vCenter; it is only rewritten during a full domain sync or import.
To resolve this in VCF 9.0.x, re-synchronize the domain inventory: