openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #22429
[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)
Follow ups