You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The full traceback is:
Traceback (most recent call last):
File "/home/nochi/.ansible/tmp/ansible-tmp-1714569466.6996984-267554-173320257008398/AnsiballZ_nsxt_policy_tier0.py", line 107, in <module>
_ansiballz_main()
File "/home/nochi/.ansible/tmp/ansible-tmp-1714569466.6996984-267554-173320257008398/AnsiballZ_nsxt_policy_tier0.py", line 99, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/nochi/.ansible/tmp/ansible-tmp-1714569466.6996984-267554-173320257008398/AnsiballZ_nsxt_policy_tier0.py", line 47, in invoke_module
runpy.run_module(mod_name='ansible_collections.vmware.ansible_for_nsxt.plugins.modules.nsxt_policy_tier0', init_globals=dict(_module_fqn='ansible_collections.vmware.ansible_for_nsxt.plugins.modules.nsxt_policy_tier0', _modlib_path=modlib_path),
File "/usr/lib/python3.10/runpy.py", line 224, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.10/runpy.py", line 96, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/modules/nsxt_policy_tier0.py", line 2177, in <module>
File "/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py", line 141, in realize
File "/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py", line 765, in _achieve_state
File "/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py", line 246, in achieve_subresource_state
File "/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py", line 141, in realize
File "/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py", line 758, in _achieve_state
File "/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py", line 564, in _achieve_present_state
File "/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/modules/nsxt_policy_tier0.py", line 1806, in update_resource_params
KeyError: 'external_interface_info'
fatal: [inet-ot0-ext120101 -> localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/home/nochi/.ansible/tmp/ansible-tmp-1714569466.6996984-267554-173320257008398/AnsiballZ_nsxt_policy_tier0.py\", line 107, in <module>\n _ansiballz_main()\n File \"/home/nochi/.ansible/tmp/ansible-tmp-1714569466.6996984-267554-173320257008398/AnsiballZ_nsxt_policy_tier0.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/nochi/.ansible/tmp/ansible-tmp-1714569466.6996984-267554-173320257008398/AnsiballZ_nsxt_policy_tier0.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.vmware.ansible_for_nsxt.plugins.modules.nsxt_policy_tier0', init_globals=dict(_module_fqn='ansible_collections.vmware.ansible_for_nsxt.plugins.modules.nsxt_policy_tier0', _modlib_path=modlib_path),\n File \"/usr/lib/python3.10/runpy.py\", line 224, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.10/runpy.py\", line 96, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/modules/nsxt_policy_tier0.py\", line 2177, in <module>\n File \"/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py\", line 141, in realize\n File \"/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py\", line 765, in _achieve_state\n File \"/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py\", line 246, in achieve_subresource_state\n File \"/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py\", line 141, in realize\n File \"/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py\", line 758, in _achieve_state\n File \"/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/module_utils/nsxt_base_resource.py\", line 564, in _achieve_present_state\n File \"/tmp/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload_u4fkssnw/ansible_vmware.ansible_for_nsxt.nsxt_policy_tier0_payload.zip/ansible_collections/vmware/ansible_for_nsxt/plugins/modules/nsxt_policy_tier0.py\", line 1806, in update_resource_params\nKeyError: 'external_interface_info'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
Reproduction steps
Configure HA VIP on Tier0
Do nsxt_policy_tier0 with only edge_cluster_info directive in locale_services directive
Describe the bug
Error Message
Reproduction steps
...
Expected behavior
nsxt_policy_tier0 module passes in this case.
Additional context
No response
The text was updated successfully, but these errors were encountered: