Ask Your Question

trove ERROR: 'unicode' object has no attribute 'get'

asked 2017-05-24 04:23:32 -0500

charles gravatar image

Hello, I'm trying to install a packstack Octa with Trove but just after the install i do a simple test :

$ trove list
ERROR: 'unicode' object has no attribute 'get'

I run this ommand to do the install :

 sudo yum install -y centos-release-openstack-ocata
 sudo yum update -y
 sudo yum install -y openstack-packstack
 packstack --allinone --provision-demo=n --os-neutron-ovs-bridge-mappings=extnet:br-ex --os-neutron-ovs-bridge-interfaces=br-ex:eth1 --os-neutron-ml2-type-drivers=vxlan,flat --os-trove-install=y

and this is my log in trove-api

==> trove-api.log <==
2017-05-24 09:13:33.994 30142 WARNING keystonemiddleware.auth_token [-] Using the in-process token cache is deprecated as of the 4.2.0 release and may be removed in the 5.0.0 release or the 'O' development cycle. The in-process cache causes inconsistent results and high memory usage. When the feature is removed the auth_token middleware will not cache tokens by default which may result in performance issues. It is recommended to use  memcache for the auth_token token cache by setting the memcached_servers option.
2017-05-24 09:13:34.024 30142 ERROR keystonemiddleware.auth_token [-] Bad response code while validating token: 400
2017-05-24 09:13:34.038 30142 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.", "code": 400, "title": "Bad Request"}}
2017-05-24 09:13:34.039 30142 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Failed to fetch token data from identity server
2017-05-24 09:13:34.041 30142 INFO eventlet.wsgi [-] - - [24/May/2017 09:13:34] "GET /v1.0/3f8f0914680b4e339ea9fb68b89ecf53/instances HTTP/1.1" 503 335 0.049067

and this is trove list with --debug :

DEBUG (session:347) REQ: curl -g -i -X GET -H "User-Agent: trove keystoneauth1/2.18.0 python-requests/2.11.1 CPython/2.7.5" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}9100013ff204c0898f44ea58c1b6cffe8b7d3c03"
INFO (connectionpool:214) Starting new HTTP connection (1):
DEBUG (connectionpool:401) "GET /v1.0/3f8f0914680b4e339ea9fb68b89ecf53/instances HTTP/1.1" 503 170
DEBUG (session:395) RESP: [503] Content-Length: 170 Content-Type: application/json; charset=UTF-8 Date: Wed, 24 May 2017 09:15:38 GMT Connection: keep-alive
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"}

DEBUG (shell:754) 'unicode' object has no attribute 'get'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/troveclient/", line 749, in main
  File "/usr/lib/python2.7/site-packages/troveclient/", line 563, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/troveclient/v1/", line 259, in do_list
  File "/usr/lib/python2.7/site-packages/troveclient/v1/", line 188, in list
    {"include_clustered": include_clustered})
  File "/usr/lib/python2.7/site-packages/troveclient/", line 70, in _paginated
    resp, body = self.api.client.get ...
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-28 05:46:54 -0500

amrith gravatar image

Where did you install from? is it possible that this was a transient issue with the state of the source tree at the time you got your code?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2017-05-24 04:23:32 -0500

Seen: 633 times

Last updated: Jun 28 '17