"KeyError: 'routerId'" error when running an NSX-V to NSX-T migration with VMware NSX Migration for VMware Cloud Director
search cancel

"KeyError: 'routerId'" error when running an NSX-V to NSX-T migration with VMware NSX Migration for VMware Cloud Director

book

Article ID: 325526

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • Attempting a migration with VMware NSX Migration for VMware Cloud Director fails.
  • During migration the following error is seen in the VMware NSX Migration for VMware Cloud Director logs, <INSTALL_DIR>\logs\<VCD_URL>\Migration\<ORG_NAME>-VCD-NSX-Migrator-Main-DD-MM-YYYY-HH-MM-SS.log:

[configureServices]:85 [ERROR] [<VDC_NAME>] | Traceback (most recent call last):
File "src\core\vcd\vcdConfigureEdgeGatewayServices.py", line 69, in configureServices
File "src\core\vcd\vcdValidations.py", line 150, in wrapped
File "src\core\vcd\vcdValidations.py", line 90, in inner
File "src\core\vcd\vcdValidations.py", line 80, in inner
File "src\core\vcd\vcdConfigureEdgeGatewayServices.py", line 1045, in configureTargetNAT
File "src\core\vcd\vcdConfigureEdgeGatewayServices.py", line 2645, in createNATPayloadData
KeyError: 'routerId'


Environment

VMware Cloud Director 10.x

Cause

This issue occurs if the source NSX-V Edge to be migrated is missing a Router ID in its Dynamic Routing Configuration.

Resolution

To resolve the issue navigate to the source NSX-V Edge to be migrated and apply an appropriate Router ID in its Dynamic Routing Configuration.
For more information on the Router ID field see the Cloud Director documentation, Specify Default Routing Configurations for the NSX Data Center for vSphere Edge Gateway in the VMware Cloud Director Service Provider Admin Portal.

Example steps would be as follows:

  1. Login to the Cloud Director Provider portal as a System Administration.
  2. Open the Resources, Cloud Resources, Edge Gateways section.
  3. Select the source NSX-V Edge to be migrated and click Services.
  4. Open the Routing, Routing Configuration tab.
  5. In the Dynamic Routing Configuration section set an appropriate Router ID.
  6. Save changes to the services and retry the migration with VMware NSX Migration for VMware Cloud Director.