Ask Your Question
0

cinder list/ cinder create Error

asked 2013-05-01 16:25:33 -0500

khoivu gravatar image

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 ... (more)

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2013-05-01 16:27:07 -0500

khoivu gravatar image

Here are error in file /var/log/api.log

2013-04-26 10:41:45 ERROR cinder.api.openstack [req-5413c638-472b-4731-8f48-f5da746fc1ba 82e5f815c6d64a47916be10aae890926 93d99faec60246899e1f4ae20b00c504] Caught error: 'RequestContext' object has no attribute 'service_catalog' 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack Traceback (most recent call last): 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/cinder/api/openstack/__init__.py", line 78, in __call__ 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack return req.get_response(self.application) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/request.py", line 1053, in get_response 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack application, catch_exc_info=False) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/request.py", line 1022, in call_application 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack app_iter = application(self.environ, start_response) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 159, in __call__ 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack return resp(environ, start_response) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/keystone/middleware/auth_token.py", line 278, in __call__ 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack return self.app(env, start_response) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 159, in __call__ 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack return resp(environ, start_response) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 159, in __call__ 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack return resp(environ, start_response) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/Routes-1.12.3-py2.6.egg/routes/middleware.py", line 131, in __call__ 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack response = self.app(environ, start_response) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 159, in __call__ 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack return resp(environ, start_response) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 147, in __call__ 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack resp = self.call_func(req, args, *self.kwargs) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/WebOb-1.0.8-py2.6.egg/webob/dec.py", line 208, in call_func 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack return self.func(req, args, *kwargs) 2013-04-26 10:41:45 4512 TRACE cinder.api.openstack File "/usr/lib/python2.6/site-packages/cinder/api ... (more)

edit flag offensive delete link more
0

answered 2013-05-03 05:08:44 -0500

shantha-kumar gravatar image
  1. Ensure your cinder service is running by checking the process list "ps -ef | grep cinder".

  2. Unset the proxy you have for the session or for entire bash using "unset http_proxy"

edit flag offensive delete link more
0

answered 2013-05-03 05:12:52 -0500

shantha-kumar gravatar image
  1. You can check the session environment variables using "env" comand in terminal, there you can see what are proxy is said.

If you have proxy set, then cinder looks for that particular proxy, so you need to unset all the proxy to get cinder from keystone

Hope this would resolve the issue.

edit flag offensive delete link more
0

answered 2013-05-03 14:43:48 -0500

khoivu gravatar image

I checked "ps -ef | grep cinder". There are two cinder processes are running: cinder-api and cinder-scheduler. The env command does not show any http_proxy set.

Is there any cinder process associated with openstack-cinder-volume? I did not see any cinder-volume with the ps command.

By the way, I found this error in the dmesg:

kvm: KVM_EXIT_LOAD_IA32 PERF_GLOBAL_CTRL does not work properly. Using Workaround.

Tracing on this error leads to this https://bugs.launchpad.net/ubuntu/+so... and this https://bugzilla.redhat.com/show_bug.... . Could this error cause the issue that I am facing?

edit flag offensive delete link more
0

answered 2013-05-05 05:28:02 -0500

shantha-kumar gravatar image

As a part of your cinder processes, cinder volume service should also run along with cinder-api and cinder-scheduler.

ensure cinder volume is running by service cinder-volume status if its not running its problem with cinder.conf file

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-05-01 16:25:33 -0500

Seen: 180 times

Last updated: May 05 '13