Hello,<div><br></div><div>I've setup a test installation of OpenStack inside a virtual machine with the ec2 api. I would also like to test out the OpenStack API with the nova-python-client, therefor i installed keystone in a separate virtual machine and configured the other virtual machine to use keystone for authentication.</div>
<div><br>All OpenStack packages are installed from the official ubuntu 11.10 repositories, except Keystone which has been downloaded from <a href="https://github.com/openstack/keystone/zipball/stable/diablo">https://github.com/openstack/keystone/zipball/stable/diablo</a>.</div>
<div><br></div><div>I've added the user admin and the tenant admin. I've set the following variables in my environment:</div><div><br></div><div>NOVA_USERNAME=admin</div><div>NOVA_PASSWORD=admin</div><div>NOVA_API_KEY= [key obtained with the values below]</div>
<div><pre style="overflow-x:auto;overflow-y:auto;font-family:Consolas,'Deja Vu Sans Mono','Bitstream Vera Sans Mono',monospace;font-size:0.95em;line-height:15px;padding-top:0.5em;padding-right:0.5em;padding-bottom:0.5em;padding-left:0.5em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(204,204,204);border-right-color:rgb(204,204,204);border-bottom-color:rgb(204,204,204);border-left-color:rgb(204,204,204);background-color:rgb(255,255,255);text-align:left">
curl -d '{"auth":{"passwordCredentials":{"username": "admin", "password": "admin"}}}' -H "Content-type: application/json" <a href="http://keystone_host:35357/v2.0/tokens">http://keystone_host:35357/v2.0/tokens</a></pre>
</div><div>NOVA_PROJECT_ID=admin</div><div>NOVA_VERSION=2.0</div><div>NOVA_URL=<a href="http://controller_node:8774">http://controller_node:8774</a>.</div><div><br></div><div>When i run the command nova list i get the following error message: </div>
<div>" 'list' object has no attribute 'get' ". </div><div><br></div><div>I also found this in nova-api.log: </div><div>"2012-01-16 13:33:18,352 DEBUG nova.api.openstack.wsgi [-] Unrecognized Content-Type provided in request from (pid=624) deserialize_body /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:231".</div>
<div><br></div><div>Any ideas?</div><div><br></div><div>Regards,</div><div><br></div><div>Leander</div>