During V2T Migration, while performing "Translate L2, L4-L7 Configuration" the workflow fails immediately with below error messagesConfig translation failed [Reason: Distributed Firewall failedwith "NoneType' object has no attribute 'append"]
Config translation failed [Reason: ]
VMware NSX-T DataCenter
This issue occurs when the 'Applied To' field of Distributed Firewall (DFW) rules does not explicitly reference a security group. The DFW plugin's sg_util method, which is responsible for creating temporary security groups for policy application, encounters a None type error because an internal policy mapping file is not correctly initialized or lacks an empty default state.
For any identified security groups that are not actively contributing to DFW rules, ensure that the dependency of the respective VMs (like vm-4######) is cleared or removed from these security groups within NSX-V. This prevents the migration coordinator from attempting to translate non-existent references.
Logs to isolate the issue:/var/log/migration-coordinator/summary.log
"stage": "xlate","status": "error""api_count": 318,"feedback_requests_count": 9,"sub_stage": "13-17","errors": [
"category": "Unexpected error","error": "Distributed Firewall failed with ''NoneType' object has no attribute 'append''"
/var/log/migration-coordinator/v2t/cm.log
2025-04-26 08:15:59, 986 1861965 CM.plugins.securitygroup. sg_utils_multivc DEBUG Updated Policy group mapping2025-4-2602:15:59, 986 1861965 CM.plugins.securitygroup.sg_utils_multivc INFO Created Wrapper Group url : /infra/domains/default/groups/dfw_vm-42#### applied_to, with api <engine.t_api.NsxPolicyApi object at 0x########> and internal api : None, sg applied to api : <engine.t_api.NsxPolicyApi object at 0x########>2025-04-26 08:15:59,986 1861965 CM.plugins.dfw_plugin DEBUG DFW Received following wrapper and internal group api from sg_utils, Wrapper Group url : /infra/domains/default/groups/dfw_vm-42####applied_to, Wrapper Group api : <engine.t_api.NsxPolicyApi object at 0x########>, internal api : None, sg_applied_to_api: <engine. t_api.NsxPolicyApi object at 0x########>2025-04-26 08:15:59,986 1861965 CM.plugins.xlate plugin DEBUG Loading from nsx-v backup files named services.securitygroup.vm-4######. translation.ipaddresses under /var/log/migration-coordinator/v2t/nsxv-config/2025-04-26 08:15:59,987 1861965 CM.plugins.xlate _plugin DEBUG Loaded 1 objects2025-04-26 08:15:59,987 1861965 CM.plugins.dfw_plugin INFO Translating group info: gp_type: VirtualMachine, gp_value: vm-4######2025-04-26 08:15:59,987 1861965 CM.plugins.securitygroup.sg_utils_multivc INFO Creating temp url, apis for SG: dfw_vm-4###### applied_to used in appliedto2025-04-26 08:15:59, 987 1861965 CM.plugins.securitygroup.sg_utils_multivc DEBUG Created temporary SG for applied to with url: {/infra/domains/default/groups/AppliedTo_SM-N#######NE-Ilapplied_to_dfw_vm-4######applied_to}.2025-04-26 08:15:59,987 1861965 CM.plugins.securitygroup.sg_utils_multivc DEBUG Paths : ['/infra/domains/default/groups/AppliedTo_SM-N######-N####NE-Ilapplied_to_dfw_vm-4###### applied_to']2025-04-26 08:15:59,987 1861965 CM.plugins.securitygroup.sg_utils_multivc INFO No expression found adding applied to expression {'resource_type': 'PathExpression', 'paths': ['/infra/domains/default/groups/AppliedTo_SM-N#########NE-Ilapplied_to_dfw_vm-4######applied_to']}.2025-04-26 08:15:59,988 1861965 CM.plugins.securitygroup.sg_utils_multivc INFO Path expression after applied to: [{'resource_type': 'PathExpression', 'paths': ['/infra/domains/default/groups/AppliedTo_SM-N#########NE-Ilapplied_to_dfw_vm-4######applied_to']]]2025-04-26 08:15:59,988 1861965 CM.plugins.securitygroup.sg_utils_multivc DEBUG Member expression to be added in the wrapper group : [{'resource_type': 'PathExpression', 'paths': ['/infra/domains/default/groups/AppliedTo_SM-N#########NE-Ilapplied_to_dfw_vm-4######applied_to']}]Storing url: /infra/domains/default/groups/dfw_vm-4######applied_to2025-04-26 08:15:59,990 1861965 CM.plugins.securitygroup.sg_utils_multivc DEBUG2025-04-26 08:15:59,990 1861965 CM.plugins.securitygroup.sg_utils_multivc DEBUG2025-04-26 08:15:59,990 1861965 CM.plugins.securitygroup.sg_utils_multivc DEBUG2025-04-26 08:15:59,991 1861965 CM.plugins.securitygroup.sg_utils_multivc DEBUG2025-04-26 08:15:59,991 1861965 CM.plugins.securitygroup.sg_utils_multivc INFO Created Wrapper Group url : /infra/domains/default/groups/dfw_vm-4######applied_to, with api : <engine.t_api.NsxPolicyApi object at 0x########> and internal api : None, sg applied to api : <engine.t_api.NsxPolicyApi object at 0x########>2025-04-26 08:15:59,991 1861965 CM.plugins.dfw_plugin DEBUG DFW Received following wrapper and internal group api from sg_utils, Wrapper Group url : /infra/domains/default/groups/dfw_vm-4######applied_to, Wrapper Group api : <engine.t_api.NsxPolicyApi object at 0x########>, internal api : None, sg_applied_to_api: <engine.t_api.NsxPolicyApi object at 0x########>2025-04-26 08:15:59,991 1861965 CM.plugins.dfw_plugin INFO Creating 1 GroupsStored 318 apis------ Stage xlate: error