Merge "Allow starting nova-compute manually"
This commit is contained in:
commit
a248d07f0a
35
lib/nova
35
lib/nova
@ -611,20 +611,10 @@ function start_nova_api() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# start_nova() - Start running processes, including screen
|
# start_nova_compute() - Start the compute process
|
||||||
function start_nova() {
|
function start_nova_compute() {
|
||||||
NOVA_CONF_BOTTOM=$NOVA_CONF
|
NOVA_CONF_BOTTOM=$NOVA_CONF
|
||||||
|
|
||||||
# ``screen_it`` checks ``is_service_enabled``, it is not needed here
|
|
||||||
screen_it n-cond "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-conductor"
|
|
||||||
|
|
||||||
if is_service_enabled n-cell; then
|
|
||||||
NOVA_CONF_BOTTOM=$NOVA_CELLS_CONF
|
|
||||||
screen_it n-cond "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-conductor --config-file $NOVA_CELLS_CONF"
|
|
||||||
screen_it n-cell-region "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-cells --config-file $NOVA_CONF"
|
|
||||||
screen_it n-cell-child "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-cells --config-file $NOVA_CELLS_CONF"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then
|
if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then
|
||||||
# The group **$LIBVIRT_GROUP** is added to the current user in this script.
|
# The group **$LIBVIRT_GROUP** is added to the current user in this script.
|
||||||
# Use 'sg' to execute nova-compute as a member of the **$LIBVIRT_GROUP** group.
|
# Use 'sg' to execute nova-compute as a member of the **$LIBVIRT_GROUP** group.
|
||||||
@ -640,6 +630,22 @@ function start_nova() {
|
|||||||
fi
|
fi
|
||||||
screen_it n-cpu "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-compute --config-file $NOVA_CONF_BOTTOM"
|
screen_it n-cpu "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-compute --config-file $NOVA_CONF_BOTTOM"
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# start_nova() - Start running processes, including screen
|
||||||
|
function start_nova_rest() {
|
||||||
|
NOVA_CONF_BOTTOM=$NOVA_CONF
|
||||||
|
|
||||||
|
# ``screen_it`` checks ``is_service_enabled``, it is not needed here
|
||||||
|
screen_it n-cond "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-conductor"
|
||||||
|
|
||||||
|
if is_service_enabled n-cell; then
|
||||||
|
NOVA_CONF_BOTTOM=$NOVA_CELLS_CONF
|
||||||
|
screen_it n-cond "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-conductor --config-file $NOVA_CELLS_CONF"
|
||||||
|
screen_it n-cell-region "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-cells --config-file $NOVA_CONF"
|
||||||
|
screen_it n-cell-child "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-cells --config-file $NOVA_CELLS_CONF"
|
||||||
|
fi
|
||||||
|
|
||||||
screen_it n-crt "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-cert"
|
screen_it n-crt "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-cert"
|
||||||
screen_it n-net "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-network --config-file $NOVA_CONF_BOTTOM"
|
screen_it n-net "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-network --config-file $NOVA_CONF_BOTTOM"
|
||||||
screen_it n-sch "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-scheduler --config-file $NOVA_CONF_BOTTOM"
|
screen_it n-sch "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-scheduler --config-file $NOVA_CONF_BOTTOM"
|
||||||
@ -656,6 +662,11 @@ function start_nova() {
|
|||||||
screen_it n-obj "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-objectstore"
|
screen_it n-obj "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-objectstore"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function start_nova() {
|
||||||
|
start_nova_compute
|
||||||
|
start_nova_rest
|
||||||
|
}
|
||||||
|
|
||||||
# stop_nova() - Stop running processes (non-screen)
|
# stop_nova() - Stop running processes (non-screen)
|
||||||
function stop_nova() {
|
function stop_nova() {
|
||||||
# Kill the nova screen windows
|
# Kill the nova screen windows
|
||||||
|
Loading…
Reference in New Issue
Block a user