diff --git a/lib/nova b/lib/nova index 096d380e03..10bf4726ac 100644 --- a/lib/nova +++ b/lib/nova @@ -755,7 +755,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