Merge "Stop n-cpu by correct process name /w fake"

This commit is contained in:
Jenkins 2014-10-09 00:59:21 +00:00 committed by Gerrit Code Review
commit af03045726

View File

@ -763,7 +763,14 @@ function start_nova {
}
function stop_nova_compute {
stop_process n-cpu
if [ "$VIRT_DRIVER" == "fake" ]; then
local i
for i in `seq 1 $NUMBER_FAKE_NOVA_COMPUTE`; do
stop_process n-cpu-${i}
done
else
stop_process n-cpu
fi
if is_service_enabled n-cpu && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; then
stop_nova_hypervisor
fi