diff --git a/lib/nova b/lib/nova index 4d0688a0f9..122f17e547 100644 --- a/lib/nova +++ b/lib/nova @@ -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