RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2054827 - latest RHEL7 python-virtualenv update has updated a dependency from python-setuptools to python2-setuptools, which breaks with OpenShift channel installed
Summary: latest RHEL7 python-virtualenv update has updated a dependency from python-se...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-virtualenv
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Charalampos Stratakis
QA Contact: Lukáš Zachar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-15 19:16 UTC by Don Hoover
Modified: 2022-04-05 17:15 UTC (History)
4 users (show)

Fixed In Version: python-virtualenv-15.1.0-6.el7_9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-05 17:15:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-112391 0 None None None 2022-02-15 19:21:39 UTC
Red Hat Product Errata RHBA-2022:1197 0 None None None 2022-04-05 17:15:53 UTC

Description Don Hoover 2022-02-15 19:16:42 UTC
Description of problem:
The latest version of the python-virtualenv wants python2-setuptools as a dependency which does not exist in RHEL7.

The previous version of the rpm python-virtualenv-15.1.0-4.el7_8 had no dependencies.

Version-Release number of selected component (if applicable):
pyhon-virtualenv 15.1.0-5.el7_9

How reproducible:
yum install python-virtualenv 15.1.0-5.el7_9 or yum update from 15.1.0-4


Additional info:

The CentOS team already suggests removing this version and installing 15.1.0-4 instead.

Comment 3 Miro Hrončok 2022-02-15 22:32:26 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!

Comment 4 Charalampos Stratakis 2022-02-16 12:23:57 UTC
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

Comment 5 Don Hoover 2022-02-16 14:23:51 UTC
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.

Comment 6 Don Hoover 2022-02-16 14:27:25 UTC
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

Comment 7 Miro Hrončok 2022-02-16 17:41:11 UTC
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.

Comment 8 Charalampos Stratakis 2022-02-23 14:09:40 UTC
PR: https://src.osci.redhat.com/rpms/python-virtualenv/pull-request/14

Comment 18 errata-xmlrpc 2022-04-05 17:15:51 UTC
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


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