From 9d2da32a9c7a3630c01c0e2360ee452860a5bdb7 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Tue, 18 Mar 2014 21:01:02 -0400 Subject: cinder: add script for creating volume type Add a convenient script for creating Cinder volume types which are currently supported. Signed-off-by: Vu Tran --- .../python/python-cinder/add-cinder-volume-types.sh | 10 ++++++++++ meta-openstack/recipes-devtools/python/python-cinder_git.bb | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-cinder/add-cinder-volume-types.sh diff --git a/meta-openstack/recipes-devtools/python/python-cinder/add-cinder-volume-types.sh b/meta-openstack/recipes-devtools/python/python-cinder/add-cinder-volume-types.sh new file mode 100644 index 0000000..bc8f3a1 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/add-cinder-volume-types.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +cinder type-create lvm_iscsi +cinder type-key lvm_iscsi set volume_backend_name=LVM_iSCSI +cinder type-create nfs +cinder type-key nfs set volume_backend_name=Generic_NFS +cinder type-create glusterfs +cinder type-key glusterfs set volume_backend_name=GlusterFS +cinder type-create cephrbd +cinder type-key cephrbd set volume_backend_name=RBD_CEPH diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb index a06aca7..8b08dbb 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb @@ -15,6 +15,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ file://nfs_setup.sh \ file://glusterfs_setup.sh \ file://lvm_iscsi_setup.sh \ + file://add-cinder-volume-types.sh \ " SRCREV="8b5fb8409322f61d8b610c97c109a61bf48a940e" @@ -45,6 +46,7 @@ do_install_append() { install -m 600 ${WORKDIR}/nfs_setup.sh ${CINDER_CONF_DIR}/drivers/ install -m 600 ${WORKDIR}/glusterfs_setup.sh ${CINDER_CONF_DIR}/drivers/ install -m 600 ${WORKDIR}/lvm_iscsi_setup.sh ${CINDER_CONF_DIR}/drivers/ + install -m 700 ${WORKDIR}/add-cinder-volume-types.sh ${CINDER_CONF_DIR}/ install -d ${D}${localstatedir}/log/${SRCNAME} -- cgit v1.2.3-54-g00ecf