Hi Roman,

I ran into this too and have it fixed in this commit:
https://github.com/SandyWalsh/python-novaclient/commit/cfab90bddf2325915fb93af63e9efd31793cd55d

But it's part of a larger branch.

If you are unable to patch, let me know and I'll break this out as a solo 
branch.

-S




________________________________
From: openstack-bounces+sandy.walsh=rackspace....@lists.launchpad.net 
[openstack-bounces+sandy.walsh=rackspace....@lists.launchpad.net] on behalf of 
Roman Sokolkov [rsokol...@gmail.com]
Sent: Wednesday, September 14, 2011 10:21 AM
To: openstack@lists.launchpad.net
Subject: [Openstack] 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<http://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'


This email may include confidential information. If you received it in error, 
please delete it.
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to