Hi,<br><br><div class="gmail_quote">2012/8/4 sarath zacharia <span dir="ltr"><<a href="mailto:sarathzacharia@gmail.com" target="_blank">sarathzacharia@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hai,<div> </div><div>          I am running the openstack on ubuntu 12.04  for getting the vnc console url</div><div><br></div><div><font color="#ff0000">nova get-vnc-console </font></div><div><font color="#ff0000"><br></font></div>



<div><font color="#ff0000">and </font></div><div><font color="#ff0000">                 </font></div><div><b><font color="#ff0000">nova --debug list</font></b></div><div><b><font color="#ff0000"><br></font></b></div><div>



but we are getting error mentioned below</div><div><br></div><div><div><font color="#ff0000"><br></font></div><div>connect: (localhost, 5000)</div><div>send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: localhost:5000\r\nContent-Length: 113\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></blockquote><div>Keystone auth seems good, you should check credentials in /etc/nova/api-paste.ini and Keystone endpoints.</div><div>Use IP or FQDN instead of localhost.</div>

<div><br></div><div><div><font color="#000099">nova --debug list</font></div><div><font color="#000099">connect: (192.168.1.250, 5000)</font></div><div><font color="#000099">send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: <a href="http://192.168.1.250:5000">192.168.1.250:5000</a>\r\nContent-Length: 103\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"}}}'</font></div>

<div><font color="#000099">reply: 'HTTP/1.1 200 OK\r\n'</font></div><div><font color="#000099">header: Content-Type: application/json</font></div><div><font color="#000099">header: Vary: X-Auth-Token</font></div>
<div>
<font color="#000099">header: Date: Sun, 05 Aug 2012 09:50:26 GMT</font></div><div><font color="#000099">header: Transfer-Encoding: chunked</font></div><div><font color="#000099">connect: (<a href="http://host.example.com">host.example.com</a>, 8774)</font></div>

<div><font color="#000099">send: u'GET /v2/ee676f7fc3e44fbc9af31f5c5c201e32/servers/detail HTTP/1.1\r\nHost: <a href="http://host.example.com:8774">host.example.com:8774</a>\r\nx-auth-project-id: admin\r\nx-auth-token: 65962404926f4e5a867354f7e733381d\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'</font></div>

<div><font color="#000099">reply: 'HTTP/1.1 200 OK\r\n'</font></div><div><font color="#000099">header: X-Compute-Request-Id: req-b3baf138-f3f5-4e64-be27-57cc1ec8626a</font></div><div><font color="#000099">header: Content-Type: application/json</font></div>

<div><font color="#000099">header: Content-Length: 15</font></div><div><font color="#000099">header: Date: Sun, 05 Aug 2012 09:50:36 GMT</font></div><div><font color="#000099">+----+------+--------+----------+</font></div>

<div><font color="#000099">| ID | Name | Status | Networks |</font></div><div><font color="#000099">+----+------+--------+----------+</font></div></div><div><font color="#000099">....</font></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>header: Content-Type: application/json</div><div>header: Vary: X-Auth-Token</div><div>header: Date: Sat, 04 Aug 2012 06:04:58 GMT</div><div>header: Transfer-Encoding: chunked </div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<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><span style><font color="#ff0000">and our credentials exported successfulle as given below</font></span></div>



<div><span style><font color="#ff0000"><br></font></span></div><div><div><span style><font color="#ff0000"><br> </font></span></div><div><span style><font color="#ff0000"> OS_TENANT_NAME=admin</font></span></div>

<div><span style><font color="#ff0000"> OS_USERNAME=admin</font></span></div><div><span style><font color="#ff0000"> OS_PASSWORD=admin</font></span></div>

<div><span style><font color="#ff0000"> OS_AUTH_URL="<a href="http://localhost:5000/v2.0/" target="_blank">http://localhost:5000/v2.0/</a>"</font></span></div><div><span style="background-color:rgb(255,0,0)"><br>

</span></div></div></blockquote><div>You don't need to export SERVICE_ENDPOINT and SERVICE_TOKEN, OS_... variables are sufficient.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div><span style="background-color:rgb(255,0,0)">

</span></div><div>please help me ....</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br>with Thanks and Regards<br><br>Sarath Zacharia<br>
</font></span></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>