From 2c14cdfb9c34c541a1b3a180ad2a625514300977 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Fri, 28 Feb 2014 09:11:12 -0500 Subject: cinder: enable glusterfs backend This patch adds glusterfs backend into multi-backend cinder support (total of lvm-iscsi, nfs, and glusterfs). This including changing cinder.conf, creating missing glusterfs_shares config file, and adding glusterfs-client into compute/controller node and gluster-server into controller node. Also meta-filesystems is included to pickup fuse filesytem which is needed by glusterfs. Signed-off-by: Vu Tran Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-cinder/cinder.conf | 6 +++++- .../recipes-devtools/python/python-cinder/glusterfs_setup.sh | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh (limited to 'meta-openstack/recipes-devtools/python/python-cinder') diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf index aa0eba5..6190ec5 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf +++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf @@ -1173,7 +1173,7 @@ rabbit_port=5672 # Define the names of the groups for multiple volume backends #enabled_backends=fakedriver,lvmdriver -enabled_backends=lvmdriver,nfsdriver +enabled_backends=lvmdriver,nfsdriver,glusterfsdriver # Define the groups as above #[fakedriver] @@ -1189,4 +1189,8 @@ volume_group=nfs-group-1 volume_driver=cinder.volume.drivers.nfs.NfsDriver volume_backend_name=Generic_NFS +[glusterfsdriver] +volume_group=glusterfs-group-1 +volume_driver=cinder.volume.drivers.glusterfs.GlusterfsDriver +volume_backend_name=GlusterFS # Total option count: 255 diff --git a/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh b/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh new file mode 100644 index 0000000..30997d1 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +# Default setup +if [ "$1" == "1" ]; then + mkdir /etc/cinder/glusterfs_volumes + /etc/init.d/glusterd start + gluster volume create glusterfs_volumes controller:/etc/cinder/glusterfs_volumes force + gluster volume start glusterfs_volumes force + /etc/init.d/glusterd stop +fi -- cgit v1.2.3-54-g00ecf