summaryrefslogtreecommitdiff
path: root/openstack/usr/share/openstack/openstack-cinder-setup
diff options
context:
space:
mode:
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