Skip to content

Commit

Permalink
Merge "Run n-cpu using LXD_GROUP when LXD virt driver"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Sep 26, 2016
2 parents 6970022 + 0ffdfbd commit de0b611
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/nova
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,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
Expand Down
3 changes: 3 additions & 0 deletions stackrc
Original file line number Diff line number Diff line change
Expand Up @@ -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}
;;
Expand Down

0 comments on commit de0b611

Please sign in to comment.