Bug 1397099 - Upgrade python-requests to 2.11.1 for Newton
Summary: Upgrade python-requests to 2.11.1 for Newton
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-requests
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z6
: 10.0 (Newton)
Assignee: Jon Schlueter
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On: 1397098
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-21 15:41 UTC by Michal Pryc
Modified: 2017-12-05 07:35 UTC (History)
9 users (show)

Fixed In Version: python-requests-2.11.1-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1397098
Environment:
Last Closed: 2017-11-15 13:51:18 UTC
Target Upstream Version:
Embargoed:
jschluet: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:3230 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 10 Bug Fix and Enhancement Advisory 2017-11-15 18:39:20 UTC

Description Michal Pryc 2016-11-21 15:41:32 UTC
+++ This bug was initially created as a clone of Bug #1397098 +++

Description of problem:

Currently python-requests 2.10.0 package is available, however 2.11.0 should be as in upper-constraints:

https://github.com/openstack/requirements/blob/stable/newton/upper-constraints.txt#L328

Without this package at least python-novaclient unit test fails:
novaclient.tests.unit.test_client.ClientTest.test_client_with_timeout
---------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "novaclient/tests/unit/test_client.py", line 60, in test_client_with_timeout
        instance.authenticate()
      File "novaclient/client.py", line 612, in authenticate
        auth_url = self._v1_auth(auth_url)
      File "novaclient/client.py", line 648, in _v1_auth
        resp, body = self._time_request(url, 'GET', headers=headers)
      File "novaclient/client.py", line 431, in _time_request
        resp, body = self.request(url, method, **kwargs)
      File "novaclient/client.py", line 404, in request
        if resp.text:
      File "/home/migi/Desktop/Development/Upstream/python-novaclient/.tox/py27/lib/python2.7/site-packages/requests/models.py", line 796, in text
        if not self.content:
      File "/home/migi/Desktop/Development/Upstream/python-novaclient/.tox/py27/lib/python2.7/site-packages/requests/models.py", line 772, in content
        self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
      File "/home/migi/Desktop/Development/Upstream/python-novaclient/.tox/py27/lib/python2.7/site-packages/requests/models.py", line 705, in generate
        chunk = self.raw.read(chunk_size)
    AttributeError: 'NoneType' object has no attribute 'read'

Comment 1 Michal Pryc 2016-11-21 15:50:00 UTC
Version should be 2.11.1 as in upper-constraints (not as I wrote in previous comment 2.11.0).

Comment 3 Mike Burns 2017-10-05 18:11:09 UTC
newer python-requests is in rdo cloud-common, so we can update in OSP10 now.

Comment 8 errata-xmlrpc 2017-11-15 13:51:18 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, 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-2017:3230


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