Ask Your Question
1

create custom devstack setup with new backend enabled

asked 2014-07-28 06:51:06 -0500

nikesh gravatar image

updated 2014-07-28 07:03:26 -0500

I want to deploy Juno Devstack with my own cinder volume driver for my client backend.

I am not getting my driver information updated in cinder.conf file under "enabled_backends" in [DEFAULT] header. so cinder volume service is not ruuning for my backend. Any help or suggestion will be helpful. Below are the steps i followed:

1)git clone https://github.com/openstack-dev/devstack.git (https://github.com/openstack-dev/devs...)

2)cd devstack

3)vi local.conf

[[local|localrc]]

ADMIN_PASSWORD=some_password DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_TOKEN=ADMIN #FLAT_INTERFACE = eth0 FIXED_RANGE=192.168.2.80/29 #FLOATING_RANGE=192.168.20.0/25 HOST_IP=192.168.2.64 LOGFILE=$DEST/logs/stack.sh.log SCREEN_LOGDIR=$DEST/logs/screen SYSLOG=True SYSLOG_HOST=$HOST_IP SYSLOG_PORT=516 RECLONE=yes CINDER_ENABLED_BACKENDS = client:client_driver

[[post-config|$CINDER_CONF]]

[client_driver] volume_driver = cinder.volume.drivers.san.client.iscsi.client_iscsi.ClientISCSIDriver san_ip = 192.168.2.192 san_login = some_name san_password =some_password client_iscsi_ips = 192.168.2.193

4)./stack.sh

5) checking the contents of cinder.conf cat /etc/cinder/cinder.conf

[keystone_authtoken] auth_uri = http://192.168.2.64:5000/v2.0 signing_dir = /var/cache/cinder admin_password = vedams123 admin_user= cinder admin_tenant_name = service cafile = identity_uri = http://192.168.2.64:35357

[DEFAULT] rabbit_password = some_password rabbit_hosts =192.168.2.64 rpc_backend = cinder.openstack.common.rpc.impl_kombu use_syslog = True default_volume_type = lvm enabled_backends = lvmdriver-1 enable_v1_api = true periodic_interval= 60 lock_path = /opt/stack/data/cinder state_path = /opt/stack/data/cinder osapi_volume_extension = cinder.api.contrib.standard_extensions rootwrap_config = /etc/cinder/rootwrap.conf api_paste_config = /etc/cinder/api-paste.ini sql_connection = mysql://root:some_password@127.0.0.1/cinder?charset=utf8 iscsi_helper = tgtadm my_ip = 192.168.2.64 verbose = True debug = True auth_strategy = keystone

[lvmdriver-1] volume_group = stack-volumes-lvmdriver-1 volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver volume_backend_name = lvmdriver-1

[client_driver] volume_driver = cinder.volume.drivers.san.client.iscsi.client_iscsi.ClientISCSIDriver san_ip = 192.168.2.192 san_login = some_name san_password =some_password client_iscsi_ips = 192.168.2.193

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-13 00:29:15 -0500

xiangfeiz gravatar image

I think you need to add a file called devstack/lib/cinder_backends/client and fill it with something similar in lvm, nfs, ceph. Without this, devstack still uses lvm as the only backend. Hope the answer is not too late.

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: 2014-07-28 06:51:06 -0500

Seen: 759 times

Last updated: Jul 28 '14