tests are failed on master with"ValueError: Unable to determine whether fp is closed."

Bug #1363979 reported by Andriy Kurilin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Undecided
dominik dobruchowski

Bug Description

Since requests 2.4.0 released, several tests are failed on master with next traceback:

2014-09-01 04:05:08.708 | Traceback (most recent call last):
2014-09-01 04:05:08.708 | File "novaclient/tests/v1_1/test_servers.py", line 223, in test_update_server
2014-09-01 04:05:08.709 | s.update(name='hi')
2014-09-01 04:05:08.709 | File "novaclient/v1_1/servers.py", line 55, in update
2014-09-01 04:05:08.709 | self.manager.update(self, name=name)
2014-09-01 04:05:08.709 | File "novaclient/v1_1/servers.py", line 912, in update
2014-09-01 04:05:08.709 | return self._update("/servers/%s" % base.getid(server), body, "server")
2014-09-01 04:05:08.709 | File "novaclient/base.py", line 113, in _update
2014-09-01 04:05:08.709 | _resp, body = self.api.client.put(url, body=body)
2014-09-01 04:05:08.709 | File "novaclient/client.py", line 493, in put
2014-09-01 04:05:08.709 | return self._cs_request(url, 'PUT', **kwargs)
2014-09-01 04:05:08.710 | File "novaclient/client.py", line 465, in _cs_request
2014-09-01 04:05:08.710 | resp, body = self._time_request(url, method, **kwargs)
2014-09-01 04:05:08.710 | File "novaclient/client.py", line 439, in _time_request
2014-09-01 04:05:08.710 | resp, body = self.request(url, method, **kwargs)
2014-09-01 04:05:08.710 | File "novaclient/client.py", line 410, in request
2014-09-01 04:05:08.710 | **kwargs)
2014-09-01 04:05:08.710 | File "/home/jenkins/workspace/gate-python-novaclient-python26/.tox/py26/lib/python2.6/site-packages/requests/api.py", line 44, in request
2014-09-01 04:05:08.710 | return session.request(method=method, url=url, **kwargs)
2014-09-01 04:05:08.710 | File "/home/jenkins/workspace/gate-python-novaclient-python26/.tox/py26/lib/python2.6/site-packages/requests/sessions.py", line 448, in request
2014-09-01 04:05:08.710 | resp = self.send(prep, **send_kwargs)
2014-09-01 04:05:08.711 | File "/home/jenkins/workspace/gate-python-novaclient-python26/.tox/py26/lib/python2.6/site-packages/requests_mock/mocker.py", line 67, in _fake_send
2014-09-01 04:05:08.711 | return self._real_send(session, request, **kwargs)
2014-09-01 04:05:08.711 | File "/home/jenkins/workspace/gate-python-novaclient-python26/.tox/py26/lib/python2.6/site-packages/requests/sessions.py", line 591, in send
2014-09-01 04:05:08.711 | r.content
2014-09-01 04:05:08.711 | File "/home/jenkins/workspace/gate-python-novaclient-python26/.tox/py26/lib/python2.6/site-packages/requests/models.py", line 707, in content
2014-09-01 04:05:08.711 | self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
2014-09-01 04:05:08.711 | File "/home/jenkins/workspace/gate-python-novaclient-python26/.tox/py26/lib/python2.6/site-packages/requests/models.py", line 638, in generate
2014-09-01 04:05:08.711 | for chunk in self.raw.stream(chunk_size, decode_content=True):
2014-09-01 04:05:08.711 | File "/home/jenkins/workspace/gate-python-novaclient-python26/.tox/py26/lib/python2.6/site-packages/requests/packages/urllib3/response.py", line 255, in stream
2014-09-01 04:05:08.712 | while not is_fp_closed(self._fp):
2014-09-01 04:05:08.712 | File "/home/jenkins/workspace/gate-python-novaclient-python26/.tox/py26/lib/python2.6/site-packages/requests/packages/urllib3/util/response.py", line 22, in is_fp_closed
2014-09-01 04:05:08.712 | raise ValueError("Unable to determine whether fp is closed.")
2014-09-01 04:05:08.712 | ValueError: Unable to determine whether fp is closed.

Related to: py26, py27, py33
Tracebacks of all failed tests: http://paste.openstack.org/show/104193/
Full logs: http://logs.openstack.org/91/117591/3/check/gate-python-novaclient-python26/ab2eea5/console.html

summary: - ValueError: Unable to determine whether fp is closed.
+ [novaclient] tests are failed on master with"ValueError: Unable to
+ determine whether fp is closed."
affects: nova → python-novaclient
summary: - [novaclient] tests are failed on master with"ValueError: Unable to
- determine whether fp is closed."
+ tests are failed on master with"ValueError: Unable to determine whether
+ fp is closed."
description: updated
tags: added: requests
Changed in python-novaclient:
assignee: nobody → dominik dobruchowski (dominik-dobruchowski)
status: New → In Progress
Changed in python-novaclient:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.