NSX Upgrade Pre-Check failing with error "Duplicate key UpgradeUnit"
search cancel

NSX Upgrade Pre-Check failing with error "Duplicate key UpgradeUnit"

book

Article ID: 379181

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Host Transport Node has been moved from vLCM to Non-vLCM Cluster and then upgrade attempted
  • vLCM  was previously activated in the cluster then it was deactivated
  • The following error message can be found in var/log/upgrade-coordinator/upgrade-coordinator.log:
     
 java.lang.IllegalStateException: Duplicate key UpgradeUnit [id=vlcm-########-####-####-####-############, TransportNodeID =vlcm-########-####-####-####-############, name=VMWare Lifecycle Manager, description=null, type=HOST, upgradeUnitSubtype=RESOURCE, currentVersion=3.1.0.0.0.0, warnings=[], errors=null, metaData={DEPLOYMENT_STATUS=INSTALL_SUCCESSFUL, HYPERVISOR_VERSION=7.0.3, PARENT_COMPLUTE_COLLECTION_DISPLAY_NAME=<COMPUTE-CLUSTER-NAME>, IN_TN_MAINTENANCE_MODE=false, COMPUTE_MANAGER_VERSION=7.0, PARENT_COMPLUTE_COLLECTION=########-####-####-####-############:domain-c58, VLCM_ENABLED=true, CM_LOCAL_ID=host-000, DISCOVERED_IPS=<IP ADDRESS>, COMPUTE_MANAGER_PORT=443, HYPERVISOR_OS=ESXI, HYPERVISOR_IP=, COMPUTE_MANAGER_SERVER=<VC-FQDN>, lockdownMode=lockdownDisabled, COMPUTE_MANAGER_ID=########-####-####-####-############, UPGRADE_UNIT_TYPE=VMWare Lifecycle Manager, COMPUTE_MANAGER_TYPE=vCenter}, rebooting=false, UaReportedStatus=NOT_SYNCED, extendedConfiguration=[KeyValuePair [key=UpgradeUnitPlatformType, value =Managed ESX, class=class com.vmware.nsx.management.upgrade.model.KeyValuePair, hashCode=107957234]], progressTracker=null, class=class com.vmware.nsx.management.upgrade.model.UpgradeUnit, disabled=false, isSkipUpgrade=false, hashCode=587737456]

Environment

VMware NSX-T Data Center 3.x

Cause

Host Transport Node movement of vLCM cluster to non-vLCM cluster is not supported.

Resolution

This is a condition that may occur in a VMware NSX environment.

Run this API POST command to reset the upgrade plan and try pre-check again:

POST https://<nsx-mgr>/api/v1/upgrade/plan?action=reset&component_type=HOST

Additional Information