Comment 40 for bug 1953165

Revision history for this message
Florian Engelmann (engelmann) wrote :

Hi,

I am testing this patch with stable/zed, but it looks like this patch does delete those "dadfailed" interfaces but it does not start/restart the haproxy process in an affected netns.

for i in $(ip netns ls | awk '/qdhcp-/ { print $1}'); do PIDS="$(ip netns pids $i | xargs ps co command=)"; if [[ ! "$PIDS" =~ "haproxy" ]]; then echo $i; fi;done | sort
qdhcp-0614c965-c47d-47b4-bae2-acf24b191605
qdhcp-0b62624a-4be2-479a-9fe6-40d7fc5c9b83
qdhcp-0fb9e437-9d62-4144-9d5d-b2b062680b89
qdhcp-211261df-4c82-4d30-b460-7296e555758f
qdhcp-79c41e38-5a10-4de3-83e9-bd69c8f97092
qdhcp-a88e1f6d-df26-49c7-b562-52354decb3d2
qdhcp-c32bbe2e-bbdf-4ad7-87ff-1ab05881a3e5
qdhcp-e81fa39a-79af-4028-a5dd-df7cbc6ad762

cat /var/lib/docker/volumes/kolla_logs/_data/neutron/neutron-dhcp-agent.log | awk '/DAD failed/ { print $17}' | sort | uniq
qdhcp-0614c965-c47d-47b4-bae2-acf24b191605
qdhcp-0b62624a-4be2-479a-9fe6-40d7fc5c9b83
qdhcp-0fb9e437-9d62-4144-9d5d-b2b062680b89
qdhcp-211261df-4c82-4d30-b460-7296e555758f
qdhcp-79c41e38-5a10-4de3-83e9-bd69c8f97092
qdhcp-a88e1f6d-df26-49c7-b562-52354decb3d2
qdhcp-c32bbe2e-bbdf-4ad7-87ff-1ab05881a3e5
qdhcp-e81fa39a-79af-4028-a5dd-df7cbc6ad762

So every qdhcp netns with a dadfailed interface does not have its haproxy started.