Config translation failed [Reason: PortMirroringProfile failed with 'argument of type 'NoneType' is not iterable']
2021-04-06T20:50:58.945Z INFO task-executor-0-workitem-PRECHECK-ConfigTranslator UpgradeServiceImpl 15343 SYSTEM [nsx@6876 comp="nsx-manager" level="INFO" subcomp="upgrade-coordinator"] Component type = PRECHECK , Upgrade Status = FAILED, Progress Percentage = 75 , Progress Message = Config collection initiated...
Collecting VC config
Config collection initiated...
Collecting config
Config translation initiated...
Translating config
Config translation failed [Reason: PortMirroringProfile failed with 'argument of type 'NoneType' is not iterable']
{'category': 'Unexpected error', 'error': "PortMirroringProfile failed with 'argument of type 'NoneType' is not iterable'"}
Traceback (most recent call last):
File "main.py", line 158, in <module>
main(sys.argv)
File "main.py", line 127, in main
xlate_engine.xlate()
File "/opt/vmware/migration-coordinator-tomcat/bin/v2t/config-migrator/engine/xlate_engine.py", line 29, in wrapper
return function(*args, **kwargs)
File "/opt/vmware/migration-coordinator-tomcat/bin/v2t/config-migrator/engine/xlate_engine.py", line 539, in xlate
feedback_requests_count=feedback_requests_count)
File "/opt/vmware/migration-coordinator-tomcat/bin/v2t/config-migrator/engine/xlate_engine.py", line 268, in _finalize_stage
raise exception
File "/opt/vmware/migration-coordinator-tomcat/bin/v2t/config-migrator/engine/xlate_engine.py", line 490, in xlate
apis = plugin.xlate()
File "/opt/vmware/migration-coordinator-tomcat/bin/v2t/config-migrator/plugins/port_mirror_plugin.py", line 246, in xlate
port_mirroring_apis = self.generate_port_mirroring_apis(dvs_list)
File "/opt/vmware/migration-coordinator-tomcat/bin/v2t/config-migrator/plugins/port_mirror_plugin.py", line 188, in generate_port_mirroring_apis
if "erspan2" in config['encapType']:
TypeError: argument of type 'NoneType' is not iterable
/opt/vmware/migration-coordinator-tomcat/bin/v2t/config-migrator/plugins/port_mirror_plugin.py
if 'encapType' in config:
if 'encapType' in config and config['encapType']: