|
...
|
...
|
@@ -322,9 +322,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
|
|
322
|
322
|
# device - used to manage qcow images)
|
|
323
|
323
|
sudo modprobe nbd || true
|
|
324
|
324
|
sudo modprobe kvm || true
|
|
325
|
|
- # user needs to be member of libvirtd group for nova-compute to use libvirt
|
|
326
|
|
- ## FIXME: this doesn't affect the current shell so you end up with a failed
|
|
327
|
|
- ## launch of nova-compute
|
|
|
325
|
+ # User needs to be member of libvirtd group for nova-compute to use libvirt.
|
|
328
|
326
|
sudo usermod -a -G libvirtd `whoami`
|
|
329
|
327
|
# if kvm wasn't running before we need to restart libvirt to enable it
|
|
330
|
328
|
sudo /etc/init.d/libvirt-bin restart
|
|
...
|
...
|
@@ -404,7 +402,10 @@ screen_it g-api "cd $GLANCE_DIR; bin/glance-api --config-file=etc/glance-api.con
|
|
404
|
404
|
screen_it g-reg "cd $GLANCE_DIR; bin/glance-registry --config-file=etc/glance-registry.conf"
|
|
405
|
405
|
screen_it key "$KEYSTONE_DIR/bin/keystone --config-file $KEYSTONE_CONF"
|
|
406
|
406
|
screen_it n-api "$NOVA_DIR/bin/nova-api"
|
|
407
|
|
-screen_it n-cpu "$NOVA_DIR/bin/nova-compute"
|
|
|
407
|
+# launch nova-compute with a new bash, since user won't be a member of libvirtd
|
|
|
408
|
+# group in the current shell context (due to how linux works).
|
|
|
409
|
+# TODO: newgrp might work instead...
|
|
|
410
|
+screen_it n-cpu "bash -c $NOVA_DIR/bin/nova-compute"
|
|
408
|
411
|
screen_it n-net "$NOVA_DIR/bin/nova-network"
|
|
409
|
412
|
screen_it n-sch "$NOVA_DIR/bin/nova-scheduler"
|
|
410
|
413
|
# nova-vncproxy binds a privileged port, and so needs sudo
|