diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-03-18 21:01:02 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-24 16:41:59 -0400 |
| commit | 9d2da32a9c7a3630c01c0e2360ee452860a5bdb7 (patch) | |
| tree | f89c4b991759bc3928fc3ae7e59bd5dd9d8da786 /meta-openstack/recipes-devtools | |
| parent | 3b5ec214c506a47cbd8abf7bd6557246980ddea5 (diff) | |
| download | meta-cloud-services-9d2da32a9c7a3630c01c0e2360ee452860a5bdb7.tar.gz | |
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 <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/add-cinder-volume-types.sh | 10 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder_git.bb | 2 |
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 | |||
| 3 | cinder type-create lvm_iscsi | ||
| 4 | cinder type-key lvm_iscsi set volume_backend_name=LVM_iSCSI | ||
| 5 | cinder type-create nfs | ||
| 6 | cinder type-key nfs set volume_backend_name=Generic_NFS | ||
| 7 | cinder type-create glusterfs | ||
| 8 | cinder type-key glusterfs set volume_backend_name=GlusterFS | ||
| 9 | cinder type-create cephrbd | ||
| 10 | 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 \ | |||
| 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 | ||
| 20 | SRCREV="8b5fb8409322f61d8b610c97c109a61bf48a940e" | 21 | SRCREV="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 | ||
