Bug 2008718 - python-ansible-runner ships "test" module in the global namespace, breaking upgrades
Summary: python-ansible-runner ships "test" module in the global namespace, breaking u...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ansible-runner
Version: 35
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Dan Radez
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2008764
TreeView+ depends on / blocked
 
Reported: 2021-09-29 01:29 UTC by Harish Pillay
Modified: 2021-12-14 14:03 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
: 2008764 (view as bug list)
Environment:
Last Closed: 2021-12-14 14:03:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.