← Back to team overview

openstack team mailing list archive

novaclient+keystone problem AttributeError: 'unicode' object has no attribute 'items'

 

Hi! I have problem. I use keystone from trunk, python-novaclient 2.6.4

# nova --debug list
connect: (127.0.0.1, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length:
88\r\ncontent-type: application/json\r\naccept-encoding: gzip,
deflate\r\nuser-agent: python-novaclient\r\n\r\n{"passwordCredentials":
{"username": "admin", "password": "xxx", "tenantId": "1234"}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Content-Length: 1236
header: Date: Wed, 14 Sep 2011 13:18:45 GMT
Traceback (most recent call last):
  File "/usr/bin/nova", line 9, in <module>
    load_entry_point('python-novaclient==2.6.4', 'console_scripts',
'nova')()
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 219, in
main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 176, in
main
    self.cs.authenticate()
  File "/usr/lib/python2.7/site-packages/novaclient/v1_0/client.py", line
57, in authenticate
    self.client.authenticate()
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 144, in
authenticate
    auth_url = self._v2_auth(auth_url)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 189, in
_v2_auth
    service_catalog.ServiceCatalog(body)
  File "/usr/lib/python2.7/site-packages/novaclient/service_catalog.py",
line 90, in __init__
    super(ServiceCatalog, self).__init__(resource)
  File "/usr/lib/python2.7/site-packages/novaclient/service_catalog.py",
line 45, in __init__
    attribute = [res(x) for x in val]
  File "/usr/lib/python2.7/site-packages/novaclient/service_catalog.py",
line 41, in __init__
    for res_key, res_value in value.items():
AttributeError: 'unicode' object has no attribute 'items'

Follow ups