openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #19467
Folsom: cinder HTTP 400
Hi,
Yes that banging sound is my head on the desk. Having cinder issues, keystone's in place and verified as working, glance is verified as working so I know some auth with keystone's working.
Here's the error:
root@vagrant-precise-pangolin:~# cinder --debug create --display_name test 1
connect: (10.0.2.15, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.0.2.15:5000\r\nContent-Length: 103\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-cinderclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "password"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Date: Fri, 14 Dec 2012 13:25:16 GMT
header: Transfer-Encoding: chunked
connect: (localhost, 8776)
connect fail: (u'localhost', 8776)
DEBUG (shell:473) n/a (HTTP 400)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cinderclient/shell.py", line 470, in main
OpenStackCinderShell().main(sys.argv[1:])
File "/usr/lib/python2.7/dist-packages/cinderclient/shell.py", line 421, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/dist-packages/cinderclient/v1/shell.py", line 231, in do_create
metadata=volume_metadata)
File "/usr/lib/python2.7/dist-packages/cinderclient/v1/volumes.py", line 138, in create
return self._create('/volumes', body, 'volume')
File "/usr/lib/python2.7/dist-packages/cinderclient/base.py", line 149, in _create
resp, body = self.api.client.post(url, body=body)
File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 141, in post
return self._cs_request(url, 'POST', **kwargs)
File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 126, in _cs_request
**kwargs)
File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 109, in request
raise exceptions.from_response(resp, body)
BadRequest: n/a (HTTP 400)
ERROR: n/a (HTTP 400)
I'm running:
OS: Ubuntu 12.04LTS
Release: Folsom
Here's what I've got in my cinder.conf. Sql connection verified
[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
volumes_dir = /var/lib/cinder/volumes
sql_connection = mysql://cinder:password@127.0.0.1/password
osapi_volume_listen_port=5900
Here's what I've got in my api-paste.ini
#############
# Openstack #
#############
[composite:osapi_volume]
use = call:cinder.api.openstack.urlmap:urlmap_factory
/: osvolumeversions
/v1: openstack_volume_api_v1
[composite:openstack_volume_api_v1]
use = call:cinder.api.auth:pipeline_factory
noauth = faultwrap sizelimit noauth osapi_volume_app_v1
keystone = faultwrap sizelimit authtoken keystonecontext osapi_volume_app_v1
keystone_nolimit = faultwrap sizelimit authtoken keystonecontext osapi_volume_app_v1
[filter:faultwrap]
paste.filter_factory = cinder.api.openstack:FaultWrapper.factory
[filter:noauth]
paste.filter_factory = cinder.api.openstack.auth:NoAuthMiddleware.factory
[filter:sizelimit]
paste.filter_factory = cinder.api.sizelimit:RequestBodySizeLimiter.factory
[app:osapi_volume_app_v1]
paste.app_factory = cinder.api.openstack.volume:APIRouter.factory
[pipeline:osvolumeversions]
pipeline = faultwrap osvolumeversionapp
[app:osvolumeversionapp]
paste.app_factory = cinder.api.openstack.volume.versions:Versions.factory
##########
# Shared #
##########
[filter:keystonecontext]
paste.filter_factory = cinder.api.auth:CinderKeystoneContext.factory
[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
auth_host = 127.0.0.1
auth_port = 35357
service_host = 127.0.0.1
service_port = 5000
auth_protocol = http
admin_tenant_name = service
admin_user = cinder
admin_password = password
signing_dirname = /tmp/keystone-signing-nova
~
Any help would be gratefully received and will hasten the end of my head banging.
Thanks
Richard
Follow ups