Bug 1927657 - pyasn1-modules dependency missing
Summary: pyasn1-modules dependency missing
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-google-auth
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z5
: 16.1 (Train on RHEL 8.2)
Assignee: Miguel Garcia
QA Contact: Nobody
URL:
Whiteboard:
Depends On: 1927675 1927684
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-11 09:49 UTC by Miguel Garcia
Modified: 2024-09-18 19:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-09-18 19:32:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-15179 0 None None None 2022-05-11 17:20:25 UTC

Description Miguel Garcia 2021-02-11 09:49:28 UTC
Description of problem:
google-auth 1.3.0 requires pyasn1-modules>=0.2.1:
https://github.com/googleapis/google-auth-library-python/blob/v1.3.0/setup.py#L22

# rpm -q python3-google-auth
python3-google-auth-1.3.0-1.el8ost.noarch

# cat /usr/lib/python3.6/site-packages/google_auth-1.3.0-py3.6.egg-info/requires.txt
pyasn1-modules>=0.2.1
rsa>=3.1.4
six>=1.9.0
cachetools>=2.0.0

# rpm -q python3-google-auth-1.3.0-1.el8ost.noarch --requires
python(abi) = 3.6
python3-cachetools
python3-pyasn1
python3-pyasn1-modules
python3-rsa
python3-six
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

The only available RPM of python3-pyasn1-modules has the same version-release as the parent python-pyasn1 package, but actually installs pyasn1-modules 0.1.5:

# rpm -q python3-pyasn1-modules
python3-pyasn1-modules-0.3.7-6.el8.noarch

# rpm -ql python3-pyasn1-modules-0.3.7-6.el8.noarch
/usr/lib/python3.6/site-packages/pyasn1_modules-0.1.5-py3.6.egg-info

A new Requires: python3dist(pyasn1-modules) >= 0.2.1 needs to be added to python-google-auth.

Additionally, we'll need to ship a python-pyasn1 build that actually includes pyasn1-modules 0.2.1 or higher.

Version-Release number of selected component (if applicable):
python-google-auth-1.3.0-1.el8ost

How reproducible:
Every time, see below.

Steps to Reproduce:
1. Install python-google-auth
2. Run 'python -m pip check'

Actual results:
# python -m pip check
google-auth 1.3.0 has requirement pyasn1-modules>=0.2.1, but you have pyasn1-modules 0.1.5.

Expected results:
No unmet requirements found.

Additional info:
This was discovered while building the Ember-CSI container image ember-csi-driver-container, which among others uses 16.1 repos. This is part of the dependency chain for python-kubernetes.

We're working around it by manually editing the version in this file to fool the pip check:
/usr/lib/python3.6/site-packages/pyasn1_modules-0.1.5-py3.6.egg-info/PKG-INFO
But this is far from ideal.

Comment 2 Lon Hohberger 2024-09-18 19:32:56 UTC
Red Hat OpenStack Platform 16.1 was retired on April 30, 2024.  If this remains high priority, please reopen and retarget for a supported release.


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