Do not kill ipsec on L3 cleanup
In case VPNaaS driver is enabled ipsec process also runs as part of the l3 agent service and should not be touched by the handler. Change-Id: I86655567810c61dbed0415afd2e7ff343f20c736 (cherry picked from commit 3912bf3a5f04d90323ea821a7ae3a04a57b3fe33)
This commit is contained in:
parent
e74527d8d7
commit
d5cf90ef01
@ -61,7 +61,7 @@
|
||||
shell: |
|
||||
cgroup_path=$(findmnt -t cgroup2 -r -n -f -o target)
|
||||
for ns_pid in $(cat ${cgroup_path}/neutron.slice/neutron-l3-agent.service/cgroup.procs); do
|
||||
echo $(readlink -f "/proc/$ns_pid/exe") | egrep -qv "keepalived|haproxy"
|
||||
echo $(readlink -f "/proc/$ns_pid/exe") | egrep -qv "keepalived|haproxy|ipsec"
|
||||
if [ $? -eq 0 ] || [ "{{ neutron_l3_cleanup_on_shutdown | bool }}" = "True" ]; then
|
||||
if kill -9 "$ns_pid"; then
|
||||
logger -s "old neutron-l3-agent pid found and has been cleaned up on: \"$ns_pid\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user