diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2014-11-17 14:06:11 +0000 |
---|---|---|
committer | Richard Ipsum <richardipsum@fastmail.co.uk> | 2014-11-27 18:12:14 +0000 |
commit | 218c4104d989374a884af6d1d62d5da6604f5b2a (patch) | |
tree | 76cfa27bf0b73d7af1430c1e142393afe26abc95 | |
parent | a8f263dc868bb91ad399acb749d59f2435ac093e (diff) | |
download | definitions-218c4104d989374a884af6d1d62d5da6604f5b2a.tar.gz |
Add instances dir to nova home directory required by nova-compute
-rw-r--r-- | openstack/usr/share/openstack/openstack-nova-setup | 6 |
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. |