diff options
author | Vu Tran <vu.tran@windriver.com> | 2014-02-28 09:11:11 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-17 14:23:47 -0400 |
commit | b7527a3c0b5ab0849a0c669cb345c6494628da8f (patch) | |
tree | 23fcc12de79885d56acfa3a159127b0cafa2522b /meta-openstack/recipes-devtools/python/python-cinder | |
parent | 386984449b5ba4ce3899950e7a3b1bded9b891d0 (diff) | |
download | meta-cloud-services-b7527a3c0b5ab0849a0c669cb345c6494628da8f.tar.gz |
cinder: enable nfs backend
This patch enables multi-backend support (lvm-iscsi and nfs) on
cinder-volume. This including changing cinder.conf, creating
missing nfs_shares config file, and adding mount.nfs into compute
node image.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/cinder.conf | 14 | ||||
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh | 7 |
2 files changed, 17 insertions, 4 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf index d922e03..aa0eba5 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf +++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf | |||
@@ -1173,14 +1173,20 @@ rabbit_port=5672 | |||
1173 | 1173 | ||
1174 | # Define the names of the groups for multiple volume backends | 1174 | # Define the names of the groups for multiple volume backends |
1175 | #enabled_backends=fakedriver,lvmdriver | 1175 | #enabled_backends=fakedriver,lvmdriver |
1176 | enabled_backends=lvmdriver,nfsdriver | ||
1176 | 1177 | ||
1177 | # Define the groups as above | 1178 | # Define the groups as above |
1178 | #[lvmdriver] | ||
1179 | #volume_group=lvm-group-1 | ||
1180 | #volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver | ||
1181 | #volume_backend_name=LVM_iSCSI_unique1 | ||
1182 | #[fakedriver] | 1179 | #[fakedriver] |
1183 | #volume_driver=cinder.volume.driver.FakeISCSIDriver | 1180 | #volume_driver=cinder.volume.driver.FakeISCSIDriver |
1184 | 1181 | ||
1182 | [lvmdriver] | ||
1183 | volume_group=cinder-volumes | ||
1184 | volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver | ||
1185 | volume_backend_name=LVM_iSCSI | ||
1186 | |||
1187 | [nfsdriver] | ||
1188 | volume_group=nfs-group-1 | ||
1189 | volume_driver=cinder.volume.drivers.nfs.NfsDriver | ||
1190 | volume_backend_name=Generic_NFS | ||
1185 | 1191 | ||
1186 | # Total option count: 255 | 1192 | # Total option count: 255 |
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh b/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh new file mode 100644 index 0000000..1d7c475 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | #! /bin/bash | ||
2 | |||
3 | # Default setup | ||
4 | if [ "$1" == "1" ]; then | ||
5 | mkdir /etc/cinder/nfs_volumes | ||
6 | echo "/etc/cinder/nfs_volumes *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)" >> /etc/exports | ||
7 | fi | ||