[Openstack] nova list error ERROR: n/a (HTTP 400)

Xavier Limodin xavier.limodin at xavier-office.net
Sun Aug 5 10:08:06 UTC 2012


Hi,

2012/8/4 sarath zacharia <sarathzacharia at gmail.com>

> 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'
>
Keystone auth seems good, you should check credentials in
/etc/nova/api-paste.ini and Keystone endpoints.
Use IP or FQDN instead of localhost.

nova --debug list
connect: (192.168.1.250, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost:
192.168.1.250:5000\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"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Date: Sun, 05 Aug 2012 09:50:26 GMT
header: Transfer-Encoding: chunked
connect: (host.example.com, 8774)
send: u'GET /v2/ee676f7fc3e44fbc9af31f5c5c201e32/servers/detail
HTTP/1.1\r\nHost: host.example.com:8774\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'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-b3baf138-f3f5-4e64-be27-57cc1ec8626a
header: Content-Type: application/json
header: Content-Length: 15
header: Date: Sun, 05 Aug 2012 09:50:36 GMT
+----+------+--------+----------+
| ID | Name | Status | Networks |
+----+------+--------+----------+
....


> 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
>
>
>
>  OS_TENANT_NAME=admin
>  OS_USERNAME=admin
>  OS_PASSWORD=admin
>  OS_AUTH_URL="http://localhost:5000/v2.0/"
>
> You don't need to export SERVICE_ENDPOINT and SERVICE_TOKEN, OS_...
variables are sufficient.



>  please help me ....
>
> --
> with Thanks and Regards
>
> Sarath Zacharia
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120805/18043904/attachment.html>


More information about the Openstack mailing list