diff --git a/handlers/main.yml b/handlers/main.yml index 8547259b..f9fa432f 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -35,7 +35,9 @@ for ns_pid in $(pgrep neutron-ns-meta); do echo $(readlink -f "/proc/$ns_pid/exe") | grep -qv "{{ neutron_venv_tag }}" if [ $? -eq 0 ]; then - (echo "old metadata proxy pid found running clean up on $ns_pid"; kill -9 "$ns_pid") + if kill -9 "$ns_pid"; then + logger -s "old metadata proxy pid found and has been cleaned up on: \"$ns_pid\"" + fi fi done when: neutron_services['neutron-metadata-agent'].service_en | bool