• Bug#1103648: ansible-core removed ansible.parsing.utils.jsonify (impact

    From Salvatore Bonaccorso@21:1/5 to All on Sun Apr 20 07:20:01 2025
    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: carnil@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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lee Garrett@21:1/5 to All on Tue May 6 16:40:01 2025
    close 1103648
    thanks

    Hi Salvatore,

    2.19.0~beta2-1 which now migrated to trixie fixed the issue. Feel free to reopen
    if you can still reproduce the issue.

    Cheers,
    Lee

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)