summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-21 15:26:39 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-22 12:46:31 +0000
commitd7ab16bbdb561831fbbc5541a59a731479c6476a (patch)
tree02d690bcccb0d46a04b72892f744fa43739a051c
parentcb392805e57c0df9673b87702c3e4d30dc3f604f (diff)
downloaddefinitions-d7ab16bbdb561831fbbc5541a59a731479c6476a.tar.gz
Add nova to the libvirt group
-rw-r--r--openstack/usr/share/openstack/openstack-nova-setup6
1 files changed, 2 insertions, 4 deletions
diff --git a/openstack/usr/share/openstack/openstack-nova-setup b/openstack/usr/share/openstack/openstack-nova-setup
index bc3c0157..345d5585 100644
--- a/openstack/usr/share/openstack/openstack-nova-setup
+++ b/openstack/usr/share/openstack/openstack-nova-setup
@@ -66,16 +66,14 @@ if [ ! -e /var/lib/nova/nova.sqlite ]; then
sudo -u nova nova-manage db sync
fi
-# Nova compute needs to write in /var/run/libvirt/libvirt-sock
-# to start the hypervisor
-chmod 766 /var/run/libvirt/libvirt-sock
-
# Nova novncproxy needs /usr/share/novnc folder available
if [ ! -d /usr/share/novnc ]; then
mkdir /usr/share/novnc
chown -R nova:nova /usr/share/novnc
fi
+# Add nova to the libvirt group
+usermod -a -G libvirt nova
# Check existence of Network Block Device module in the kernel
# NOTE: modprobe does not work actually and returns always