summaryrefslogtreecommitdiff
path: root/openstack/usr/share/openstack/openstack-cinder-setup
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-11-26 18:05:12 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-22 12:46:25 +0000
commit7cc8b05e7c234e227b16f291abeff1badc861784 (patch)
tree67c1a091ae424d702b6e0cf0445a44e1ce30e52f /openstack/usr/share/openstack/openstack-cinder-setup
parent3ff5e0f94e5e873f2f7bc796cfea6c8b0e9c67ab (diff)
downloaddefinitions-7cc8b05e7c234e227b16f291abeff1badc861784.tar.gz
FIXUPME: Create volumes directory for Cinder
Diffstat (limited to 'openstack/usr/share/openstack/openstack-cinder-setup')
-rw-r--r--openstack/usr/share/openstack/openstack-cinder-setup6
1 files changed, 6 insertions, 0 deletions
diff --git a/openstack/usr/share/openstack/openstack-cinder-setup b/openstack/usr/share/openstack/openstack-cinder-setup
index 8358e641..281481cd 100644
--- a/openstack/usr/share/openstack/openstack-cinder-setup
+++ b/openstack/usr/share/openstack/openstack-cinder-setup
@@ -66,6 +66,12 @@ if [ ! -e /var/lib/cinder/cinder.sqlite ]; then
sudo -u cinder cinder-manage db sync
fi
+# Create the volumes directory for cinder
+if [ ! -d /var/lib/cinder/volumes ]; then
+ mkdir -p /var/lib/cinder/volumes
+ chown -R cinder:cinder /var/lib/cinder/volumes
+fi
+
# Remove the one-shot setup service
rm /etc/systemd/system/multi-user.target.wants/openstack-cinder-setup.service