mitogen icon indicating copy to clipboard operation
mitogen copied to clipboard

dnf module errors with mitogen on Ansible 2.6.17+

Open psvmcc opened this issue 4 months ago • 0 comments

I see errors on dnf tasks like:

PLAY [Common server configuration] *********************************************
Failed loading plugin "copr": module 'dnf' has no attribute 'cli'
Failed loading plugin "debuginfo-install": module 'dnf' has no attribute 'cli'
Failed loading plugin "copr": module 'dnf' has no attribute 'cli'
Failed loading plugin "debuginfo-install": module 'dnf' has no attribute 'cli'
Failed loading plugin "copr": module 'dnf' has no attribute 'cli'
Failed loading plugin "debuginfo-install": module 'dnf' has no attribute 'cli'
Failed loading plugin "copr": module 'dnf' has no attribute 'cli'

Task example:

- name: Setup rsync
  ansible.builtin.dnf:
    name:
      - rsync-daemon
    state: present

Output messages:

TASK [rsync : Setup rsync] ****************************************************
Failed loading plugin "debuginfo-install": module 'dnf' has no attribute 'cli'
ok: [hostname]

Without mitogen everything works well.

  • Which version of Ansible are you running? 2.16.6 works well, and starting from 2.16.7 I see issues, and with 2.17.4 also

  • Is your version of Ansible patched in any way? No

  • Are you running with any custom modules, or module_utils loaded? No

  • Have you tried the latest master version from Git? I see issue with mitogen 0.3.9 and with just released 0.3.12

  • Do you have some idea of what the underlying problem may be? I found this https://github.com/rpm-software-management/dnf-plugins-core/issues/520 And this https://github.com/ansible/ansible/pull/82725/files#diff-b1696caabd083d8176e1b14ad10716e8c88d882bf9e49e1a167f3a6cb702a21eL578

  • Mention your host and target OS and versions My host - MacOS, but I use venv Target host - OracleLinux 9(latest)

  • Mention your host and target Python versions My host - 3.12 Target host - 3.9

psvmcc avatar Oct 07 '24 12:10 psvmcc