Ask Your Question
0

nova list http 400 after reboot

asked 2012-05-17 06:31:44 -0500

drolfe gravatar image

Hi All,

I have setup a openstack testing cloud using ubuntu MAAS and juju. All was ok untill I rebooted the compute node (vm) to give it more ram

now I have the below error

ubuntu@node-a6310d0cd64a:~$ nova list ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400)

but image list works fine

ubuntu@node-a6310d0cd64a:~$ nova image-list +--------------------------------------+-----------------------------+--------+--------+ | ID | Name | Status | Server | +--------------------------------------+-----------------------------+--------+--------+ | c46b445a-d667-4cdc-a1e2-efecbbe82990 | Ubuntu 11.10 cloudimg amd64 | ACTIVE | | +--------------------------------------+-----------------------------+--------+--------+

I've tried rebooting the cloud controler node, keystone node and compute node without any luck

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-05-17 06:32:25 -0500

drolfe gravatar image

Here is the debug

ubuntu@node-a6310d0cd64a:~$ nova --debug list connect: (192.168.253.41, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.253.41:5000\r\nContent-Length: 104\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": "openstack"}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json header: Vary: X-Auth-Token header: Date: Thu, 17 May 2012 06:32:48 GMT header: Transfer-Encoding: chunked connect: (node-a6310d0cd64a.cloud.com.au, 8774) send: u'GET /v1.1/4d6bdcc35258410f8a3e5007a46188dc/servers/detail HTTP/1.1\r\nHost: node-a6310d0cd64a.cloud.com.au:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 87be281b888347ea99a5e9f1c4e0a919\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' reply: 'HTTP/1.1 400 Bad Request\r\n' header: Content-Length: 141 header: Content-Type: application/json; charset=UTF-8 header: X-Compute-Request-Id: req-d55f6400-cdd4-4e73-910a-3eb2eaf5272f header: Date: Thu, 17 May 2012 06:31:57 GMT DEBUG (shell:416) The server could not comply with the request since it is either malformed or otherwise incorrect. (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: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400)

edit flag offensive delete link more
0

answered 2012-05-18 07:14:09 -0500

drolfe gravatar image

Ok, So I rebuild from scratch compute, cloud controller, keystone, no change still getting the http 400.

Issue resolved after rebuilding the mysql database from scratch.

No idea what caused it to happen in the first place but

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-05-17 06:31:44 -0500

Seen: 106 times

Last updated: May 18 '12