Description of problem: When trying to use the 'dnf' module in one of my tasks, I'm getting errors like this: fatal: [IP_ADDRESS_REMOVED]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "No handlers could be found for logger \"dnf\"\r\nTraceback (most recent call last):\r\n File \"/tmp/ansible_LDnNIF/ansible_module_dnf.py\", line 355, in <module>\r\n main()\r\n File \"/tmp/ansible_LDnNIF/ansible_module_dnf.py\", line 349, in main\r\n ensure(module, base, params['state'], params['name'])\r\n File \"/tmp/ansible_LDnNIF/ansible_module_dnf.py\", line 240, in ensure\r\n pkg_specs, group_specs, filenames = cli.commands.parse_spec_group_file(\r\nAttributeError: 'module' object has no attribute 'parse_spec_group_file'\r\n", "msg": "MODULE FAILURE"} Version-Release number of selected component (if applicable): ansible-2.1.2.0-1.fc24.noarch python2-dnf-2.0.0-0.rc1.4.fc26.noarch (on the managed host) How reproducible: 100% Steps to Reproduce: 1. try to use the 'dnf' module (e.g to install a package) on a rawhide host Actual results: an error Expected results: packages installed/checked as installed Additional info: This is probably related to the change that introduced DNF 2.0 (API) in Rawhide. DNF developers (CC'd) say that the ansible module is using something that has never been part of the API (in the above traceback). Also please note that this makes a lot of ansible playbooks unusable with Rawhide hosts and may result in people going back to 'cmd: dnf install SOMETHING' instead of using the 'dnf' module.
Do you have a github login? Would you be willing to file a bug upstream? https://github.com/ansible/ansible-modules-extras/issues/new We, upstream, are in the late stages of the 2.2.0 release candidate process... not sure if a fix for this will get into 2.2.0 or will have to wait for 2.2.1. Pinging others about whether this is a blocker for 2.2.0 or not. On the one hand package managers are always important modules. On the other hand, dnf is an extras module so it depends on getting the community maintainers involved (I don't see ignatenkobrain CC'd above; he's the one that got the ball rolling on rewriting dnf to use the API so he'll probably be the community maintainer we rely upon to write a fix that works with both dnf-1.x and dnf-2.x), there's workarounds (command module or yum module), and since rawhide is still early stages as well we'll probably have 2.2.1 out before rawhide becomes Fedora 26. I'll add more about the status of fixing this in 2.2.0 vs 2.2.1 once more of the team has replied.
I don't think this needs to block the 2.2.0 release. We can add a patch when we have one to fix this in rawhide either way.
Cool. ignatenkobrain also said (on irc) that he thinks he can work on a patch in a few days. So we'll probably get it into our upstream devel branch sometime next week. Then it can be applied as a backport to the Fedora package and queued up for the upstream 2.2.1 release.
Opened a bug upstream: https://github.com/ansible/ansible-modules-extras/issues/3310
ansible-2.2.0.0-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e348c4e0e3
ansible-2.2.0.0-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a5f9956e38
ansible-2.2.0.0-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e348c4e0e3
ansible-2.2.0.0-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-3113e71193
ansible-2.2.0.0-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-3ccb098630
ansible-2.2.0.0-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-3ccb098630
ansible-2.2.0.0-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-3113e71193
ansible-2.2.0.0-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
ansible-2.2.0.0-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.