summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-11-14 16:19:36 +0000
committerRichard Ipsum <richardipsum@fastmail.co.uk>2014-11-27 18:12:13 +0000
commit2f011cb023c37a445c9bf6a67dd7f6024e6e64d4 (patch)
tree128f9ca9a2d6f4f9762010359bd5c1941658561f
parentb6a33d76ae27f3c980e2c8b9b2a42cf3366cb87d (diff)
downloaddefinitions-2f011cb023c37a445c9bf6a67dd7f6024e6e64d4.tar.gz
Add read-write permissions for libvirt-sock
-rw-r--r--openstack/usr/share/openstack/openstack-nova-setup15
1 files changed, 11 insertions, 4 deletions
diff --git a/openstack/usr/share/openstack/openstack-nova-setup b/openstack/usr/share/openstack/openstack-nova-setup
index 5bb5ce9f..4e4adcd9 100644
--- a/openstack/usr/share/openstack/openstack-nova-setup
+++ b/openstack/usr/share/openstack/openstack-nova-setup
@@ -56,17 +56,21 @@ if [ ! -d /var/lock/nova ]; then
chown -R nova:nova /var/lock/nova
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.
#modprobe nbd
-#systemctl start openstack-nova-compute
+systemctl start openstack-nova-compute
+systemctl start openstack-nova-conductor
#systemctl start openstack-nova-api
#systemctl start openstack-nova-cert
#systemctl start openstack-nova-consoleauth
#systemctl start openstack-nova-scheduler
-#systemctl start openstack-nova-conductor
#systemctl start openstack-nova-novncproxy
# TODO, need to start more nova services.
@@ -74,8 +78,11 @@ fi
ln -s "/etc/systemd/system/openstack-nova-compute.service" \
"/etc/systemd/system/multi-user.target.wants/openstack-nova-compute.service"
-ln -s "/etc/systemd/system/openstack-nova-api.service" \
- "/etc/systemd/system/multi-user.target.wants/openstack-nova-api.service"
+ln -s "/etc/systemd/system/openstack-nova-conductor.service" \
+ "/etc/systemd/system/multi-user.target.wants/openstack-nova-conductor.service"
+
+#ln -s "/etc/systemd/system/openstack-nova-api.service" \
+# "/etc/systemd/system/multi-user.target.wants/openstack-nova-api.service"
#ln -s "/etc/systemd/system/openstack-nova-api.service" \
# "/etc/systemd/system/multi-user.target.wants/openstack-nova-api.service"