NSX upgrade is pausing and displaying error "Invalid component type: null".
search cancel

NSX upgrade is pausing and displaying error "Invalid component type: null".

book

Article ID: 422729

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • During an NSX upgrade for the Edge Node(s), the upgrade is paused, showing the banner message "Invalid component type: null". 


  • The below entries will be encountered at the time that upgrade is paused in var/log/upgrade-coordinator/upgrade-coordinator.log
    INFO http-nio-127.0.0.1-7442-exec-1 EdgeUpgradePlugin 2808 SYSTEM [nsx@6876 comp="nsx-manager" level="INFO" subcomp="upgrade-coordinator"] UA reported status: NOT_IN_PROGRESS UU UpgradeUnit [id=########-####-####-############, TransportNodeID =########-####-####-############, name=<name>, description=null, type=EDGE, upgradeUnitSubtype=RESOURCE, currentVersion=<current NSX version>, warnings=[], errors=[{"moduleName":"upgrade-coordinator","errorCode":30062,"errorMessage":"Unexpected error while upgrading upgrade unit: Invalid component type: null"}], metaData={IP Address=##.##.##.##, Compute Id=########-####-####-############:domain-c#, Number of logical routers on edge node.=#, CM_MANAGER_ID=########-####-####-############}, rebooting=false, UaReportedStatus=NOT_IN_PROGRESS, extendedConfiguration=[], progressTracker=UpgradeUnitProgressCollectorImpl [reference=########-####-####-############, referenceType=null, getProgressPercentage()=100, getUpgradeStatus()=SUCCESS, getLastProgressMessage()=null, getParent()=ReferencedProgressCollectorImpl [reference=########-####-####-############, getProgressPercentage()=50, getUpgradeStatus()=PAUSED, getLastProgressMessage()=null]], class=class com.vmware.nsx.management.upgrade.model.UpgradeUnit, disabled=false, isSkipUpgrade=false, hashCode=-######]
    .
    .
    ERROR task-executor-7-1-workitem-EDGE UpgradePlanQueryServiceImpl 2808 SYSTEM [nsx@6876 comp="nsx-manager" errorCode="MP30003" level="ERROR" subcomp="upgrade-coordinator"] Invalid component type: null
    ERROR task-executor-7-1-workitem-EDGE WorkItem 2808 SYSTEM [nsx@6876 comp="nsx-manager" errorCode="MP30062" level="ERROR" subcomp="upgrade-coordinator"] Error encountered while upgrading upgrade unit <EDGE NAME>
    com.vmware.nsx.management.upgrade.exceptions.InvalidComponentTypeException: null

    Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

Environment

VMware NSX
Vmware NSX-T Data Center

Cause

The null pointer exception occurs due to an unexpected null value for the referenceType property.

Resolution

This is a known issue impacting VMware NSX.

Workaround:

  • Triggering the continuation of the upgrade, through the following API call performed from Postman: 
    POST https://<nsx-mgr>/api/v1/upgrade/plan?action=reset&component_type=EDGE
  • Selecting to continue the upgrade, should now result in the upgrade progressing until completion.