Error: java.lang.NullPointerException during NSX N-VDS to VDS migration precheck
search cancel

Error: java.lang.NullPointerException during NSX N-VDS to VDS migration precheck

book

Article ID: 448551

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • When attempting an NSX N-VDS to VDS migration, the precheck phase fails to complete.
  • Executing the command 'vds-migrate precheck' results in the specific error message: java.lang.NullPointerException.

INFO NvdsUpgradeTaskExecutor1 VcResourceServiceImpl 70347 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] Getting hardware and network info for host host-XXX in VC and query is DEFAULT
.
INFO NvdsUpgradeTaskExecutor1 VcResourceServiceImpl 70347 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] Hardware and network info for host host-XXXX is HostHardwareNetworkComputeInfo{cpuCores='40', numaNodes='2', fqdn='XXXXX', managedByServer='XXXX', vmsPoweredOnCount='0', networkInfo='HostNetworkInfo{virtualSwi
tches='[VirtualSwitchInfo{name='vSwitch0', switchType='VSS', cmLocalId='null', portgroups='[PortGroupInfo{name='VM Network', networkPolicy='NetworkPolicyInfo{nicTeaming='NicTeamingPolicyInfo{policy='loadbalance_srcid', nicOrder='NicOrderPolicyInfo{activeNic='null', standbyNic='null'}'}', security='null', shapingPolicy='null'}', spec='null'}]', physicalInterfaces='[]', networkPolicy='NetworkPolicyInfo{nicTeaming='NicTeamingPolicyInfo{policy='loadbalance_srcid', nicOrder='NicOrderPolicyInfo{activeNic='null', standbyNic='null'}'}', security='null', shapingPolicy='null'}', hostProxySpecs='null', uplinkPorts='null', key='null', extraConfigs='null', vteps='null', pnicZones='null', uuid='null', mtu='null'},  VirtualSwitchInfo XXX PortGroupInfo{name=XXX
.
INFO NvdsUpgradeTaskExecutor1 VcConnectionImpl 70347 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] Logout for Vc XXXX
INFO NvdsUpgradeTaskExecutor1 NvdsUpgradeReadinessCheckServiceImpl 70347 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] NVDS-UPGRADE exception in precheckConfig abba83f9-b94f-41fe-ba87-XXX: java.lang.NullPointerException
at com.vmware.nsx.management.nvdsupgrade.service.NvdsUpgradeReadinessCheckServiceImpl.validateNvdsUpgradeConfig(NvdsUpgradeReadinessCheckServiceImpl.java:1093)
at com.vmware.nsx.management.nvdsupgrade.service.NvdsUpgradeReadinessCheckServiceImpl.precheckConfig(NvdsUpgradeReadinessCheckServiceImpl.java:919)
at com.vmware.nsx.management.nvdsupgrade.service.NvdsUpgradeReadinessCheckServiceImpl$NvdsUpgradeTask.run(NvdsUpgradeReadinessCheckServiceImpl.java:1369)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)

Environment

NSX 3.2.3

Cause

The NVDS Switch is missing when validated from the ESXi host (via the Network tab) or via the Managed Object Browser (MOB) at https://<vCenter-Server-FQDN-or-IP>/mob/?moid=host-XXX within the Network field.

Resolution

1. Log in to the NSX Manager user interface with administrator privileges.

2. Navigate to System > Fabric > Nodes > Host Transport Nodes.

3. Select the ESXi host (or cluster) that requires reconfiguration.

4. Click Configure NSX to reapply the existing transport node profile.

Re-run the NSX N-VDS to VDS migration precheck command (vds-migrate precheck) to verify the issue is resolved.

Additional Information

Troubleshooting NSX N-VDS to VDS migration:- https://knowledge.broadcom.com/external/article/389820