keystoneclient.exceptions.RequestTimeout with requests==2.8.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Won't Fix
|
Undecided
|
Flavio Percoco | ||
OpenStack-Ansible |
Fix Released
|
High
|
Jesse Pretorius | ||
Kilo |
Fix Released
|
High
|
Jesse Pretorius | ||
Liberty |
Fix Released
|
High
|
Jesse Pretorius | ||
Trunk |
Fix Released
|
High
|
Jesse Pretorius | ||
ospurge |
Invalid
|
Undecided
|
Flavio Percoco |
Bug Description
With requests==2.8.0 ospurge gives this traceback:
Traceback (most recent call last):
File "ospurge.py", line 982, in <module>
main()
File "ospurge.py", line 960, in main
action, args.insecure)
File "ospurge.py", line 799, in perform_on_project
endpoint_type, region_name, insecure)
File "ospurge.py", line 177, in __init__
client.
File "/home/
return self._list(
File "/home/
resp, body = self.client.
File "/home/
return self.request(url, 'GET', **kwargs)
File "/home/
resp = super(LegacyJso
File "/home/
return self.session.
File "/home/
return func(*args, **kwargs)
File "/home/
resp = send(**kwargs)
File "/home/
raise exceptions.
keystoneclient.
Downgrading to previous requests verion works fine
Changed in openstack-ansible: | |
assignee: | nobody → Jesse Pretorius (jesse-pretorius) |
milestone: | none → 12.0.0 |
importance: | Undecided → High |
status: | New → In Progress |
Changed in openstack-ansible: | |
milestone: | 12.0.0 → 12.1.0 |
FWIW, we're hitting an issue with requests 2.8.0 in glanceclient:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. v1.test_ shell.ShellInva lidEndpointandP arameterTest. test_members_ list_invalid_ endpoint ------- ------- ------- ------- ------- ------- ------- ------- ------- tests/unit/ v1/test_ shell.py" , line 293, in test_members_ list_invalid_ endpoint run_command, 'member-list --image-id fake') flaper87/ workspace/ openstack/ python- glanceclient/ .tox/py27/ lib/python2. 7/site- packages/ testtools/ testcase. py", line 422, in assertRaises assertThat( our_callable, matcher) flaper87/ workspace/ openstack/ python- glanceclient/ .tox/py27/ lib/python2. 7/site- packages/ testtools/ testcase. py", line 433, in assertThat er(matchee, matcher, message, verbose) flaper87/ workspace/ openstack/ python- glanceclient/ .tox/py27/ lib/python2. 7/site- packages/ testtools/ testcase. py", line 483, in _matchHelper match(matchee) flaper87/ workspace/ openstack/ python- glanceclient/ .tox/py27/ lib/python2. 7/site- packages/ testtools/ matchers/ _exception. py", line 108, in match matcher. match(exc_ info) flaper87/ workspace/ openstack/ python- glanceclient/ .tox/py27/ lib/python2. 7/site- packages/ testtools/ matchers/ _higherorder. py", line 62, in match match(matchee) flaper87/ workspace/ openstack/ python- glanceclient/ .tox/py27/ lib/python2. 7/site- packages/ testtools/ testcase. py", line 414, in match *matchee) flaper87/ workspace/ openstack/ python- glanceclient/ .tox/py27/ lib/python2. 7/site- packages/ testtools/ matchers/ _exception. py", line 101, in match flaper87/ workspace/ openstack/ python- glanceclient/ .tox/py27/ lib/python2. 7/site- packages/ testtools/ testcase. py", line 969, in __call__ object( *self._ args, **self._kwargs) tests/unit/ v1/test_ shell.py" , line 263, in run_command shell.main( cmd.split( )) shell.py" , line 695, in main func(client, args) v1/shell. py", line 405, in do_member_list members. list(** kwargs) v1/image_ members. py", line 51, in list extend( self._list_ by_image( image)) v1/image_ members. py", line 63, in _list_by_image get(url) common/ http.py" , line 280, in get 'GET', url, **kwargs) common/ http.py" , line 257, in _request oint(message= message) exc.InvalidEndp oint: Error communicating with http:// is.invalid/ v1/images/ fake/members: HTTPConnectionP ool(host= 'is.invalid' , port=80): Max retries exceeded with url: /v1/images/ fake/members (Caused by NewConnectionEr ror('<requests. packages. urllib3. connection. HTTPConnection object at 0x7f5e9d66de50>: Failed to establish a new connection: [Errno -2] Name or service not known',))
FAIL: glanceclient.
tags: worker-0
-------
Traceback (most recent call last):
File "glanceclient/
self.
File "/home/
self.
File "/home/
mismatch_error = self._matchHelp
File "/home/
mismatch = matcher.
File "/home/
mismatch = self.exception_
File "/home/
mismatch = matcher.
File "/home/
reraise(
File "/home/
result = matchee()
File "/home/
return self._callable_
File "glanceclient/
self.
File "glanceclient/
args.
File "glanceclient/
members = gc.image_
File "glanceclient/
out.
File "glanceclient/
resp, body = self.client.
File "glanceclient/
return self._request(
File "glanceclient/
raise exc.InvalidEndp
glanceclient.
...