<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Courier New;color: #000000;font-size: 10pt;">
Hi Roman,
<div><br>
</div>
<div>I ran into this too and have it fixed in this commit:</div>
<div><a href="https://github.com/SandyWalsh/python-novaclient/commit/cfab90bddf2325915fb93af63e9efd31793cd55d" target="_blank">https://github.com/SandyWalsh/python-novaclient/commit/cfab90bddf2325915fb93af63e9efd31793cd55d</a></div>
<div><br>
</div>
<div>But it's part of a larger branch.</div>
<div><br>
</div>
<div>If you are unable to patch, let me know and I'll break this out as a solo branch.</div>
<div><br>
</div>
<div>-S</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF392891" style="direction: ltr; "><font face="Tahoma" size="2" color="#000000"><b>From:</b> openstack-bounces+sandy.walsh=rackspace.com@lists.launchpad.net [openstack-bounces+sandy.walsh=rackspace.com@lists.launchpad.net] on behalf of Roman Sokolkov
 [rsokolkov@gmail.com]<br>
<b>Sent:</b> Wednesday, September 14, 2011 10:21 AM<br>
<b>To:</b> openstack@lists.launchpad.net<br>
<b>Subject:</b> [Openstack] novaclient+keystone problem AttributeError: 'unicode' object has no attribute 'items'<br>
</font><br>
</div>
<div></div>
<div>Hi! I have problem. I use keystone from trunk, python-novaclient 2.6.4 
<div>
<div>
<div><br>
</div>
<div>
<div># nova --debug list</div>
<div>connect: (127.0.0.1, 5000)</div>
<div>send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: <a href="http://127.0.0.1:5000" target="_blank">
127.0.0.1:5000</a>\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"}}'</div>
<div>reply: 'HTTP/1.1 200 OK\r\n'</div>
<div>header: Content-Type: application/json; charset=UTF-8</div>
<div>header: Content-Length: 1236</div>
<div>header: Date: Wed, 14 Sep 2011 13:18:45 GMT</div>
<div>Traceback (most recent call last):</div>
<div>  File "/usr/bin/nova", line 9, in <module></div>
<div>    load_entry_point('python-novaclient==2.6.4', 'console_scripts', 'nova')()</div>
<div>  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 219, in main</div>
<div>    OpenStackComputeShell().main(sys.argv[1:])</div>
<div>  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 176, in main</div>
<div>    self.cs.authenticate()</div>
<div>  File "/usr/lib/python2.7/site-packages/novaclient/v1_0/client.py", line 57, in authenticate</div>
<div>    self.client.authenticate()</div>
<div>  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 144, in authenticate</div>
<div>    auth_url = self._v2_auth(auth_url)</div>
<div>  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 189, in _v2_auth</div>
<div>    service_catalog.ServiceCatalog(body)</div>
<div>  File "/usr/lib/python2.7/site-packages/novaclient/service_catalog.py", line 90, in __init__</div>
<div>    super(ServiceCatalog, self).__init__(resource)</div>
<div>  File "/usr/lib/python2.7/site-packages/novaclient/service_catalog.py", line 45, in __init__</div>
<div>    attribute = [res(x) for x in val]</div>
<div>  File "/usr/lib/python2.7/site-packages/novaclient/service_catalog.py", line 41, in __init__</div>
<div>    for res_key, res_value in value.items():</div>
<div>AttributeError: 'unicode' object has no attribute 'items'</div>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<style type="text/css">embed[type*="application/x-shockwave-flash"],embed[src*=".swf"],object[type*="application/x-shockwave-flash"],object[codetype*="application/x-shockwave-flash"],object[src*=".swf"],object[codebase*="swflash.cab"],object[classid*="D27CDB6E-AE6D-11cf-96B8-444553540000"],object[classid*="d27cdb6e-ae6d-11cf-96b8-444553540000"],object[classid*="D27CDB6E-AE6D-11cf-96B8-444553540000"]{   display: none !important;}</style><style type="text/css">embed[type*="application/x-shockwave-flash"],embed[src*=".swf"],object[type*="application/x-shockwave-flash"],object[codetype*="application/x-shockwave-flash"],object[src*=".swf"],object[codebase*="swflash.cab"],object[classid*="D27CDB6E-AE6D-11cf-96B8-444553540000"],object[classid*="d27cdb6e-ae6d-11cf-96b8-444553540000"],object[classid*="D27CDB6E-AE6D-11cf-96B8-444553540000"]{   display: none !important;}</style>
<font face="monospace">This email may include confidential information. If you received it in error, please delete it.</font></body>
</html>