Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice some azure module azure_rm_servicebus_info_module when private end point on resource enable, ansible module not working #94

Open
vasiredp opened this issue Mar 14, 2024 · 1 comment

Comments

@vasiredp
Copy link

vasiredp commented Mar 14, 2024

PLease correct me if i am wrong , noticed azure_rm_servicebus_info_module when private end point enabled on resource(Azure service bus) , module is not working and giving below error . but same module works for other azure service bus where Private end point option is not enabled.

{
"module_stdout": "",
"module_stderr": "Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 107, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.azure.azcollection.plugins.modules.azure_rm_servicebus_info', init_globals=dict(_module_fqn='ansible_collections.azure.azcollection.plugins.modules.azure_rm_servicebus_info', _modlib_path=modlib_path),\n File "/usr/lib64/python3.9/runpy.py", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.9/runpy.py", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 582, in \n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 578, in main\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 435, in init\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/module_utils/azure_rm_common.py", line 473, in init\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/basic.py", line 1521, in exit_json\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/basic.py", line 1514, in _return_formatted\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/common/parameters.py", line 931, in remove_values\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/common/parameters.py", line 470, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.PrivateEndpointConnection'>, {'additional_properties': {'location': 'japaneast'}, 'id': '/subscriptions/*********/resourceGroups/-01/providers/Microsoft.ServiceBus/namespaces/mfcsbusjpcompreprodjpe01/privateEndpointConnections/e3fa66c1-0b58-43df-922d-4425e57bbd3e', 'name': 'e3fa66c1-0b58-43df-922d-4425e57bbd3e', 'type': 'Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections', 'system_data': None, 'private_endpoint': <azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.PrivateEndpoint object at 0x7f46500b61f0>, 'private_link_service_connection_state': <azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.ConnectionState object at 0x7f46500b6400>, 'provisioning_state': 'Succeeded'}\n",
"exception": "Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 107, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1710399189.6976047-40-127439816987669/AnsiballZ_azure_rm_servicebus_info.py", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.azure.azcollection.plugins.modules.azure_rm_servicebus_info', init_globals=dict(_module_fqn='ansible_collections.azure.azcollection.plugins.modules.azure_rm_servicebus_info', _modlib_path=modlib_path),\n File "/usr/lib64/python3.9/runpy.py", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.9/runpy.py", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 582, in \n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 578, in main\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_servicebus_info.py", line 435, in init\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible_collections/azure/azcollection/plugins/module_utils/azure_rm_common.py", line 473, in init\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/basic.py", line 1521, in exit_json\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/basic.py", line 1514, in _return_formatted\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/common/parameters.py", line 931, in remove_values\n File "/tmp/ansible_azure.azcollection.azure_rm_servicebus_info_payload_f_47ublq/ansible_azure.azcollection.azure_rm_servicebus_info_payload.zip/ansible/module_utils/common/parameters.py", line 470, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.PrivateEndpointConnection'>, {'additional_properties': {'location': 'japaneast'}, 'id': '/subscriptions/*/resourceGroups/-01/providers/Microsoft.ServiceBus/namespaces/mfcsbusjpcompreprodjpe01/privateEndpointConnections/e3fa66c1-0b58-43df-922d-4425e57bbd3e', 'name': 'e3fa66c1-0b58-43df-922d-4425e57bbd3e', 'type': 'Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections', 'system_data': None, 'private_endpoint': <azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.PrivateEndpoint object at 0x7f46500b61f0>, 'private_link_service_connection_state': <azure.mgmt.servicebus.v2021_06_01_preview.models._models_py3.ConnectionState object at 0x7f46500b6400>, 'provisioning_state': 'Succeeded'}\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1,
"_ansible_no_log": null,
"changed": false
}

@vasiredp vasiredp changed the title Notice some azure module azure_rm_servicebus_info_module when private end point on resource enable not working Notice some azure module azure_rm_servicebus_info_module when private end point on resource enable, ansible module not working Mar 15, 2024
@vasiredp
Copy link
Author

any update please on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant