[Openstack] create custom devstack setup with new backend enabled

Nikesh Kumar Mahalka nikeshmahalka at vedams.com
Mon Jul 28 12:04:26 UTC 2014


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

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




More information about the Openstack mailing list