openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #22438
Re: [Folfsom][Cinder] cinder list ERROR: Malformed request url (HTTP 400)
[(keystone_user)]$ cinder --debug list
connect: (158.109.65.21, 5000) ************
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 158.109.65.21:5000\r\nContent-Length: 97\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": "user", "passwordCredentials": {"username": "user", "password": "user"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Date: Fri, 05 Apr 2013 11:26:46 GMT
header: Transfer-Encoding: chunked
connect: (158.109.65.21, 8776) ************
send: u'GET /v1/\\e50f4b99747849bfade38bc8a7734731)/volumes/detail HTTP/1.1\r\nHost: 158.109.65.21:8776\r\nx-auth-project-id: user\r\nx-auth-token: a0712823eddc42b6b73dab6ae0a88097\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-cinderclient\r\n\r\n'
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Content-Length: 65
header: Content-Type: application/json; charset=UTF-8
header: X-Compute-Request-Id: req-3f84bc89-e5a0-47f7-b5b1-b1a9e4293eba
header: Date: Fri, 05 Apr 2013 11:26:46 GMT
DEBUG (shell:480) Malformed request url (HTTP 400) (Request-ID: req-3f84bc89-e5a0-47f7-b5b1-b1a9e4293eba)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cinderclient/shell.py", line 477, in main
OpenStackCinderShell().main(sys.argv[1:])
File "/usr/lib/python2.7/site-packages/cinderclient/shell.py", line 428, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/site-packages/cinderclient/v1/shell.py", line 143, in do_list
volumes = cs.volumes.list(search_opts=search_opts)
File "/usr/lib/python2.7/site-packages/cinderclient/v1/volumes.py", line 184, in list
"volumes")
File "/usr/lib/python2.7/site-packages/cinderclient/base.py", line 63, in _list
resp, body = self.api.client.get(url)
File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 162, in get
return self._cs_request(url, 'GET', **kwargs)
File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 131, in _cs_request
**kwargs)
File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 114, in request
raise exceptions.from_response(resp, body)
BadRequest: Malformed request url (HTTP 400) (Request-ID: req-3f84bc89-e5a0-47f7-b5b1-b1a9e4293eba)
ERROR: Malformed request url (HTTP 400) (Request-ID: req-3f84bc89-e5a0-47f7-b5b1-b1a9e4293eba)
[(keystone_user)]$
From: arindam@xxxxxxxx
To: openstack@xxxxxxxxxxxxxxxxxxx
Date: Fri, 5 Apr 2013 12:29:20 +0200
Subject: [Openstack] [Folfsom][Cinder] cinder list ERROR: Malformed request url (HTTP 400)
Hi,
I am trying to install OpenStack Folsom on Fedora 18. So far I have installed:
$ openstack-status
== Glance services ==
openstack-glance-api: active
openstack-glance-registry: active
== Keystone service ==
openstack-keystone: active
== Cinder services ==
openstack-cinder-api: active
openstack-cinder-scheduler: active
openstack-cinder-volume: active
== Support services ==
libvirtd: active
tgtd: active
qpidd: active
memcached: inactive (disabled on boot)
When I tried to run cinder list, I get this error:
[(keystone_user)]$ cinder list
ERROR: Malformed request url (HTTP 400) (Request-ID: req-3692a984-8750-47a5-a673-1db9d5fd217a)
The instructons I have followed are as follows:
# yum install openstack-cinder -y
# openstack-db --init --service cinder
# openstack-config --set /etc/cinder/cinder.conf DEFAULT auth_strategy keystone
# openstack-config --set /etc/cinder/cinder.conf keystone_authtoken admin_tenant_name admin
# openstack-config --set /etc/cinder/cinder.conf keystone_authtoken admin_user admin
# openstack-config --set /etc/cinder/cinder.conf keystone_authtoken admin_password admin
# grep -q /etc/cinder/volumes /etc/tgt/targets.conf || sed -i '1iinclude /etc/cinder/volumes/*' /etc/tgt/targets.conf
# service tgtd start
# chkconfig tgtd on
# truncate --size 20G ~/cinder-volumes
# losetup -fv ~/cinder-volumes
# vgcreate cinder-volumes /dev/loop0
No physical volume label read from /dev/loop0
Physical volume "/dev/loop0" successfully created
Volume group "cinder-volumes" successfully created
# vgdisplay cinder-volumes
--- Volume group ---
VG Name cinder-volumes
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 20.00 GiB
PE Size 4.00 MiB
Total PE 5119
Alloc PE / Size 0 / 0
Free PE / Size 5119 / 20.00 GiB
VG UUID lZc93K-lcJc-5kpx-okRC-eFxc-bRdp-jPKVhJ
# service openstack-cinder-api start
# service openstack-cinder-scheduler start
# service openstack-cinder-volume start
# chkconfig openstack-cinder-api on
# chkconfig openstack-cinder-scheduler on
# chkconfig openstack-cinder-volume on
# grep -i ERROR /var/log/cinder/*
# grep CRITICAL /var/log/cinder/*
$ source keystonerc_admin
[(keystone_admin)]$ keystone service-create --name=cinder --type=volume --description="Cinder Volume Service"
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| description | Cinder Volume Service |
| id | 35f0664f21c24e339dc5a59192033735 |
| name | cinder |
| type | volume |
+-------------+----------------------------------+
$ keystone endpoint-create --region RegionOne --service-id 35f0664f21c24e339dc5a59192033735 --publicurl 'http://192.168.122.215:8776/v1/\$(tenant_id)s)' --adminurl 'http://192.168.122.215:8776/v1/\$(tenant_id)s)' --internalurl 'http://192.168.122.215:8776/v1/\$(tenant_id)s)'
+-------------+----------------------------------------------+
| Property | Value |
+-------------+----------------------------------------------+
| adminurl | http://192.168.122.215:8776/v1/\$(tenant_id)s) |
| id | 5ce4f0a5f6874eb7a2a33265e2891a66 |
| internalurl | http://192.168.122.215:8776/v1/\$(tenant_id)s) |
| publicurl | http://192.168.122.215:8776/v1/\$(tenant_id)s) |
| region | RegionOne |
| service_id | 35f0664f21c24e339dc5a59192033735 |
+-------------+----------------------------------------------+
$ source keystonerc_user
[(keystone_user)]$ cinder list
ERROR: Malformed request url (HTTP 400) (Request-ID: req-6f1b6a0e-ca49-468e-85c0-1bbb063b3a2e)
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
Follow ups
References