NSX-T failed to upgrade to 3.2.1.1 due to NAT rule data-migration failure
search cancel

NSX-T failed to upgrade to 3.2.1.1 due to NAT rule data-migration failure

book

Article ID: 312633

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Attempting to upgrade from NSX-T 3.1.x to NSX-T 3.2.1.1 fails
  • Entries similar to the below are observed in the NSX Manager support bundle in /var/log/proton/data-migration.log:
2023-01-11T10:33:15.966Z WARN main NatMigrationTask 4047 - [nsx@6876 comp="nsx-manager" level="WARNING" subcomp="manager"] NatSection: unexpected error in migrating table
java.lang.NullPointerException: null


2023-01-11T10:33:15.968Z WARN main UfoCorfuTableMigrator 4047 - [nsx@6876 comp="nsx-manager" level="WARNING" subcomp="manager"] ERROR while running custom migration MappingDetails{modelName='com.vmware.nsx.management.edge.nat.model.NatRule', migrationType=CUSTOM_MIGRATION, reason='null', customMigratorClassName='com.vmware.nsx.management.migration.task.edge.nat.NatMigrationTask', fieldMappings=null, targetProtoName='null', requiresCustomCode='false', owner='null', apiToTest='api/v1/logical-routers/<logical-router-id>/nat/rules'}

Environment

VMware NSX-T
VMware NSX-T Data Center

Cause

The Null Pointer Exception is caused when the Logical-Router is null. 
NAT attempts to retrieve the Logical-Router entry by logicalRouterId but the Logical-Router returns as null.

Resolution

This issue is resolved in VMware NSX-T Data Center 3.2.1.2, available at Broadcom downloads.

If you are having difficulty finding and downloading software, please review the Download Broadcom products and software KB.

If you believe you have encountered this issue and are unable to upgrade, please open a support case with Broadcom Support and refer to this KB article.
For more information, see Creating and managing Broadcom support cases.