Browse code

Merge "Stop neutron services more explicitly"

Jenkins authored on 2015/02/07 05:34:23
Showing 3 changed files
... ...
@@ -748,13 +748,21 @@ function start_neutron_agents {
748 748
 # stop_neutron() - Stop running processes (non-screen)
749 749
 function stop_neutron {
750 750
     if is_service_enabled q-dhcp; then
751
+        stop_process q-dhcp
751 752
         pid=$(ps aux | awk '/[d]nsmasq.+interface=(tap|ns-)/ { print $2 }')
752 753
         [ ! -z "$pid" ] && sudo kill -9 $pid
753 754
     fi
755
+
756
+    stop_process q-svc
757
+    stop_process q-l3
758
+
754 759
     if is_service_enabled q-meta; then
755 760
         sudo pkill -9 -f neutron-ns-metadata-proxy || :
761
+        stop_process q-meta
756 762
     fi
757 763
 
764
+    stop_process q-agt
765
+
758 766
     if is_service_enabled q-lbaas; then
759 767
         neutron_lbaas_stop
760 768
     fi
... ...
@@ -23,7 +23,7 @@ function neutron_agent_metering_configure_agent {
23 23
 }
24 24
 
25 25
 function neutron_metering_stop {
26
-    :
26
+    stop_process q-metering
27 27
 }
28 28
 
29 29
 # Restore xtrace
... ...
@@ -28,6 +28,7 @@ function neutron_vpn_stop {
28 28
     if [ -n "$pids" ]; then
29 29
         sudo kill $pids
30 30
     fi
31
+    stop_process q-vpn
31 32
 }
32 33
 
33 34
 # Restore xtrace