Ask Your Question

nova volume-list ERROR: Bad request (HTTP 400)

asked 2013-01-09 12:52:20 -0500

weihongj gravatar image

I follow the official document to install my openstack env. nova-volume installed on the controller node, when trying to run comment nova volume-list, but got error like:ERROR: Bad request (HTTP 400) Following is the out with --debug: [root@skcm5-svm nova]# nova --debug volume-list

REQ: curl -i -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "admin", "password": "secretword"}}}'

connect: (, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost:\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' send: '{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "admin", "password": "secretword"}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Vary: X-Auth-Token header: Content-Type: application/json header: Content-Length: 2456 header: Date: Wed, 09 Jan 2013 12:38:24 GMT RESP:{'date': 'Wed, 09 Jan 2013 12:38:24 GMT', 'vary': 'X-Auth-Token', 'content-length': '2456', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"expires": "2013-01-10T12:38:24Z", "id": "8cf69b66b8ea49bda6980ef5078d3e19", "tenant": {"enabled": true, "description": "Default Tenant", "name": "openstackDemo", "id": "53740c8a0e964bc798ccc5eed0698f01"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "", "region": "RegionOne", "internalURL": "", "id": "590792816d5340edbedc49f208eddb00", "publicURL": ""}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "", "region": "RegionOne", "internalURL": "", "id": "e1f4365f5f014c04bf6d3c8a326104ff", "publicURL": ""}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "", "region": "RegionOne", "internalURL": "", "id": "f8d4b02461ba425890c5baf3f55cabc0", "publicURL": ""}], "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints": [{"adminURL": "", "region": "RegionOne", "internalURL": "", "id": "da2ff145e7ec47318092eaa6623f06da", "publicURL": ""}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "", "region": "RegionOne", "internalURL": "", "id": "cb0f436025bf4e15b81b6d38bd9dcb5f", "publicURL": ""}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "", "region": "RegionOne", "internalURL": "", "id": "1929ed84589749e0929095233bfad27e", "publicURL": ""}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "8f3eff6d15de4b43b73222705a1cc559", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["22ffb0ef3f5d42098e51ee4a997c7d87"]}}}

REQ: curl -i ( -X GET -H "X-Auth-Project-Id: openstackDemo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 8cf69b66b8ea49bda6980ef5078d3e19"

connect: (, 8776) send: u'GET /v1/53740c8a0e964bc798ccc5eed0698f01/volumes/detail HTTP/1.1\r\nHost:\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: 8cf69b66b8ea49bda6980ef5078d3e19\r\naccept-encoding: gzip, deflate\r ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-01-11 20:58:12 -0500

keith-tobin gravatar image

I had a look at the log info you posted, as you will have seeing, you are getting a auth token from keystone just fine, then the request is sent to cinder, here it fails, giving you a 400. Can you post the cinder logs, depending on config the should be in /var/log/cinder/ and also make sure that debug is set to true in cinder config before log is created.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-01-09 12:52:20 -0500

Seen: 724 times

Last updated: Jan 11 '13