• Bug#1103652: broken by ansible 12

    From Marco d'Itri@21:1/5 to All on Sun Apr 20 12:00:01 2025
    Package: ansible-mitogen
    Version: 0.3.22-3
    Severity: grave

    Since upgrading ansible, ansible-mitogen fails with:

    [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/playbook.py", line 153, in run
    results = pbex.run()
    File "/usr/lib/python3/dist-packages/ansible/executor/playbook_executor.py", line 188, in run
    result = self._tqm.run(play=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_linear.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'


    ansible.cfg contains:

    [defaults]
    inventory = hosts.txt

    # https://mitogen.readthedocs.io/en/stable/ansible.html#installation
    strategy = mitogen_linear

    system_warnings = True

    [ssh_connection]
    pipelining = True



    -- System Information:
    Debian Release: trixie/sid
    APT prefers unstable
    APT policy: (500, 'unstable'), (1, 'experimental')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.12.22-amd64 (SMP w/16 CPU threads; PREEMPT)
    Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages ansible-mitogen depends on:
    ii ansible-core 2.19.0~beta1-2
    ii python3 3.13.3-1
    ii python3-mitogen 0.3.22-3

    ansible-mitogen recommends no packages.

    ansible-mitogen suggests no packages.

    -- no debconf information

    --
    ciao,
    Marco

    -----BEGIN PGP SIGNATURE-----

    iHUEABYKAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCaATD6QAKCRDLPsM64d7X gWYLAQCK33dgexFI9zuL+wP161PdJgAW64KkmVuPntq+h5W9CQEAzGZqCL1hN2Co ds+tPPFE04lhMnOAkE5TjR52SNHkRwI=
    =U4Z6
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefano Rivera@21:1/5 to All on Sun Apr 20 17:40:01 2025
    Control: tag -1 pending

    Hello,

    Bug #1103652 in python-mitogen reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/python-team/packages/python-mitogen/-/commit/d75c6cb9899a1dc4a1ea03581c56669a3064605c

    ------------------------------------------------------------------------
    Patch: Handle the removal of ansible.parsing.utils.jsonify (Closes: #1103652) ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1103652

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Apr 20 17:40:01 2025
    Processing control commands:

    tag -1 pending
    Bug #1103652 [ansible-mitogen] broken by ansible 12
    Added tag(s) pending.

    --
    1103652: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103652
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Apr 20 18:00:01 2025
    This is a multi-part message in MIME format...

    Your message dated Sun, 20 Apr 2025 15:49:28 +0000
    with message-id <E1u6WvA-00GBwQ-NQ@fasolo.debian.org>
    and subject line Bug#1103652: fixed in python-mitogen 0.3.22-4
    has caused the Debian Bug report #1103652,
    regarding broken by ansible 12
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1103652: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103652
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 20 Apr 2025 09:52:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-22.3 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
    DKIM_VALID_EF,FOURLA,FVGT_m_MULTI_ODD,HAS_PACKAGE,PGPSIGNATURE,
    SPF_HELO_PASS,SPF_NEUTRAL,X_DEBBUGS_CC autolearn=ham
    autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 31; hammy, 150; neutral, 149; spammy,
    0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--trixie,
    0.000-+--H*ct:application, 0.000-+--H*ct:protocol, 0.000-+--H*ct:micalg Return-path: <md@linux.it>
    Received: from attila.bofh.it ([2001:4b78:2000::1]:53879)
    by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RS
  • From Debian Bug Tracking System@21:1/5 to All on Mon Apr 21 00:50:01 2025
    Processing control commands:

    reopen -1
    Bug #1103652 {Done: Stefano Rivera <stefanor@debian.org>} [ansible-mitogen] broken by ansible 12
    'reopen' may be inappropriate when a bug has been closed with a version;
    all fixed versions will be cleared, and you may need to re-add them.
    Bug reopened
    No longer marked as fixed in versions python-mitogen/0.3.22-4.

    --
    1103652: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103652
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From stefanor@debian.org@21:1/5 to All on Mon Apr 21 19:20:01 2025
    Hi Marco (2025.04.20_22:42:38_+0000)
    Still broken, now a trivial playbook fails with:

    I can see why the code is broken, but without reproducing it, I don't
    know if I've fixed it.

    Can you provide a minimal trival playbook that triggers this?

    Stefano

    --
    Stefano Rivera
    http://tumbleweed.org.za/
    +1 415 683 3272

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco d'Itri@21:1/5 to stefanor@debian.org on Mon Apr 21 23:10:01 2025
    On Apr 21, stefanor@debian.org wrote:

    Can you provide a minimal trival playbook that triggers this?

    # ansible.cfg
    [defaults]
    inventory = hosts.txt
    strategy = mitogen_linear

    # hosts.txt
    [servers]
    server1.example.com ansible_user=root

    # server1.yaml
    - hosts: server1.example.com
    gather_facts: false
    tasks:
    - file: state=link src=foo dest=/tmp/bar

    (server1.example.com needs to be reachable.)

    --
    ciao,
    Marco

    -----BEGIN PGP SIGNATURE-----

    iHUEABYKAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCaAazUQAKCRDLPsM64d7X gW1SAQCVioGsq+6eSkvN6bDTHhv+QDA5foWhMF/4nuFfyPhBXAD8DrpiWUn5FwH2 JBEn0qDh/9eY8Qyh9EcivY3N5Mt8EwU=
    =9n0X
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu May 1 01:00:01 2025
    Processing control commands:

    tag -1 + unreproducible
    Bug #1103652 [ansible-mitogen] broken by ansible 12
    Added tag(s) unreproducible.

    --
    1103652: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103652
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefano Rivera@21:1/5 to All on Thu May 1 01:00:01 2025
    Control: tag -1 + unreproducible

    Hi Marco (2025.04.21_17:06:25_-0400)
    # server1.yaml
    - hosts: server1.example.com
    gather_facts: false
    tasks:
    - file: state=link src=foo dest=/tmp/bar

    Sorry, that doesn't reproduce the bug for me.

    BTW, upstream is tracking Ansible 12 support here: https://github.com/mitogen-hq/mitogen/issues/1258

    If anything there catches your eye, please let me know.

    Stefano

    --
    Stefano Rivera
    http://tumbleweed.org.za/
    +1 415 683 3272

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Unit 193@21:1/5 to All on Wed May 7 23:40:01 2025
    Control: tag -1 pending

    Hello,

    Bug #1103652 in python-mitogen reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/python-team/packages/python-mitogen/-/commit/56a1a00eb00deee27e1512762890abeb0ed42743

    ------------------------------------------------------------------------ d/p/ansible-12-data-tagging: Add patch to fix more compatibility problems.

    Closes: #1103652 ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1103652

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Wed May 14 21:20:01 2025
    Processing control commands:

    tag -1 pending
    Bug #1103652 [ansible-mitogen] broken by ansible 12
    Ignoring request to alter tags of bug #1103652 to the same tags previously set

    --
    1103652: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103652
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefano Rivera@21:1/5 to All on Wed May 14 21:20:01 2025
    Control: tag -1 pending

    Hello,

    Bug #1103652 in python-mitogen reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/python-team/packages/python-mitogen/-/commit/c856f1a63895c11206a6ede8a65d389a0ef52d92

    ------------------------------------------------------------------------ d/p/ansible-12-data-tagging: Add patch to fix more compatibility problems. (Closes: #1103652)
    ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1103652

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Wed May 14 21:40:01 2025
    This is a multi-part message in MIME format...

    Your message dated Wed, 14 May 2025 19:36:56 +0000
    with message-id <E1uFHuS-00GUF5-Jd@fasolo.debian.org>
    and subject line Bug#1103652: fixed in python-mitogen 0.3.23-2
    has caused the Debian Bug report #1103652,
    regarding broken by ansible 12
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1103652: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103652
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 20 Apr 2025 09:52:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-22.3 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
    DKIM_VALID_EF,FOURLA,FVGT_m_MULTI_ODD,HAS_PACKAGE,PGPSIGNATURE,
    SPF_HELO_PASS,SPF_NEUTRAL,X_DEBBUGS_CC autolearn=ham
    autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 31; hammy, 150; neutral, 149; spammy,
    0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--trixie,
    0.000-+--H*ct:application, 0.000-+--H*ct:protocol, 0.000-+--H*ct:micalg Return-path: <md@linux.it>
    Received: from attila.bofh.it ([2001:4b78:2000::1]:53879)
    by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RS