And whenever I switch from strategy: linear to strategy: mitogen_linear any usage of module azure.azcollection.azure_rm_keyvaultsecret_info fails:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: The Mitogen master process was unable to serve 'ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common'. It may be a native Python extension, or it may be missing entirely. Check the importer debug logs on the master for more information.
fatal: [host1 -> localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):
File \"master:/Users/dmankows/mitogen/ansible_mitogen/runner.py\", line 1056, in _run
self._run_code(code, mod)
File \"master:/Users/dmankows/mitogen/ansible_mitogen/runner.py\", line 1020, in _run_code
exec(code, vars(mod))
File \"master:/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py\", line 162, in <module>
File \"<stdin>\", line 1639, in create_module
ImportError: The Mitogen master process was unable to serve 'ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common'. It may be a native Python extension, or it may be missing entirely. Check the importer debug logs on the master for more information.
", "module_stdout": "", "msg": "MODULE FAILURE
See stdout/stderr for the exact error", "rc": 1}
by looking at line 162 in file /Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py
there is such import
from ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common import AzureRMModuleBase
And checking the directory ~/.ansible/collections/ansible_collections/azure/azcollection/plugins/module_utils - the module is there:
Are you running with any custom modules, or module_utils loaded?
No
Have you tried the latest master version from Git?
No
Mitogen version
0.3.9
Mention your host and target OS and versions
controller - MacOS Sonoma, MacBook Pro 2021 (ARM), but also this happens on Ubuntu 22-based Docker image (x86_64)
remote - Ubuntu 18/20/22
Mention your host and target Python versions
Python 3.12.6 on controller, on remote - various (3.6., 3.8, 3.10)
If reporting a crash or hang in Ansible, please rerun with -vvv and include
200 lines of output around the point of the error, along with a full copy of
any traceback or error text in the log. Beware "-vvv" may include secret
data! Edit as necessary before posting.
[task 41467] 12:19:28.627733 D ansible_mitogen.planner: <class 'ansible_mitogen.planner.BinaryPlanner'> rejected 'azure.azcollection.azure_rm_keyvaultsecret_info'
[task 41467] 12:19:28.628085 D ansible_mitogen.planner: <class 'ansible_mitogen.planner.NewStylePlanner'> accepted 'azure.azcollection.azure_rm_keyvaultsecret_info' (filename '/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py')
[mux 41402] 12:19:28.628627 D ansible_mitogen.module_finder.scan: 'ansible_module_azure.azcollection.azure_rm_keyvaultsecret_info', '/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py', ('/Users/dmankows/.ansible/plugins/module_utils', '/usr/share/ansible/plugins/module_utils', '/Users/dmankows/.local/share/virtualenvs/azure-terragrunt-1GvoN0qT/lib/python3.12/site-packages/ansible/module_utils', '/Users/dmankows/.local/share/virtualenvs/azure-terragrunt-1GvoN0qT/lib/python3.12/site-packages/ansible/executor/../module_utils')
[mux 41402] 12:19:28.630170 D ansible_mitogen.module_finder.scan: _scan_importlib_find_spec []
[mux 41402] 12:19:28.630865 D mitogen.service: caching small file /Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py
[mux 41402] 12:19:28.631317 D mitogen.service: requesting Context(20042, 'local.41468') cache and forward small file to Context(20042, 'local.41468'): /Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py
[task 41467] 12:19:28.632113 D mitogen.parent: starting function call to local.41468: ansible_mitogen.target.run_module(kwargs={'runner_name': 'NewStyleRunner', 'module': 'azure.azcollection.azure_rm_keyvaultsecret_info', 'path': '/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py', 'json_args': '{"name": "wazuh-global1-authd-password", "vault_uri": "https://syn-g001-eu-west-wazuh.vault.azure.net", "_ansible_check_mode": true, "_ansible_no_log": false, "_ansible_debug": false, "_ansible_diff": true, "_ansible_verbosity": 3, "_ansible_version": "2.16.11", "_ansible_module_name": "azure.azcollection.azure_rm_keyvaultsecret_info", "_ansible_syslog_facility": "LOG_USER", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p", "vfat"], "_ansible_string_conversion_action": "warn", "_ansible_socket": null, "_ansible_shell_executable": "/bin/sh", "_ansible_keep_remote_files": false, "_ansible_tmpdir": null, "_ansible_remote_tmp": "/Users/dmankows/.ansible/tmp"}', 'env': {}, 'interpreter_fragment': None, 'is_python': None, 'module_map': {'builtin': [], 'custom': []}, 'py_module_name': 'ansible_collections.azure.azcollection.plugins.modules.azure_rm_keyvaultsecret_info', 'good_temp_dir': '/Users/dmankows/.ansible/tmp', 'cwd': '/Users/dmankows/azure-terragrunt/ansible/playbooks/syn-g001', 'extra_env': {}, 'emulate_tty': True, 'service_context': Context(0, None)})
[mux 41402] 12:19:28.632959 D mitogen.service.[local.41468]: PushFileService().store_and_forward('/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py', [blob: 14560 bytes], Context(20042, 'local.41468')) 'mitogen.Pool.3410.0'
[mux 41402] 12:19:28.633341 D mitogen.service.[local.41468]: Pool(3410, size=2, th='MainThread'): initialized
[mux 41402] 12:19:28.633651 D mitogen.[local.41468]: Dispatcher: dispatching ('SYNE0095.local-41467-1f9180c00-145f4191356', 'ansible_mitogen.target', None, 'run_module', (), Kwargs({'kwargs': {'runner_name': 'NewStyleRunner', 'module': 'azure.azcollection.azure_rm_keyvaultsecret_info', 'path': '/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py', 'json_args': '{"name": "wazuh-global1-authd-password", "vault_uri": "https://syn-g001-eu-west-wazuh.vault.azure.net", "_ansible_check_mode": true, "_ansible_no_log": false, "_ansible_debug": false, "_ansible_diff": true, "_ansible_verbosity": 3, "_ansible_version": "2.16.11", "_ansible_module_name": "azure.azcollection.azure_rm_keyvaultsecret_info", "_ansible_syslog_facility": "LOG_USER", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p", "vfat"], "_ansible_string_conversion_action": "warn", "_ansible_socket": null, "_ansible_shell_executable": "/bin/sh", "_ansible_keep_remote_files": false, "_ansible_tmpdir": null, "_ansible_remote_tmp": "/Users/dmankows/.ansible/tmp"}', 'env': {}, 'interpreter_fragment': None, 'is_python': None, 'module_map': {'builtin': [], 'custom': []}, 'py_module_name': 'ansible_collections.azure.azcollection.plugins.modules.azure_rm_keyvaultsecret_info', 'good_temp_dir': '/Users/dmankows/.ansible/tmp', 'cwd': '/Users/dmankows/azure-terragrunt/ansible/playbooks/syn-g001', 'extra_env': {}, 'emulate_tty': True, 'service_context': Context(0, 'master')}}))
[mux 41402] 12:19:28.636002 D ansible_mitogen.runner.[local.41468]: Skipping ansible_collections: not present
[mux 41402] 12:19:28.636403 D mitogen.importer.find_spec.[local.41468]: Handling ansible_collections. It is whitelisted
[mux 41402] 12:19:28.636673 D mitogen.importer.[local.41468]: Creating module for ModuleSpec(name='ansible_collections', loader=Importer)
[mux 41402] 12:19:28.636926 D mitogen.importer.[local.41468]: sending new ansible_collections request to parent
[mux 41402] 12:19:28.637182 D mitogen.responder: local.41468 requested module ansible_collections
[mux 41402] 12:19:28.638561 D mitogen.responder: ansible_collections is a package at <ansible_synthetic_collection_package> with submodules ['ansible', 'azure', 'community', 'confluent', 'google', 'synerise', 'amazon', 'ansible', 'ansible_community', 'ansible_release', 'arista', 'awx', 'azure', 'check_point', 'chocolatey', 'cisco', 'cloud', 'cloudscale_ch', 'community', 'containers', 'cyberark', 'dellemc', 'f5networks', 'fortinet', 'frr', 'gluster', 'google', 'grafana', 'hetzner', 'hpe', 'ibm', 'ieisystem', 'infinidat', 'infoblox', 'inspur', 'junipernetworks', 'kaytus', 'kubernetes', 'lowlydba', 'microsoft', 'netapp', 'netapp_eseries', 'netbox', 'ngine_io', 'openstack', 'openvswitch', 'ovirt', 'purestorage', 'sensu', 'splunk', 't_systems_mms', 'telekom_mms', 'theforeman', 'vmware', 'vultr', 'vyos', 'wti']
[mux 41402] 12:19:28.639048 D mitogen.responder: sending ansible_collections (0.99 KiB) to local.41468
[mux 41402] 12:19:28.639576 D mitogen.importer.[local.41468]: received ansible_collections
[mux 41402] 12:19:28.640033 D mitogen.importer.[local.41468]: Executing ansible_collections from master:<ansible_synthetic_collection_package>
[mux 41402] 12:19:28.640371 D ansible_mitogen.runner.[local.41468]: Skipping ansible_collections.azure: not present
[mux 41402] 12:19:28.640642 D mitogen.importer.find_spec.[local.41468]: Handling ansible_collections.azure. It is whitelisted
[mux 41402] 12:19:28.640898 D mitogen.importer.[local.41468]: Creating module for ModuleSpec(name='ansible_collections.azure', loader=Importer)
[mux 41402] 12:19:28.641437 D mitogen.importer.[local.41468]: sending new ansible_collections.azure request to parent
[mux 41402] 12:19:28.641789 D mitogen.responder: local.41468 requested module ansible_collections.azure
[mux 41402] 12:19:28.642373 D mitogen.responder: ansible_collections.azure is a package at <ansible_synthetic_collection_package> with submodules ['azcollection', 'azcollection']
[mux 41402] 12:19:28.643009 D mitogen.responder: sending ansible_collections.azure (0.23 KiB) to local.41468
[mux 41402] 12:19:28.643442 D mitogen.importer.[local.41468]: received ansible_collections.azure
[mux 41402] 12:19:28.643761 D mitogen.importer.[local.41468]: Executing ansible_collections.azure from master:<ansible_synthetic_collection_package>
[mux 41402] 12:19:28.644113 D ansible_mitogen.runner.[local.41468]: Skipping ansible_collections.azure.azcollection: not present
[mux 41402] 12:19:28.644475 D mitogen.importer.find_spec.[local.41468]: Handling ansible_collections.azure.azcollection. It is whitelisted
[mux 41402] 12:19:28.644760 D mitogen.importer.[local.41468]: Creating module for ModuleSpec(name='ansible_collections.azure.azcollection', loader=Importer)
[mux 41402] 12:19:28.645013 D mitogen.importer.[local.41468]: sending new ansible_collections.azure.azcollection request to parent
[mux 41402] 12:19:28.645262 D mitogen.responder: local.41468 requested module ansible_collections.azure.azcollection
[mux 41402] 12:19:28.646022 D mitogen.responder: ansible_collections.azure.azcollection is a package at /Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/__synthetic__ with submodules ['meta', 'plugins', 'tests']
[mux 41402] 12:19:28.646519 D mitogen.responder: sending ansible_collections.azure.azcollection (0.33 KiB) to local.41468
[mux 41402] 12:19:28.646931 D mitogen.importer.[local.41468]: received ansible_collections.azure.azcollection
[mux 41402] 12:19:28.647276 D mitogen.importer.[local.41468]: Executing ansible_collections.azure.azcollection from master:/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/__synthetic__
[mux 41402] 12:19:28.647610 D ansible_mitogen.runner.[local.41468]: Skipping ansible_collections.azure.azcollection.plugins: not present
[mux 41402] 12:19:28.647929 D mitogen.importer.find_spec.[local.41468]: Handling ansible_collections.azure.azcollection.plugins. It is whitelisted
[mux 41402] 12:19:28.648272 D mitogen.importer.[local.41468]: Creating module for ModuleSpec(name='ansible_collections.azure.azcollection.plugins', loader=Importer)
[mux 41402] 12:19:28.648572 D mitogen.importer.[local.41468]: sending new ansible_collections.azure.azcollection.plugins request to parent
[mux 41402] 12:19:28.648882 D mitogen.responder: local.41468 requested module ansible_collections.azure.azcollection.plugins
[mux 41402] 12:19:28.649768 D mitogen.responder: ansible_collections.azure.azcollection.plugins is a package at /Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/__synthetic__ with submodules ['doc_fragments', 'inventory', 'lookup', 'module_utils', 'modules']
[mux 41402] 12:19:28.650587 D mitogen.responder: sending ansible_collections.azure.azcollection.plugins (0.43 KiB) to local.41468
[mux 41402] 12:19:28.651663 D mitogen.importer.[local.41468]: received ansible_collections.azure.azcollection.plugins
[mux 41402] 12:19:28.651947 D mitogen.importer.[local.41468]: Executing ansible_collections.azure.azcollection.plugins from master:/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/__synthetic__
[mux 41402] 12:19:28.652208 D ansible_mitogen.runner.[local.41468]: Skipping ansible_collections.azure.azcollection.plugins.module_utils: not present
[mux 41402] 12:19:28.652467 D mitogen.importer.find_spec.[local.41468]: Handling ansible_collections.azure.azcollection.plugins.module_utils. It is whitelisted
[mux 41402] 12:19:28.652719 D mitogen.importer.[local.41468]: Creating module for ModuleSpec(name='ansible_collections.azure.azcollection.plugins.module_utils', loader=Importer)
[mux 41402] 12:19:28.652985 D mitogen.importer.[local.41468]: sending new ansible_collections.azure.azcollection.plugins.module_utils request to parent
[mux 41402] 12:19:28.653243 D mitogen.responder: local.41468 requested module ansible_collections.azure.azcollection.plugins.module_utils
[mux 41402] 12:19:28.653886 D mitogen.responder: ansible_collections.azure.azcollection.plugins.module_utils is a package at /Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/module_utils/__synthetic__ with submodules ['azure_rm_common', 'azure_rm_common_ext', 'azure_rm_common_rest']
[mux 41402] 12:19:28.654288 D mitogen.responder: sending ansible_collections.azure.azcollection.plugins.module_utils (0.50 KiB) to local.41468
[mux 41402] 12:19:28.654688 D mitogen.importer.[local.41468]: received ansible_collections.azure.azcollection.plugins.module_utils
[mux 41402] 12:19:28.655166 D mitogen.importer.[local.41468]: Executing ansible_collections.azure.azcollection.plugins.module_utils from master:/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/module_utils/__synthetic__
[mux 41402] 12:19:28.655468 D ansible_mitogen.runner.[local.41468]: Skipping ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common: not present
[mux 41402] 12:19:28.655742 D mitogen.importer.find_spec.[local.41468]: Handling ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common. It is whitelisted
[mux 41402] 12:19:28.656039 D mitogen.importer.[local.41468]: Creating module for ModuleSpec(name='ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common', loader=Importer)
[mux 41402] 12:19:28.656283 D mitogen.importer.[local.41468]: sending new ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common request to parent
[mux 41402] 12:19:28.656528 D mitogen.responder: local.41468 requested module ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common
[mux 41402] 12:19:28.760397 D mitogen: While importing 'ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common'
Traceback (most recent call last):
File "/Users/dmankows/mitogen/mitogen/master.py", line 1245, in _send_module_and_related
tup = self._build_tuple(fullname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dmankows/mitogen/mitogen/master.py", line 1198, in _build_tuple
for name in self._finder.find_related(fullname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dmankows/mitogen/mitogen/master.py", line 1070, in find_related
names = self.find_related_imports(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dmankows/mitogen/mitogen/master.py", line 1045, in find_related_imports
set(
File "/Users/dmankows/mitogen/mitogen/master.py", line 1049, in <genexpr>
and not is_stdlib_name(name)
^^^^^^^^^^^^^^^^^^^^
File "/Users/dmankows/mitogen/mitogen/master.py", line 151, in is_stdlib_name
modpath = os.path.abspath(getattr(module, '__file__', ''))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen posixpath>", line 410, in abspath
TypeError: expected str, bytes or os.PathLike object, not NoneType
[mux 41402] 12:19:28.762827 D mitogen.importer.[local.41468]: received ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common
[mux 41402] 12:19:28.766226 D mitogen.[local.41468]: Dispatcher: Message(20042, 20041, 0, 101, 1003, b'\x80\x02(X*\x00\x00\x00SYNE0095.local-41467-1f9180c00-145f4191356'..1568) -> {'rc': 1, 'stdout': '', 'stderr': 'Traceback (most recent call last):\n File "master:/Users/dmankows/mitogen/ansible_mitogen/runner.py", line 1056, in _run\n self._run_code(code, mod)\n File "master:/Users/dmankows/mitogen/ansible_mitogen/runner.py", line 1020, in _run_code\n exec(code, vars(mod))\n File "master:/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py", line 162, in <module>\n File "<stdin>", line 1639, in create_module\nImportError: The Mitogen master process was unable to serve \'ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common\'. It may be a native Python extension, or it may be missing entirely. Check the importer debug logs on the master for more information.\n'}
[task 41467] 12:19:28.766747 D ansible_mitogen.connection: Call took 134 ms: ansible_mitogen.target.run_module(kwargs={'runner_name': 'NewStyleRunner', 'module': 'azure.azcollection.azure_rm_keyvaultsecret_info', 'path': '/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py', 'json_args': '{"name": "wazuh-global1-authd-password", "vault_uri": "https://syn-g001-eu-west-wazuh.vault.azure.net", "_ansible_check_mode": true, "_ansible_no_log": false, "_ansible_debug": false, "_ansible_diff": true, "_ansible_verbosity": 3, "_ansible_version": "2.16.11", "_ansible_module_name": "azure.azcollection.azure_rm_keyvaultsecret_info", "_ansible_syslog_facility": "LOG_USER", "_ansible_selinux_special_fs": ["fuse", "nfs", "vboxsf", "ramfs", "9p", "vfat"], "_ansible_string_conversion_action": "warn", "_ansible_socket": null, "_ansible_shell_executable": "/bin/sh", "_ansible_keep_remote_files": false, "_ansible_tmpdir": null, "_ansible_remote_tmp": "/Users/dmankows/.ansible/tmp"}', 'env': {}, 'interpreter_fragment': None, 'is_python': None, 'module_map': {'builtin': [], 'custom': []}, 'py_module_name': 'ansible_collections.azure.azcollection.plugins.modules.azure_rm_keyvaultsecret_info', 'good_temp_dir': '/Users/dmankows/.ansible/tmp', 'cwd': '/Users/dmankows/azure-terragrunt/ansible/playbooks/syn-g001', 'extra_env': {}, 'emulate_tty': True, 'service_context': Context(0, None)})
[task 41467] 12:19:28.767239 D ansible_mitogen.mixins: _remove_tmp_path(None)
[task 41467] 12:19:28.767602 D ansible_mitogen.mixins: _remove_tmp_path(None)
[task 41467] 12:19:28.767936 D mitogen.parent: starting no-reply function call to 'local.41468': mitogen.core.Dispatcher.forget_chain('SYNE0095.local-41467-1f9180c00-145f4191356')
[mux 41402] 12:19:28.768424 D ansible_mitogen.services: decrementing reference count for Context(20042, 'local.41468')
[mux 41402] 12:19:28.768803 D mitogen.[local.41468]: Dispatcher: dispatching (None, 'mitogen.core', 'Dispatcher', 'forget_chain', ('SYNE0095.local-41467-1f9180c00-145f4191356',), Kwargs({}))
[mux 41402] 12:19:28.769079 D mitogen.[local.41468]: Dispatcher: Message(20042, 20041, 0, 101, 0, b'\x80\x02(NX\x0c\x00\x00\x00mitogen.coreq\x00X\n\x00\x00\x00Dispatcherq\x01X\x0c\x00\x00\x00forge'..147) -> None
[task 41467] 12:19:28.769491 D mitogen: MitogenProtocol(unix_listener.41402): disconnecting
[mux 41402] 12:19:28.770406 D mitogen: <Side of unix_client.41467 fd 109>: empty read, disconnecting
[mux 41402] 12:19:28.770814 D mitogen: MitogenProtocol(unix_client.41467): disconnecting
[task 41467] 12:19:28.770408 D mitogen: Waker(fd=52/62): disconnecting
[task 41467] 12:19:28.771287 D mitogen: Router(Broker(3410)): stats: 0 module requests in 0 ms, 0 sent (0 ms minify time), 0 negative responses. Sent 0.0 kb total, 0.0 kb avg.
The full traceback is:
Traceback (most recent call last):
File "master:/Users/dmankows/mitogen/ansible_mitogen/runner.py", line 1056, in _run
self._run_code(code, mod)
File "master:/Users/dmankows/mitogen/ansible_mitogen/runner.py", line 1020, in _run_code
exec(code, vars(mod))
File "master:/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py", line 162, in <module>
File "<stdin>", line 1639, in create_module
ImportError: The Mitogen master process was unable to serve 'ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common'. It may be a native Python extension, or it may be missing entirely. Check the importer debug logs on the master for more information.
fatal: [host1 -> localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"master:/Users/dmankows/mitogen/ansible_mitogen/runner.py\", line 1056, in _run\n self._run_code(code, mod)\n File \"master:/Users/dmankows/mitogen/ansible_mitogen/runner.py\", line 1020, in _run_code\n exec(code, vars(mod))\n File \"master:/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py\", line 162, in <module>\n File \"<stdin>\", line 1639, in create_module\nImportError: The Mitogen master process was unable to serve 'ansible_collections.azure.azcollection.plugins.module_utils.azure_rm_common'. It may be a native Python extension, or it may be missing entirely. Check the importer debug logs on the master for more information.\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
I have installed the latest Azure collection (a bunch of modules to interact with Azure): https://galaxy.ansible.com/ui/repo/published/azure/azcollection/
Following documentation:
ansible-galaxy collection install azure.azcollection && pip3 install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements.txt
And whenever I switch from
strategy: linear
tostrategy: mitogen_linear
any usage of moduleazure.azcollection.azure_rm_keyvaultsecret_info
fails:by looking at line 162 in file
/Users/dmankows/.ansible/collections/ansible_collections/azure/azcollection/plugins/modules/azure_rm_keyvaultsecret_info.py
there is such import
And checking the directory
~/.ansible/collections/ansible_collections/azure/azcollection/plugins/module_utils
- the module is there:Example task:
9.10.0
No
module_utils
loaded?No
No
0.3.9
controller - MacOS Sonoma, MacBook Pro 2021 (ARM), but also this happens on Ubuntu 22-based Docker image (x86_64)
remote - Ubuntu 18/20/22
Python 3.12.6 on controller, on remote - various (3.6., 3.8, 3.10)