Customer encounter an issue when trying to add additional hosts to a WLD.
Receiving error from validation: The number of resources matching definition 'Cluster that has vSAN storage and is not stretched' is incorrect. Count 0, condition value == 1
VCF 5.2.2
If there is a cluster that is part of a custom folder under the datacenter, the assessment engine will not discover the hosts.
There are 2 files that will need to be edited to make this work.
Workaround:
1. Take a snapshot of the SDDC Manager Appliance.
2. Take a backup of the following files.
cp -p /etc/vmware/vcf/domainmanager/application-prod.properties /home/vcf/application-prod.properties.DM.backup
cp -p /opt/vmware/vcf/sddc-manager-ui-app/server/support/config.properties /home/vcf/application-prod.properties.OM.backup
3. Edit the domainmanager properties file and add the vcf.skip.dayn.guarails=true and disable.async.validation=true.
vi /etc/vmware/vcf/domainmanager/application-prod.properties
vcf.skip.dayn.guardrails=true disable.async.validation=true
4. Edit the /opt/vmware/vcf/sddc-manager-ui-app/server/support/config.properties file:
If the line enableAsyncValidation=true exists, change its value to false.
If the line doesn’t exist, add the following:
enableAsyncValidation=false
5. After making the changes, restart all VCF services by running the following command:
/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh
6. Once the services come back up you can retry the host add operation.