Bug 1927657

Summary: pyasn1-modules dependency missing
Product: Red Hat OpenStack Reporter: Miguel Garcia <mgarciac>
Component: python-google-authAssignee: Miguel Garcia <mgarciac>
Status: CLOSED EOL QA Contact: Nobody <nobody>
Severity: high Docs Contact:
Priority: high    
Version: 16.1 (Train)CC: bperkins, jjoyce
Target Milestone: z5Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-09-18 19:32:56 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: 1927675, 1927684    
Bug Blocks:    

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.