Upgrade prechecks in SDDC Manager take several hours to complete when non-vSAN Clusters are present in the VCF environment
search cancel

Upgrade prechecks in SDDC Manager take several hours to complete when non-vSAN Clusters are present in the VCF environment

book

Article ID: 375266

calendar_today

Updated On:

Products

VMware Cloud Foundation VMware Cloud Foundation 5.x VMware Cloud Foundation 4.x VMware SDDC Manager

Issue/Introduction

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.

Environment

VMware Cloud Foundation 4.x

VMware Cloud Foundation 5.x

Cause

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.

Resolution

This issue will be resolved in VCF 5.2.1

Workaround:

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.