Hi Salvatore,
I'm still waiting a bit on upstream to respond to this. The beta2 should release
in the next day or two. If it's not addressed by upstream by then, I'll just
patch the function back in.
Cheers,
Lee
On Sun, 20 Apr 2025 07:14:16 +0200 Salvatore Bonaccorso <car...@debian.org>
wrote:
Source: ansible-core
Version: 2.19.0~beta1-2
Severity: serious
Tags: upstream
Justification: causes release regression in related strategy package
Forwarded: https://github.com/ansible/ansible/issues/85017
X-Debbugs-Cc: car...@debian.org
Control: affects -1 + ansible-mitogen
Hi,
With the recent uploads of ansible from the 2.19 series
ansible-mitogen becomes non-function (I realized afterwards this is
already known to the maintainer due the autopkgtest regressions and
reported upstream, still think make sense to fill an explicit
bugreport):
root@ansible-test:~# ANSIBLE_STRATEGY=mitogen_free ansible localhost -m
ansible.builtin.ping
[WARNING]: No inventory was parsed, only implicit localhost is available
[ERROR]: Unexpected Exception, this is probably a bug: No module named
'ansible.parsing.utils.jsonify'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ansible/cli/__init__.py", line 735, in
cli_executor
exit_code = cli.run()
File "/usr/lib/python3/dist-packages/ansible/cli/adhoc.py", line 196, in run
result = self._tqm.run(play)
File "/usr/lib/python3/dist-packages/ansible/executor/task_queue_manager.py",
line 346, in run
strategy = strategy_loader.get(new_play.strategy, self)
File "/usr/lib/python3/dist-packages/ansible/plugins/loader.py", line 906, in
get
ctx = self.get_with_context(name, *args, **kwargs)
File "/usr/lib/python3/dist-packages/ansible/plugins/loader.py", line 950, in
get_with_context
self._module_cache[path] = self._load_module_source(resolved_type_name,
path)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/ansible/plugins/loader.py", line 871, in
_load_module_source
spec.loader.exec_module(module)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/ansible/plugins/strategy/mitogen_free.py",
line 58, in <module>
import ansible_mitogen.strategy
File "/usr/lib/python3/dist-packages/ansible_mitogen/strategy.py", line 44, in
<module>
import ansible_mitogen.mixins
File "/usr/lib/python3/dist-packages/ansible_mitogen/mixins.py", line 45, in
<module>
from ansible.parsing.utils.jsonify import jsonify
ModuleNotFoundError: No module named 'ansible.parsing.utils.jsonify'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ansible/cli/__init__.py", line 744, in
cli_executor
raise AnsibleError("Unexpected Exception, this is probably a bug.") from ex
ansible.errors.AnsibleError: Unexpected Exception, this is probably a bug: No
module named 'ansible.parsing.utils.jsonify'
root@ansible-test:~#
Regards,
Salvatore