#254 Zuul: A DeprecationWarning from dnf breaks the rpm-test job
Closed by fbo. Opened by churchyard.

In here:

https://src.fedoraproject.org/rpms/python3.10/pull-request/58
https://src.fedoraproject.org/rpms/python3.9/pull-request/71

The rpm-test job says:

 Task 
Download packages locally
  failed running on host 
cloud-host
unknown url type: '/usr/lib/python3.10/site-packages/dnf/const.py:22: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives'
 Task 
Download packages locally
  failed running on host 
cloud-host
unknown url type: 'import distutils.sysconfig'
 Task 
Download packages locally
  failed running on host 
cloud-host
unknown url type: '/usr/lib/python3.10/site-packages/dnf/const.py:22: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead'
 Task 
Download packages locally
  failed running on host 
cloud-host
unknown url type: 'import distutils.sysconfig'
 Task 
Fetch test artifacts
  failed running on host 
cloud-host
Warning: Permanently added '38.102.83.97' (ECDSA) to the list of known hosts.
rsync: [sender] link_stat "/home/zuul-worker/src/src.fedoraproject.org/rpms/python3.9/tests/artifacts" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1651) [Receiver=3.1.2]
rsync: [Receiver] write error: Broken pipe (32)

I think something is parsing stderr from dnf instead of stdout, but I am not sure.

The dnf deprecation warning has a bugzilla, but even when not fixed, it should not matter.


Metadata Update from @fbo:
- Issue tagged with: Zuul CI

Working on workaround until the dnf fix land.

After some tried I got a workaround. I think the fix is Ok. I've merged it already https://pagure.io/zuul-distro-jobs/pull-request/109

It seems ansible merge stderr into stdout and then that cause trouble for tasks where we call dnf and react on command output.

Please re-open if this does not fix the issue.

Metadata Update from @fbo:
- Issue status updated to: Closed (was: Open)

Metadata