Bug 2054827
| Summary: | latest RHEL7 python-virtualenv update has updated a dependency from python-setuptools to python2-setuptools, which breaks with OpenShift channel installed | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Don Hoover <donhoover> |
| Component: | python-virtualenv | Assignee: | Charalampos Stratakis <cstratak> |
| Status: | CLOSED ERRATA | QA Contact: | Lukáš Zachar <lzachar> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.9 | CC: | cstratak, kpfleming, pviktori, torsava |
| Target Milestone: | rc | Keywords: | Triaged, ZStream |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-virtualenv-15.1.0-6.el7_9 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-04-05 17:15:51 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: | |||
|
Description
Don Hoover
2022-02-15 19:16:42 UTC
I have just verified that "python2-setuptools" is provided by the python-setuptools package.
How does this problem manifest for you?
This is CentOS Linux 7.9:
$ podman run --rm -ti quay.io/centos/centos:7 /usr/bin/bash
...
[root@bb0c76fcfc9d /]# yum install python-virtualenv
...
Resolving Dependencies
--> Running transaction check
---> Package python-virtualenv.noarch 0:15.1.0-5.el7_9 will be installed
--> Processing Dependency: python2-setuptools for package: python-virtualenv-15.1.0-5.el7_9.noarch
--> Processing Dependency: python2-devel for package: python-virtualenv-15.1.0-5.el7_9.noarch
--> Running transaction check
---> Package python-devel.x86_64 0:2.7.5-90.el7 will be installed
--> Processing Dependency: python(x86-64) = 2.7.5-90.el7 for package: python-devel-2.7.5-90.el7.x86_64
--> Processing Dependency: python2-rpm-macros > 3-30 for package: python-devel-2.7.5-90.el7.x86_64
--> Processing Dependency: python-rpm-macros > 3-30 for package: python-devel-2.7.5-90.el7.x86_64
---> Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-7.el7.noarch
--> Running transaction check
---> Package python.x86_64 0:2.7.5-89.el7 will be updated
---> Package python.x86_64 0:2.7.5-90.el7 will be an update
--> Processing Dependency: python-libs(x86-64) = 2.7.5-90.el7 for package: python-2.7.5-90.el7.x86_64
---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed
--> Processing Dependency: python-ipaddress for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
---> Package python-rpm-macros.noarch 0:3-34.el7 will be installed
--> Processing Dependency: python-srpm-macros for package: python-rpm-macros-3-34.el7.noarch
---> Package python2-rpm-macros.noarch 0:3-34.el7 will be installed
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
---> Package python-libs.x86_64 0:2.7.5-89.el7 will be updated
---> Package python-libs.x86_64 0:2.7.5-90.el7 will be an update
---> Package python-srpm-macros.noarch 0:3-34.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
python-virtualenv noarch 15.1.0-5.el7_9 updates 1.5 M
Installing for dependencies:
python-backports x86_64 1.0-8.el7 base 5.8 k
python-backports-ssl_match_hostname noarch 3.5.0.1-1.el7 base 13 k
python-devel x86_64 2.7.5-90.el7 updates 399 k
python-ipaddress noarch 1.0.16-2.el7 base 34 k
python-rpm-macros noarch 3-34.el7 base 9.1 k
python-setuptools noarch 0.9.8-7.el7 base 397 k
python-srpm-macros noarch 3-34.el7 base 8.8 k
python2-rpm-macros noarch 3-34.el7 base 8.1 k
Updating for dependencies:
python x86_64 2.7.5-90.el7 updates 96 k
python-libs x86_64 2.7.5-90.el7 updates 5.6 M
Transaction Summary
================================================================================
Install 1 Package (+8 Dependent packages)
Upgrade ( 2 Dependent packages)
Total download size: 8.1 M
Is this ok [y/d/N]: y
Downloading packages:
...
(1/11): python-backports-1.0-8.el7.x86_64.rpm | 5.8 kB 00:00
(2/11): python-backports-ssl_match_hostname-3.5.0.1-1.el7. | 13 kB 00:00
(3/11): python-rpm-macros-3-34.el7.noarch.rpm | 9.1 kB 00:00
(4/11): python-ipaddress-1.0.16-2.el7.noarch.rpm | 34 kB 00:00
Public key for python-2.7.5-90.el7.x86_64.rpm is not installed
(5/11): python-2.7.5-90.el7.x86_64.rpm | 96 kB 00:00
(6/11): python-srpm-macros-3-34.el7.noarch.rpm | 8.8 kB 00:00
(7/11): python2-rpm-macros-3-34.el7.noarch.rpm | 8.1 kB 00:00
(8/11): python-devel-2.7.5-90.el7.x86_64.rpm | 399 kB 00:00
(9/11): python-setuptools-0.9.8-7.el7.noarch.rpm | 397 kB 00:00
(10/11): python-virtualenv-15.1.0-5.el7_9.noarch.rpm | 1.5 MB 00:01
(11/11): python-libs-2.7.5-90.el7.x86_64.rpm | 5.6 MB 00:02
--------------------------------------------------------------------------------
Total 2.7 MB/s | 8.1 MB 00:02
...
Running transaction
Updating : python-libs-2.7.5-90.el7.x86_64 1/13
Updating : python-2.7.5-90.el7.x86_64 2/13
Installing : python-backports-1.0-8.el7.x86_64 3/13
Installing : python-ipaddress-1.0.16-2.el7.noarch 4/13
Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 5/13
Installing : python-setuptools-0.9.8-7.el7.noarch 6/13
Installing : python-srpm-macros-3-34.el7.noarch 7/13
Installing : python-rpm-macros-3-34.el7.noarch 8/13
Installing : python2-rpm-macros-3-34.el7.noarch 9/13
Installing : python-devel-2.7.5-90.el7.x86_64 10/13
Installing : python-virtualenv-15.1.0-5.el7_9.noarch 11/13
Cleanup : python-2.7.5-89.el7.x86_64 12/13
Cleanup : python-libs-2.7.5-89.el7.x86_64 13/13
Verifying : python-virtualenv-15.1.0-5.el7_9.noarch 1/13
Verifying : python2-rpm-macros-3-34.el7.noarch 2/13
Verifying : python-setuptools-0.9.8-7.el7.noarch 3/13
Verifying : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 4/13
Verifying : python-devel-2.7.5-90.el7.x86_64 5/13
Verifying : python-2.7.5-90.el7.x86_64 6/13
Verifying : python-backports-1.0-8.el7.x86_64 7/13
Verifying : python-rpm-macros-3-34.el7.noarch 8/13
Verifying : python-ipaddress-1.0.16-2.el7.noarch 9/13
Verifying : python-srpm-macros-3-34.el7.noarch 10/13
Verifying : python-libs-2.7.5-90.el7.x86_64 11/13
Verifying : python-libs-2.7.5-89.el7.x86_64 12/13
Verifying : python-2.7.5-89.el7.x86_64 13/13
Installed:
python-virtualenv.noarch 0:15.1.0-5.el7_9
Dependency Installed:
python-backports.x86_64 0:1.0-8.el7
python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7
python-devel.x86_64 0:2.7.5-90.el7
python-ipaddress.noarch 0:1.0.16-2.el7
python-rpm-macros.noarch 0:3-34.el7
python-setuptools.noarch 0:0.9.8-7.el7
python-srpm-macros.noarch 0:3-34.el7
python2-rpm-macros.noarch 0:3-34.el7
Dependency Updated:
python.x86_64 0:2.7.5-90.el7 python-libs.x86_64 0:2.7.5-90.el7
Complete!
Is setuptools updated? Which version does the system have? The setuptools package provides the python2-setuptools namespace since the version 0.9.8-6. Spinning a RHEL7 VM and with installing the latest python-virtualenv I get no dependency issues. $ rpm -qa python-setuptools python-setuptools-0.9.8-7.el7.noarch $ rpm -q --provides python-setuptools python-distribute = 0.9.8-7.el7 python-setuptools = 0.9.8-7.el7 python-setuptools-devel = 0.9.8-7.el7 python2-setuptools = 0.9.8-7.el7 Ok, this was a weird one but I figured it out I think. These systems had python-setuptools from the OpenShift channel installed python-setuptools.noarch 17.1.1-4.el7. This has both a known issue where it does not provide python2-setuptools, see https://bugzilla.redhat.com/show_bug.cgi?id=1721558e, AND it is versioned HIGHER than the python-setuptools in RHEL 0.9.8-7.el7 in the rhel-7-server-rpms channel, so the RHEL one will never be able to replace it for updates or requirements. Doing: yum downgrade python-setuptools which installs the 0.9.8-7 from RHEL first, and then updating the python-virtualenv works. Referenced above: Bug 1721558 - python-setuptools-17.1.1-4.el7 of OCP 3.10 repos does not provide python2-setuptools https://bugzilla.redhat.com/show_bug.cgi?id=1721558 I honestly don't know why OpenShift channel ships a different setuptools package. I guess we can change the dependency back to python-setuptools to workaround that, but I don't know if we can do that in RHEL 7. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (python-virtualenv bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:1197 |