Hi Alessandro,<div><br></div><div>When I get 400 errors from nova command line it is usually because of invalid values in the cache.</div><div>Try executing your commands with the --no_cache option or destroying the cache altogether by removing the .novaclient directory in your home dir.</div>
<div><br></div><div>Salvatore<br><div><br><div class="gmail_quote">On 22 August 2012 11:45, Alessandro Tagliapietra <span dir="ltr"><<a href="mailto:tagliapietra.alessandro@gmail.com" target="_blank">tagliapietra.alessandro@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Sorry for the wrong subject, it was another mail that i was sending.<div class="im"><br>
<div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div>
-- </div><div>Alessandro Tagliapietra | VISup srl</div><div>piazza 4 novembre 7</div><div>20124 Milano</div><div><br></div><div><a href="http://www.visup.it" target="_blank">http://www.visup.it</a></div></span>

</div>
<br></div><div><div>Il giorno 22/ago/2012, alle ore 11:40, Alessandro Tagliapietra <<a href="mailto:tagliapietra.alessandro@gmail.com" target="_blank">tagliapietra.alessandro@gmail.com</a>> ha scritto:</div><div><div class="h5">
<br><blockquote type="cite"><div style="word-wrap:break-word"><div>Hello guys,</div><div><br></div><div>I'm having a problem with nova command line. I've added this to .bashrc:</div><div><br></div><div><div>export OS_TENANT_NAME=admin</div>
<div>export OS_USERNAME=admin</div><div>export OS_PASSWORD=admin</div><div>export OS_AUTH_URL="<a href="http://127.0.0.1:5000/v2.0/" target="_blank">http://127.0.0.1:5000/v2.0/</a>"</div></div><div><br></div><div>
but when i do nova --debug list i get:</div><div><br></div><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: 115\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "admin"}}}'</div>
<div>reply: 'HTTP/1.1 200 OK\r\n'</div><div>header: Content-Type: application/json</div><div>header: Vary: X-Auth-Token</div><div>header: Date: Wed, 22 Aug 2012 09:39:20 GMT</div><div>header: Transfer-Encoding: chunked</div>
<div>DEBUG (shell:416) n/a (HTTP 400)</div><div>Traceback (most recent call last):</div><div>  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in main</div><div>    OpenStackComputeShell().main(sys.argv[1:])</div>
<div>  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in main</div><div>    args.func(self.cs, args)</div><div>  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 520, in do_list</div>
<div>    utils.print_list(cs.servers.list(search_opts=search_opts), columns,</div><div>  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 279, in list</div><div>    return self._list("/servers%s%s" % (detail, query_string), "servers")</div>
<div>  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 71, in _list</div><div>    resp, body = self.api.client.get(url)</div><div>  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 136, in get</div>
<div>    return self._cs_request(url, 'GET', **kwargs)</div><div>  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124, in _cs_request</div><div>    **kwargs)</div><div>  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, in request</div>
<div>    raise exceptions.from_response(resp, body)</div><div>BadRequest: n/a (HTTP 400)</div><div>ERROR: n/a (HTTP 400)</div></div><div><br></div><div>I've dumped the traffic with tcpdump and i see a correct response from keystone, this is the output:</div>
<div><br></div><div><a href="http://pastie.org/private/ms7c5jlpatolsgiosjsva" target="_blank">http://pastie.org/private/ms7c5jlpatolsgiosjsva</a></div><div><br></div><div>How can i solve this?</div><div><br></div><div>Best Regards</div>
<br><div>
<span style="border-collapse:separate;border-spacing:0px"><div>-- </div><div>Alessandro Tagliapietra | VISup srl</div><div>piazza 4 novembre 7</div><div>20124 Milano</div><div><br></div><div><a href="http://www.visup.it/" target="_blank">http://www.visup.it</a></div>
</span>

</div>
<br></div></blockquote></div></div></div><br></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div></div>