Upgrade UI asks for PUB upload when UC is already at target version
search cancel

Upgrade UI asks for PUB upload when UC is already at target version

book

Article ID: 429763

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • After the Upgrade Coordinator (UC) has been upgraded to the target version, the Upgrade UI still shows "Check Upgrade Readiness" and requires the user to upload a Pre-Check Upgrade Bundle (.pub file).

Environment

VMware NSX

Cause

In **upgrade-readiness.component.ts** (Check Upgrade Readiness screen), when the overall upgrade status is **SUCCESS**, the code always resets the wizard to step 1 (Pre-Check Upgrade Bundle) and clears the form:

if (ucStatusSummary?.overall_upgrade_status === UpgradeStatusType.overall_upgrade_status.SUCCESS) {
  this.readinessInitialStep = UPGRADE_STEPPER_ITEMS.PRECHECK_READINESS;
  this.bundleVersion = '';
  this.readinessForm.form.reset();
}

Suggested change is (nsx-app-ui/policy/policy-ui/projects/upgrade/src/app/components/upgrade-readiness/upgrade-readiness.component.ts):
        if (ucStatusSummary?.overall_upgrade_status === UpgradeStatusType.overall_upgrade_status.SUCCESS) {
          // When UC is already at target version, do not force user to upload PUB again.
          // Only reset to PRECHECK_READINESS when UC is not yet updated (e.g. post-upgrade cleanup view).
          if (!ucSummaryStateSelector?.upgrade_coordinator_updated) {
            this.readinessInitialStep = UPGRADE_STEPPER_ITEMS.PRECHECK_READINESS;
            this.bundleVersion = '';
            this.readinessForm?.form?.reset();
          } else {
            this.readinessInitialStep = UPGRADE_STEPPER_ITEMS.RUN_PRECHECKS;
          }
        }

Resolution

If you encounter a similar issue, please collect the following API outputs from the NSX Managers and open a support case with Broadcom. -  Creating and managing Broadcom cases

https://<nsx-mgr-ip>/api/v1/upgrade/status-summary
https://<nsx-mgr-ip>/api/v1/upgrade/summary
https://<nsx-mgr-ip>/api/v1/upgrade/bundles/latest/status
https://<nsx-mgr-ip>/api/v1/upgrade/pre-upgrade-checks/failures
https://<nsx-mgr-ip>/api/v1/upgrade/history

 

Additional Information

NSX API GUIDE