Merge "Stop neutron services more explicitly"
This commit is contained in:
commit
f9222da73f
@ -748,13 +748,21 @@ function start_neutron_agents {
|
|||||||
# stop_neutron() - Stop running processes (non-screen)
|
# stop_neutron() - Stop running processes (non-screen)
|
||||||
function stop_neutron {
|
function stop_neutron {
|
||||||
if is_service_enabled q-dhcp; then
|
if is_service_enabled q-dhcp; then
|
||||||
|
stop_process q-dhcp
|
||||||
pid=$(ps aux | awk '/[d]nsmasq.+interface=(tap|ns-)/ { print $2 }')
|
pid=$(ps aux | awk '/[d]nsmasq.+interface=(tap|ns-)/ { print $2 }')
|
||||||
[ ! -z "$pid" ] && sudo kill -9 $pid
|
[ ! -z "$pid" ] && sudo kill -9 $pid
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
stop_process q-svc
|
||||||
|
stop_process q-l3
|
||||||
|
|
||||||
if is_service_enabled q-meta; then
|
if is_service_enabled q-meta; then
|
||||||
sudo pkill -9 -f neutron-ns-metadata-proxy || :
|
sudo pkill -9 -f neutron-ns-metadata-proxy || :
|
||||||
|
stop_process q-meta
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
stop_process q-agt
|
||||||
|
|
||||||
if is_service_enabled q-lbaas; then
|
if is_service_enabled q-lbaas; then
|
||||||
neutron_lbaas_stop
|
neutron_lbaas_stop
|
||||||
fi
|
fi
|
||||||
|
@ -23,7 +23,7 @@ function neutron_agent_metering_configure_agent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function neutron_metering_stop {
|
function neutron_metering_stop {
|
||||||
:
|
stop_process q-metering
|
||||||
}
|
}
|
||||||
|
|
||||||
# Restore xtrace
|
# Restore xtrace
|
||||||
|
@ -28,6 +28,7 @@ function neutron_vpn_stop {
|
|||||||
if [ -n "$pids" ]; then
|
if [ -n "$pids" ]; then
|
||||||
sudo kill $pids
|
sudo kill $pids
|
||||||
fi
|
fi
|
||||||
|
stop_process q-vpn
|
||||||
}
|
}
|
||||||
|
|
||||||
# Restore xtrace
|
# Restore xtrace
|
||||||
|
Loading…
Reference in New Issue
Block a user