Bug 2008718

Summary: python-ansible-runner ships "test" module in the global namespace, breaking upgrades
Product: [Fedora] Fedora Reporter: Harish Pillay <hpillay>
Component: python-ansible-runnerAssignee: Dan Radez <dradez>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 35CC: cstratak, dradez, edgar.hoch, gregswift, mhroncok, python-maint, python-sig, quantum.analyst, thrnciar, torsava, vstinner, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2008764 (view as bug list) Environment:
Last Closed: 2021-12-14 14:03:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2008764    

Description Harish Pillay 2021-09-29 01:29:39 UTC
Description of problem:
Doing a upgrade to Fedora 35 beta from Fedora 34. About 3.1G of packages downloaded and then the upgrade fails.

Version-Release number of selected component (if applicable):
Fedora 35 beta

Steps to Reproduce:
1.dnf update -y
2.dnf system-upgrade download --releasever=35 


Actual results:

Error: Transaction test error:
  file /usr/lib/python3.10/site-packages/test/__pycache__/__init__.cpython-310.opt-1.pyc conflicts between attempted installs of python3-ansible-runner-2.0.0a1-3.fc35.noarch and python3-augeas-1.1.0-2.fc35.noarch
  file /usr/lib/python3.10/site-packages/test/__pycache__/__init__.cpython-310.pyc conflicts between attempted installs of python3-ansible-runner-2.0.0a1-3.fc35.noarch and python3-augeas-1.1.0-2.fc35.noarch


Expected results:
successful upgrade to Fedora 35

Additional info:

This was the result of Step 2. above:

Install      70 Packages
Upgrade    2980 Packages
Remove        8 Packages
Downgrade    18 Packages

Comment 1 Elliott Sales de Andrade 2021-09-29 01:54:25 UTC
This is not a Python bug; it's a bug in both python-ansible-runner and python-augeas, neither of which should be shipping a test package at the top level.

Comment 2 Miro Hrončok 2021-09-29 08:42:18 UTC
Once in a while, I check what packages own /usr/lib/python3.10/site-packages/test and report bugs. I will do that again now.

$ repoquery --repo=rawhide -f /usr/lib/python3.10/site-packages/test
python3-ansible-runner-0:2.0.0a1-3.fc35.noarch

$ repoquery --repo=rawhide -f '/usr/lib/python3.10/site-packages/test/*'
python3-ansible-runner-0:2.0.0a1-3.fc35.noarch
python3-augeas-0:1.1.0-2.fc35.noarch


$ repoquery --repo=rawhide -f /usr/lib64/python3.10/site-packages/test
(empty)
$ repoquery --repo=rawhide -f '/usr/lib64/python3.10/site-packages/test/*'
(empty)


$ repoquery --repo=rawhide -f /usr/lib/python3.10/site-packages/tests
python3-flatpak-module-tools-0:0.13-3.fc35.noarch
python3-ipmi-0:0.5.1-1.fc35.noarch
python3-netssh2-0:0.1.7-12.fc35.noarch

$ repoquery --repo=rawhide -f '/usr/lib/python3.10/site-packages/tests/*'
python3-flatpak-module-tools-0:0.13-3.fc35.noarch
python3-ipmi-0:0.5.1-1.fc35.noarch
python3-netssh2-0:0.1.7-12.fc35.noarch

$ repoquery --repo=rawhide -f /usr/lib64/python3.10/site-packages/tests
python3-simpleparse-0:2.2.2-6.fc35.x86_64

$ repoquery --repo=rawhide -f '/usr/lib64/python3.10/site-packages/tests/*'
python3-simpleparse-0:2.2.2-6.fc35.x86_64

Comment 3 Miro Hrončok 2021-09-29 08:56:01 UTC
python3-flatpak-module-tools bz2008808

python3-ipmi bz2008810

python3-netssh2 bz2008811

python3-simpleparse bz2008807

Comment 4 Miro Hrončok 2021-12-05 09:39:13 UTC
Friendly bump.

Comment 5 Dan Radez 2021-12-14 14:03:20 UTC
fixed in python-ansible-runner-2.0.0a1-4