openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #15477
nova list error ERROR: n/a (HTTP 400)
Hai,
I am running the openstack on ubuntu 12.04 for getting the vnc
console url
nova get-vnc-console
and
*nova --debug list*
*
*
but we are getting error mentioned below
connect: (localhost, 5000)
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"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Date: Sat, 04 Aug 2012 06:04:58 GMT
header: Transfer-Encoding: chunked
DEBUG (shell:416) n/a (HTTP 400)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in
main
OpenStackComputeShell().main(sys.argv[1:])
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in
main
args.func(self.cs, args)
File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line
520, in do_list
utils.print_list(cs.servers.list(search_opts=search_opts), columns,
File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line
279, in list
return self._list("/servers%s%s" % (detail, query_string), "servers")
File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 71, in
_list
resp, body = self.api.client.get(url)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 136,
in get
return self._cs_request(url, 'GET', **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124,
in _cs_request
**kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107,
in request
raise exceptions.from_response(resp, body)
BadRequest: n/a (HTTP 400)
ERROR: n/a (HTTP 400)
and our credentials exported successfulle as given below
SERVICE_ENDPOINT="http://localhost:35357/v2.0"
SERVICE_TOKEN=abcdef123456
OS_TENANT_NAME=admin
OS_USERNAME=admin
OS_PASSWORD=admin
OS_AUTH_URL="http://localhost:5000/v2.0/"
please help me ....
--
with Thanks and Regards
Sarath Zacharia
Follow ups