Merge "Do not kill ipsec on L3 cleanup"
This commit is contained in:
commit
807c0e1212
@ -62,7 +62,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