From 0ffdfbdbd72ae447eb4b5e3d0f255c5498a07a36 Mon Sep 17 00:00:00 2001 From: "Lubosz \"diltram\" Kosnik" Date: Tue, 2 Aug 2016 16:35:22 -0500 Subject: [PATCH] Run n-cpu using LXD_GROUP when LXD virt driver Enabling nova-lxd require to run n-cpu using lxd group Change-Id: I0553dafcc797fcc1342501a558c7455261cf3daf --- lib/nova | 2 ++ stackrc | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lib/nova b/lib/nova index 67a80b9b16..8fe4c29d86 100644 --- a/lib/nova +++ b/lib/nova @@ -825,6 +825,8 @@ function start_nova_compute { # ``sg`` is used in run_process to execute nova-compute as a member of the # **$LIBVIRT_GROUP** group. run_process n-cpu "$NOVA_BIN_DIR/nova-compute --config-file $compute_cell_conf" $LIBVIRT_GROUP + elif [[ "$VIRT_DRIVER" = 'lxd' ]]; then + run_process n-cpu "$NOVA_BIN_DIR/nova-compute --config-file $compute_cell_conf" $LXD_GROUP elif [[ "$VIRT_DRIVER" = 'fake' ]]; then local i for i in `seq 1 $NUMBER_FAKE_NOVA_COMPUTE`; do diff --git a/stackrc b/stackrc index acb7d3f650..b5d1bc0b6c 100644 --- a/stackrc +++ b/stackrc @@ -586,6 +586,9 @@ case "$VIRT_DRIVER" in LIBVIRT_GROUP=libvirtd fi ;; + lxd) + LXD_GROUP=${LXD_GROUP:-"lxd"} + ;; fake) NUMBER_FAKE_NOVA_COMPUTE=${NUMBER_FAKE_NOVA_COMPUTE:-1} ;;