Unable to get cinder running
I have installed Openstack Havana release on Ubuntu 12.04 (LTS) Server. Everything is ok except Cinder I am unable to get it running.
cinder-api and cinder-scheduler are installed on the controller node (oscontroller1). cinder-volume is installed on a compute node (oscompute13).
Creating a volume fails. cinder-scheduler.log: 2014-02-12 09:21:19.462 32390 INFO cinder.openstack.common.rpc.common [req-b4b3a1ee-49fc-43ff-8ee0-8aa80f235986 None None] Connected to AMQP server on oscontroller1:5672 2014-02-12 09:59:03.242 32390 WARNING cinder.scheduler.host_manager [req-9b1037db-51dc-4e14-9d0b-2442e58e70de 97ff23a4764947b391c087e734dad3fb c384862ff4f548b38e8f5acefbfc1e76] volume service is down or disabled. (host: oscompute13) 2014-02-12 09:59:03.243 32390 ERROR cinder.volume.flows.create_volume [req-9b1037db-51dc-4e14-9d0b-2442e58e70de 97ff23a4764947b391c087e734dad3fb c384862ff4f548b38e8f5acefbfc1e76] Failed to schedule_create_volume: No valid host was found.
root@oscontroller1:~# cinder service-list +------------------+---------------+------+---------+-------+----------------------------+ | Binary | Host | Zone | Status | State | Updated_at | +------------------+---------------+------+---------+-------+----------------------------+ | cinder-scheduler | oscontroller1 | nova | enabled | up | 2014-02-12T09:00:42.000000 | | cinder-volume | oscompute13 | nova | enabled | down | 2014-02-12T09:03:16.000000 | +------------------+---------------+------+---------+-------+----------------------------+
Here is my conf:
On the controller: /etc/cinder/cinder.conf [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 = VG-CINDER verbose = True auth_strategy = keystone #state_path = /var/lib/cinder #lock_path = /var/lock/cinder #volumes_dir = /var/lib/cinder/volumes rpc_backend = cinder.openstack.common.rpc.impl_kombu rabbit_host = oscontroller1 rabbit_port = 5672 rabbit_userid = guest rabbit_password = guest [database] connection = mysql://cinder:cinder@oscontroller1/cinder
api-paste.ini (controller):
[composite:osapi_volume] use = call:cinder.api:root_app_factory /: apiversions /v1: openstack_volume_api_v1 /v2: openstack_volume_api_v2 [composite:openstack_volume_api_v1] use = call:cinder.api.middleware.auth:pipeline_factory noauth = faultwrap sizelimit noauth apiv1 keystone = faultwrap sizelimit authtoken keystonecontext apiv1 keystone_nolimit = faultwrap sizelimit authtoken keystonecontext apiv1 [composite:openstack_volume_api_v2] use = call:cinder.api.middleware.auth:pipeline_factory noauth = faultwrap sizelimit noauth apiv2 keystone = faultwrap sizelimit authtoken keystonecontext apiv2 keystone_nolimit = faultwrap sizelimit authtoken keystonecontext apiv2 [filter:faultwrap] paste.filter_factory = cinder.api.middleware.fault:FaultWrapper.factory [filter:noauth] paste.filter_factory = cinder.api.middleware.auth:NoAuthMiddleware.factory [filter:sizelimit] paste.filter_factory = cinder.api.middleware.sizelimit:RequestBodySizeLimiter.factory [app:apiv1] paste.app_factory = cinder.api.v1.router:APIRouter.factory [app:apiv2] paste.app_factory = cinder.api.v2.router:APIRouter.factory [pipeline:apiversions] pipeline = faultwrap osvolumeversionapp [app:osvolumeversionapp] paste.app_factory = cinder.api.versions:Versions.factory ##########
Shared
########## [filter:keystonecontext] paste.filter_factory = cinder.api.middleware.auth:CinderKeystoneContext.factory [filter:authtoken] paste.filter_factory=keystoneclient.middleware.auth_token:filter_factory auth_host=oscontroller1 auth_port = 35357 auth_protocol = http admin_tenant_name=service admin_user=cinder admin_password=cinder
signing_dir is configurable, but the default behavior of the authtoken
middleware should be sufficient. It will create a temporary directory
in the home directory for the user the cinder process is running as.
#signing_dir = /var/lib/cinder/keystone-signing
On the compute node:
cinder.conf:
[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 = VG-CINDER debug=True verbose = True auth_strategy = keystone state_path = /var/lib/cinder lock_path = /var/lock/cinder volumes_dir = /var/lib/cinder/volumes rpc_backend = cinder.openstack.common.rpc.impl_kombu rabbit_host = oscontroller1 rabbit_port = 5672 rabbit_userid = guest rabbit_password = guest [database] connection = mysql://cinder:cinder@oscontroller1/cinder
api-paste.ini (compute):
[composite:osapi_volume] use = call:cinder.api:root_app_factory /: apiversions /v1: openstack_volume_api_v1 /v2: openstack_volume_api_v2 [composite:openstack_volume_api_v1] use = call:cinder.api.middleware.auth:pipeline_factory noauth = faultwrap sizelimit noauth ...
i have the same problem also in juno version,but did not solve it,GOD , keep going .Now ,I had solved it ,TIME SYNC AND REBOOT ,HAHA