summaryrefslogtreecommitdiff
path: root/openstack/usr/share/openstack/openstack-nova-setup
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/usr/share/openstack/openstack-nova-setup')
-rw-r--r--openstack/usr/share/openstack/openstack-nova-setup6
1 files changed, 6 insertions, 0 deletions
diff --git a/openstack/usr/share/openstack/openstack-nova-setup b/openstack/usr/share/openstack/openstack-nova-setup
index 4e4adcd9..a5ce7364 100644
--- a/openstack/usr/share/openstack/openstack-nova-setup
+++ b/openstack/usr/share/openstack/openstack-nova-setup
@@ -56,10 +56,16 @@ if [ ! -d /var/lock/nova ]; then
chown -R nova:nova /var/lock/nova
fi
+if [ ! -d /var/lib/nova/instances ]; then
+ mkdir /var/lib/nova/instances
+ chown -R nova:nova /var/lib/nova/instances
+fi
+
# Nova compute needs to write in /var/run/libvirt/libvirt-sock
# to start the hypervisor
chmod 766 /var/run/libvirt/libvirt-sock
+
# Check existence of Network Block Device module in the kernel
# NOTE: modprobe does not work actually and returns always
# failure, enable this check when modprobe is fixed.