Bug 1889930 - python-requests-2.19.1-4.el7ost causes "RequestsDependencyWarning: urllib3 (1.24.3) or chardet (3.0.4) doesn't match a supported version!"
Summary: python-requests-2.19.1-4.el7ost causes "RequestsDependencyWarning: urllib3 (1...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-requests
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-21 00:24 UTC by XinhuaLi
Modified: 2020-11-04 13:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 13:47:33 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description XinhuaLi 2020-10-21 00:24:47 UTC
Description of problem:

There is a bug against "python-requests-2.19.1-4.el7ost" in file "__init__.py".
We should not use "minor" in line 63 , or else you will see error as subject when issue "openstack" command.
----------------------------------------------------------------
 57     # Check urllib3 for compatibility.
 58     major, minor, patch = urllib3_version  # noqa: F811
 59     major, minor, patch = int(major), int(minor), int(patch)
 60     # urllib3 >= 1.21.1, <= 1.23
 61     assert major == 1
 62     assert minor >= 21
 63     assert minor <= 23  
----------------------------------------------------------------
And "__init__.py" should be updated as below.
----------------------------------------------------------------
 57     # Check urllib3 for compatibility.
 58     major, minor, patch = urllib3_version  # noqa: F811
 59     major, minor, patch = int(major), int(minor), int(patch)
 60     # urllib3 >= 1.21.1, <= 1.23
 61     assert major == 1
 62     assert minor >= 21
 63     assert patch <= 23  
----------------------------------------------------------------

Version-Release number of selected component (if applicable):
python-requests-2.19.1-4.el7ost

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Regards
Sam

Comment 1 Jason Joyce 2020-11-04 13:47:33 UTC
OSP 14 has reached retirement.


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