Upgrade prechecks in SDDC Manager executed for a WLD which contains non-vSAN storage clusters take multiple hours to complete.
The precheck does not fail or show any errors, and sits at 65% for an extended amount of time.
VMware Cloud Foundation 4.x
VMware Cloud Foundation 5.x
This is due to a logic issue in the way the prechecks are run for non-vSAN clusters, causing them to take significantly longer to complete.
This issue will be resolved in VCF 5.2.1
0. Take a snapshot of the SDDC Manager VM.
1. SSH into the SDDC Manager as the vcf user and then su root.
2. Create a backup copy of the file /opt/vmware/vcf/operationsmanager/scripts/assessment/resourcestate/cluster/NonStretchedNonVsanClusterResource.json
:
cp /opt/vmware/vcf/operationsmanager/scripts/assessment/resourcestate/cluster/NonStretchedNonVsanClusterResource.json /opt/vmware/vcf/operationsmanager/scripts/assessment/resourcestate/cluster/NonStretchedNonVsanClusterResource.json.bak
3. Edit the file /opt/vmware/vcf/operationsmanager/scripts/assessment/resourcestate/cluster/NonStretchedNonVsanClusterResource.json
:
vi /opt/vmware/vcf/operationsmanager/scripts/assessment/resourcestate/cluster/NonStretchedNonVsanClusterResource.json
4. Locate the line:
"filterExpression": "isVsanEnabled == false",
and update it to:
"filterExpression": "isVsanEnabled == false && '${perspectiveElement.elementName}' == name && domainId == '${perspectiveElement?.domainInfo?.domainId}'",
5. Save and Quit the file
:wq
6. Attempt the upgrade prechecks again. It should no longer take several hours to complete.