diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2014-11-17 14:06:11 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-01-22 12:46:23 +0000 |
commit | 75f055dd68520b113a2fee799f7a9a28a68de2dd (patch) | |
tree | b3f3c77035edc28571b7658777649418a3f5f93a /openstack | |
parent | b8317806e01538ea099831f1222ca2e6a89520a1 (diff) | |
download | definitions-75f055dd68520b113a2fee799f7a9a28a68de2dd.tar.gz |
Add instances dir to nova home directory required by nova-compute
Diffstat (limited to 'openstack')
-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. |