Browse code

split up stop_nova to isolate stop_nova_compute

Split stop_nova into: stop_nova_compute and stop_nova_rest. This is
needed to support the partial-ncpu grenade test where we want to stop
everything but nova_compute.

Patch in master: I6a21821277e56897d705ca5746806e2211632d12

Change-Id: I031707a49974df684cc473737ceb07cecc262c66

Joe Gordon authored on 2014/03/13 02:38:15
Showing 1 changed files
... ...
@@ -660,19 +660,26 @@ function start_nova() {
660 660
         screen_it n-obj "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-objectstore"
661 661
 }
662 662
 
663
-# stop_nova() - Stop running processes (non-screen)
664
-function stop_nova() {
663
+function stop_nova_compute {
664
+    if is_service_enabled n-cpu && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; then
665
+        stop_nova_hypervisor
666
+    fi
667
+}
668
+
669
+function stop_nova_rest {
665 670
     # Kill the nova screen windows
666 671
     # Some services are listed here twice since more than one instance
667 672
     # of a service may be running in certain configs.
668 673
     for serv in n-api n-cpu n-crt n-net n-sch n-novnc n-xvnc n-cauth n-spice n-cond n-cond n-cell n-cell n-api-meta; do
669 674
         screen_stop $serv
670 675
     done
671
-    if is_service_enabled n-cpu && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; then
672
-        stop_nova_hypervisor
673
-    fi
674 676
 }
675 677
 
678
+# stop_nova() - Stop running processes (non-screen)
679
+function stop_nova() {
680
+    stop_nova_rest
681
+    stop_nova_compute
682
+}
676 683
 
677 684
 # Restore xtrace
678 685
 $XTRACE