summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder/add-cinder-volume-types.sh10
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder_git.bb2
2 files changed, 12 insertions, 0 deletions
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 @@
1#! /bin/bash
2
3cinder type-create lvm_iscsi
4cinder type-key lvm_iscsi set volume_backend_name=LVM_iSCSI
5cinder type-create nfs
6cinder type-key nfs set volume_backend_name=Generic_NFS
7cinder type-create glusterfs
8cinder type-key glusterfs set volume_backend_name=GlusterFS
9cinder type-create cephrbd
10cinder 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 \
15 file://nfs_setup.sh \ 15 file://nfs_setup.sh \
16 file://glusterfs_setup.sh \ 16 file://glusterfs_setup.sh \
17 file://lvm_iscsi_setup.sh \ 17 file://lvm_iscsi_setup.sh \
18 file://add-cinder-volume-types.sh \
18 " 19 "
19 20
20SRCREV="8b5fb8409322f61d8b610c97c109a61bf48a940e" 21SRCREV="8b5fb8409322f61d8b610c97c109a61bf48a940e"
@@ -45,6 +46,7 @@ do_install_append() {
45 install -m 600 ${WORKDIR}/nfs_setup.sh ${CINDER_CONF_DIR}/drivers/ 46 install -m 600 ${WORKDIR}/nfs_setup.sh ${CINDER_CONF_DIR}/drivers/
46 install -m 600 ${WORKDIR}/glusterfs_setup.sh ${CINDER_CONF_DIR}/drivers/ 47 install -m 600 ${WORKDIR}/glusterfs_setup.sh ${CINDER_CONF_DIR}/drivers/
47 install -m 600 ${WORKDIR}/lvm_iscsi_setup.sh ${CINDER_CONF_DIR}/drivers/ 48 install -m 600 ${WORKDIR}/lvm_iscsi_setup.sh ${CINDER_CONF_DIR}/drivers/
49 install -m 700 ${WORKDIR}/add-cinder-volume-types.sh ${CINDER_CONF_DIR}/
48 50
49 install -d ${D}${localstatedir}/log/${SRCNAME} 51 install -d ${D}${localstatedir}/log/${SRCNAME}
50 52