NSX V2T migration failed at translation stage with error: TypeError: object of type 'NoneType' has no len()
search cancel

NSX V2T migration failed at translation stage with error: TypeError: object of type 'NoneType' has no len()

book

Article ID: 322592

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

Symptoms:
  • Miigration from NSX for vSphere to a NSX-T version below 3.2.1 is being attempted.
  • The migration succeeds except on the last stage, translation import configuration, which fails.
  • The following traces can be seen in the NSX-T manager log: /var/log/migration-coordinator/translation.log
{'category': 'Unexpected error', 'error': "Transport Zone failed with 'object of type 'NoneType' has no len()'"}
Traceback (most recent call last):
 File "main.py", line 158, in <module>
  main(sys.argv)
...
 File "/opt/vmware/migration-coordinator-tomcat/bin/v2t/config-migrator/plugins/tz_plugin.py", line 1873, in _merge_trunk_vlan_ranges
  if len(vlan_ranges) < 2:
TypeError: object of type 'NoneType' has no len()


Environment

VMware NSX-T Data Center
VMware NSX-T Data Center 3.x

Cause

There is an issue with the NSX for vSphere VTEP VLAN, where they are configure with trunk, but the migration coordinator was told to use a VLAN. Due to this, Transport zone plugin script will raise the error while translating the configurations due to the condition check of the TYPE-VLAN.

Resolution

This issue is resolved in NSX-T 3.2.1 available at Broadcom Downloads.

Workaround:

  • As NSX-T 3.2.1 is now Generally available, it is advised to migrate to this or later version.
  • Ensure the correct data regarding the VLANs on NSX for vSphere during the migration is being entered.

Additional Information

Impact/Risks:
Migration from NSX for vSphere to NSX-T fails at the translation stage.