cinder list/ cinder create Error
I download Folsom and installed with 1 controller node (keystone, glance, cinder) and 2 compute nodes. All are Red Hat Enterprise 6.4 servers. Keystone and Glance work fine. Every installation verification for keystone and glance works as expected. However, Cinder is not working. Furthermore, keystone service-list and keystone endpoints-list list correct the endpoint provisioned for cinder service.
Here are the step I did to create a test volume for testing with cinder:
create a 2GB test loopfile /etc/cinder/cinder-volumes
dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=2G
mount it
losetup /dev/loop2 cinder-volumes
intialize it as an lvm 'physical volume' then create lvm 'volume group'
pvcreate /dev/loop2 vgcreate cinder-volumes /dev/loop2
display the lvm
vgdisplay cinder-volumes --- Volume group --- VG Name cinder-volumes System ID Format lvm2 Metadata Areas 1 .....
restart cinder services
service openstack-cinder-api restart service openstack-cinder-scheduler restart service openstack-cinder-volume restart
create a 1GB test volumes
cinder --debug create --display_name test 1
cinder list has same error
Below is the cinder.conf
[DEFAULT] logdir = /var/log/cinder rootwrap_config = /etc/cinder/rootwrap.conf sql_connection = postgres://cinder:123Kratos@localhost/cinder
api_paste_config=/etc/cinder/api-paste.ini iscsi_helper = tgtadm volume_name_template=volume-%s volume_group=cinder-volumes verbose=true debug=true auth_strategy=keystone
state_path = /var/lib/cinder lock_path = /var/lib/cinder/tmp #volumes_dir =/var/lib/cinder/volumes volumes_dir =/etc/cinder/volumes #rpc_backend = cinder.openstack.common.rpc.impl_qpid rpc_backend = cinder.openstack.common.rpc.impl_kombu volume_api_class=nova.volume.cinder.API enabled_apis=ec2,osapi_compute,metadata
rabbit_host = localhost rabbit_port = 5672 rabbit_use_ssl = false rabbit_userid=guest rabbit_password =changeit123 rabbit_virtual_host = / rabbit_notification_exchange = glance rabbit_notification_topic = glance_notifications rabbit_durable_queues = False
[keystone_authtoken] admin_tenant_name =service admin_user = cinder admin_password =cinder auth_host = 10.0.0.2 auth_port = 35357 auth_protocol = http #signing_dirname = /tmp/keystone-signing-cinder signing_dir = /var/lib/cinder
Below is 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 #use = call:cinder.api.middleware.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 service_protocol = http service_host = 10.0.0.2 service_port = 5000 auth_host = 10.0.0.2 auth_port=35357 auth_protocol=http auth_tenant_name=service admin_user=cinder admin_password=cinder
Below is the output from keystone service-list
+----------------------------------+----------+----------+---------------------------------+ | id | name | type | description | +----------------------------------+----------+----------+---------------------------------+ | 312cfdf5a64049a88c18befad90c80cd | cinder | volume | Cinder Volume Service | | 4bd303b56c0c4030aef24c51117af2f3 | ec2 | ec2 | EC2 Compatibility Layer Service | | 930256bb80944018b77af2438325a546 | nova | compute | Nova Compute Service | | b417e773998c494b9200d889a0358053 | glance | image | Glance Image Service | | c3d5332276f14a7b85e4b465b2092291 | keystone | identity | Keystone Identity Service | +----------------------------------+----------+----------+---------------------------------+
Below is output from keystone endpoint-list
+----------------------------------+---------+------------------------------------------------+------------------------------------------------+------------------------------------------------+----------------------------------+ | id | region | publicurl | internalurl | adminurl | service_id | +----------------------------------+---------+------------------------------------------------+------------------------------------------------+------------------------------------------------+----------------------------------+ | 18e873b8f1b6444385a1f85531ba068c | Region1 | http://oshead.dev.kratos:8773/service... | http://oshead.dev.kratos:8773/service... | http://oshead.dev.kratos:8773 ...