Bug 2008764

Summary: python-augeas ships "test" module in the global namespace, breaking upgrades
Product: [Fedora] Fedora Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: python-augeasAssignee: Miro Hrončok <mhroncok>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 35CC: cstratak, dradez, edgar.hoch, extras-qa, fschwarz, gregswift, hpillay, jcholast, mhroncok, python-maint, python-sig, quantum.analyst, thrnciar, tobydrake7, torsava, vstinner, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-augeas-1.1.0-3.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2008718 Environment:
Last Closed: 2021-11-25 01:04:41 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: 2008718    
Bug Blocks:    

Description Zbigniew Jędrzejewski-Szmek 2021-09-29 06:31:15 UTC
+++ This bug was initially created as a clone of Bug #2008718 +++

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

--- Additional comment from Elliott Sales de Andrade on 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 1 Felix Schwarz 2021-10-11 21:34:17 UTC
Incidentally I just created a pull request which fixes that: https://src.fedoraproject.org/rpms/python-augeas/pull-request/3#commit_list

Comment 2 Miro Hrončok 2021-11-23 18:10:44 UTC
*** Bug 2023130 has been marked as a duplicate of this bug. ***

Comment 3 Miro Hrončok 2021-11-23 18:16:22 UTC
I am building the fix by Felix in rawhide and f35.

Comment 4 Fedora Update System 2021-11-23 18:54:08 UTC
FEDORA-2021-fbb19120f8 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-fbb19120f8

Comment 5 Fedora Update System 2021-11-24 01:57:39 UTC
FEDORA-2021-fbb19120f8 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-fbb19120f8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-fbb19120f8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-11-25 01:04:41 UTC
FEDORA-2021-fbb19120f8 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.