From 218c4104d989374a884af6d1d62d5da6604f5b2a Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Mon, 17 Nov 2014 14:06:11 +0000 Subject: Add instances dir to nova home directory required by nova-compute --- openstack/usr/share/openstack/openstack-nova-setup | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- cgit v1.2.1