The following error is seen when upgrading NSX components in a Workload Domain through SDDC Manager.
NSX Manager is in error state due to audit failure. Please run upgrade pre-checks before proceeding with upgrade
The below conditions apply:
curl -k -u admin -X GET -H "Content-Type:application/json" https://<NSX MANAGER VIP FQDN>/api/v1/upgrade/summarycurl -k -u admin -X GET -H "Content-Type:application/json" https://<NSX MANAGER VIP FQDN>api/v1/upgrade/summary
Enter host password for user 'admin':
{
"system_version" : "4.1.2.5.0.24150840",
"upgrade_coordinator_version" : "4.1.2.6.0.24723857",
"pre_upgrade_bundle_version" : "4.1.2.6.0.24723849",
"upgrade_status" : "NOT_STARTED",
"target_version" : "4.1.2.6.0.24723849",
"upgrade_bundle_file_name" : "VMware-NSX-upgrade-bundle-4.1.2.6.0.24723849-pre-check.pub",
"component_target_versions" : [ {
"component_type" : "EDGE"
}, {
"component_type" : "HOST"
}, {
"component_type" : "MP"
} ],
"upgrade_coordinator_updated" : true
}
/var/log/upgrade-coordinator/upgrade-coordinator.log YYYY-MM-DDT23:06:37.093Z INFO http-nio-127.0.0.1-7442-exec-3 UpgradeCoordinatorFacadeImpl 3097 SYSTEM [nsx@6876 comp="nsx-manager" level="INFO" subcomp="upgrade-coordinator"] Upload upgrade bundle VMware-NSX-upgrade-bundle-4.1.2.6.0.24723849-pre-check.pub via file and verifying in Async with install flag true
...
YYYY-MM-DDT23:07:09.797Z INFO Thread-11 UpgradeCoordinatorUpgradeService 3097 SYSTEM [nsx@6876 comp="nsx-manager" level="INFO" subcomp="upgrade-coordinator"] Since Bundle version is not available. This is fresh install case. Hence storing the version for UcUpgradeContext{upgradeBundleName='VMware-NSX-upgrade-bundle-4.1.2.6.0.24723849-pre-check.pub', upgradeBundleType=PUB, upgradeBundleVersion='4.1.2.6.0.24723849', activeUpgradeBundleService=com.vmware.nsx.management.upgrade.bundle.PUBUpgradeBundleService@446fb362, targetVersion='null', metadata=2, preUpgradeBundleMetadata={NSX_EDGENODE_VMDK_SIZE=3358831616, NSX_MANAGER_VMDK_SIZE=4421377536, NSX_MANAGER_NUB_SIZE=18995200, NSX_EDGENODE_NUB_SIZE=34529280}}
VMware Cloud Foundation 5.x
The SDDC manager precheck workflow breaks when the Pre-Upgrade Bundle(PUB) file is uploaded to the NSX Manager and a pre-check is done.
The pre-check run on the NSX manager directly is considered an out-of-band activity and is not supported with VCF 5.x
To work around the issue,
Step 1: Backup SDDC Manager and NSX Managers
Step 2: Upgrade the upgrade coordinator
Step 3: Validate if the component target versions are populated now.
curl -k -u admin -X GET -H "Content-Type:application/json" https://<NSX MANAGER VIP FQDN>/api/v1/upgrade/summary
Step 4: Validate prerequisites.
Step 5: Run prechecks through SDDC-M and complete the upgrade.