The zuul rpm-install-test fails on rawhide
https://fedora.softwarefactory-project.io/zuul/builds?job_name=rpm-install-test
The reported error is:
Task Install system dependencies failed running on host cloud-host
Could not import the dnf python module using /usr/bin/python3 (3.12.0b3 (main, Jun 21 2023, 00:00:00) [GCC 13.1.1 20230614 (Red Hat 13.1.1-4)]). Please install python3-dnf or python2-dnf package or ensure you have specified the correct ansible_python_interpreter. (attempted ['/usr/libexec/platform-python', '/usr/bin/python3', '/usr/bin/python2', '/usr/bin/python'])
python3-dnf
python2-dnf
See https://pagure.io/fedora-ci/general/issue/416. @fbo, @mvadkert, @msrb, any updates here?
The problem here is that Fedora CI uses ansible-core 2.14 that does not have a dnf5 module. This can be fixed by either updating to ansible-core 2.15 that has a tech preview dnf5 module or installing python3-dnf on the runner VM so the dnf module can be used.
See https://pagure.io/fedora-ci/general/issue/416.
Actually, that issue is about the fedora-ci.koji-build.installability.functional gating test, which is a different case. The zuul rpm-instal--test is another of the many parts of Fedora CI that is broken with dnf5 :(.
fedora-ci.koji-build.installability.functional
rpm-instal--test
Hi,
Installing python3-dnf on the rawhide runner unlock a bit the situation. Here is a test change with a "Depends-on" on the fix attempt change.
https://src.fedoraproject.org/rpms/python-gear/pull-request/60 Depends-on: https://pagure.io/fedora-zuul-jobs/pull-request/178
The next issue is that it fail on another task: https://fedora.softwarefactory-project.io/zuul/build/b19f2abd11de4736bf8e010dcd6fae97/console#1/0/11/cloud-host
@gotmax23 (related to https://pagure.io/fedora-ci/general/issue/416#comment-864145) so you mean using dnf-3 command for 'dnf -q --repo zuul-built repoquery --location 2> /dev/null | grep -E -v ".src.rpm$"' could fix it ?
The source of the role is: https://pagure.io/zuul-distro-jobs/blob/master/f/roles/repo-install-rpm/tasks/install_repo_packages.yaml#_15
Retrying with https://src.fedoraproject.org/rpms/python-gear/pull-request/60 including that fix too: https://pagure.io/zuul-distro-jobs/pull-request/143#request_diff
I'm merging: - https://pagure.io/fedora-zuul-jobs/pull-request/178 - https://pagure.io/zuul-distro-jobs/pull-request/143
As according to my testing those changes fixed the raised issue.
However, now, another task (get_url module) is failing https://fedora.softwarefactory-project.io/zuul/build/5133646e6469430b83986bb034b9286a/console#1/0/13/cloud-host with "An unknown error occurred: 'CustomHTTPSConnection' object has no attribute 'cert_file'"
Another fix https://pagure.io/zuul-distro-jobs/pull-request/144. I'll merge it as now the rpm-install-test pass on rawhide as well on f38.
Looks like it is fixed now https://fedora.softwarefactory-project.io/zuul/builds?job_name=rpm-install-test&branch=rawhide&skip=0
I think the issue can be closed now.
Thanks for working on it @fbo!
Thank you!
Metadata Update from @kevin: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Thank you very much.