diff options
| author | Amy Fong <amy.fong@windriver.com> | 2014-07-24 13:04:41 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-07-25 15:45:30 -0400 |
| commit | 1491d54da84195dda8c7d5ce1fac21437f2bc519 (patch) | |
| tree | cc16576ec9471de2c9d18de8987f5a046971df0f /meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh | |
| parent | 3085fa57f54335cfa3794aaf1f45928f5300b000 (diff) | |
| download | meta-cloud-services-1491d54da84195dda8c7d5ce1fac21437f2bc519.tar.gz | |
openstack initscript: add reset
Some of the openstack data is associated with external resources
(ie glance may have external files), we explicitly invoke the delete commands on those
in additional to dropping and recreating the databases.
Signed-off-by: Amy Fong <amy.fong@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh b/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh index 30997d1..1c87ff9 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh +++ b/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh | |||
| @@ -1,7 +1,12 @@ | |||
| 1 | #! /bin/bash | 1 | #! /bin/bash |
| 2 | 2 | ||
| 3 | is_default=%IS_DEFAULT% | ||
| 4 | if [ $# -eq 1 ]; then | ||
| 5 | is_default=$1 | ||
| 6 | fi | ||
| 7 | |||
| 3 | # Default setup | 8 | # Default setup |
| 4 | if [ "$1" == "1" ]; then | 9 | if [ "$is_default" == "1" ]; then |
| 5 | mkdir /etc/cinder/glusterfs_volumes | 10 | mkdir /etc/cinder/glusterfs_volumes |
| 6 | /etc/init.d/glusterd start | 11 | /etc/init.d/glusterd start |
| 7 | gluster volume create glusterfs_volumes controller:/etc/cinder/glusterfs_volumes force | 12 | gluster volume create glusterfs_volumes controller:/etc/cinder/glusterfs_volumes force |
