Bug 1396999 - [CI] - unit test fails - test_client_with_timeout
Summary: [CI] - unit test fails - test_client_with_timeout
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-novaclient
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Michal Pryc
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-21 11:15 UTC by Michal Pryc
Modified: 2019-09-09 13:58 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-21 11:22:37 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1630157 0 None None None 2016-11-21 11:15:00 UTC
OpenStack gerrit 381498 0 None None None 2016-11-21 11:15:53 UTC

Description Michal Pryc 2016-11-21 11:15:01 UTC
Running unit tests fails with the following traceback:

==============================
Failed 1 tests - output below:
==============================

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/Downstream/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/Downstream/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/Downstream/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'


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