Symptoms:
Validate cluster primary datastore check failedCluster primary datastore is not validCannot invoke "String.equalsIgnoreCase(String)" because "clusterPrimaryDataStoreSourceId" is nullThe SDDC Manager database is missing the Managed Object Reference ID (MoRef ID) for the cluster's primary datastore.
During the host addition validation workflow, SDDC Manager compares the host's connected datastores against the cluster's designated primary datastore recorded in the database. Because the primary_datastore_source_id column for the cluster is set to null, the Java string comparison function fails with a NullPointerException, aborting the workflow.
Inventory > Storage.MoRef ID (the string starting with datastore located immediately after the semicolon).vcf, elevate to root.psql -h localhost -U postgres -d platformselect id, name, primary_datastore_name, primary_datastore_source_id from cluster;update cluster set primary_datastore_source_id='[MoRef_ID]' where id='[Cluster_ID]';/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.shAdd Host operation.