neutron : 'unicode' object has no attribute 'get'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello,
I have a big problem :
When i try the command openstack network list, the shell returns 'unicode' object has no attribute 'get'
openstack network list --debug
.....
Starting new HTTP connection (1): controller
"GET / HTTP/1.1" 200 119
RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 119 Date: Wed, 05 Apr 2017 12:37:24 GMT Connection: keep-alive
RESP BODY: {"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "http://
Using http://
REQ: curl -g -i -X GET http://
"GET /v2.0/networks HTTP/1.1" 503 170
RESP: [503] Content-Length: 170 Content-Type: application/json; charset=UTF-8 X-Openstack-
RESP BODY: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\n\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}
GET call to network for http://
Request returned failure status: 503
'unicode' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
return super(Command, self).run(
File "/usr/lib/
self.
File "/usr/lib/
parsed_args,
File "/usr/lib/
self.
File "/usr/lib/
first_row = next(data_iter)
File "/usr/lib/
(utils.
File "/usr/lib/
params=
File "/usr/lib/
return self.request(url, 'GET', **kwargs)
File "/usr/lib/
raise exceptions.
File "/usr/lib/
messages = [obj.get('message') for obj in resp.json(
AttributeError: 'unicode' object has no attribute 'get'
clean_up ListNetwork: 'unicode' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/lib/
ret_val = super(OpenStack
File "/usr/lib/
result = self.run_
File "/usr/lib/
ret_value = super(OpenStack
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
return super(Command, self).run(
File "/usr/lib/
self.
File "/usr/lib/
parsed_args,
File "/usr/lib/
self.
File "/usr/lib/
first_row = next(data_iter)
File "/usr/lib/
(utils.
File "/usr/lib/
params=
File "/usr/lib/
return self.request(url, 'GET', **kwargs)
File "/usr/lib/
raise exceptions.
File "/usr/lib/
messages = [obj.get('message') for obj in resp.json(
AttributeError: 'unicode' object has no attribute 'get'
END return value: 1
but command openstack flavor list returns good value.
Thanks!!
Please help me !!
I use haproxy to balance with 2 controllers..