commit 8fec1ffc833eba9b3fc5f812bf881f44b4beba0c
Author: Slawek Kaplonski <email address hidden>
Date: Sun Mar 10 22:45:15 2019 +0100
Set initial ha router state in neutron-keepalived-state-change
Sometimes in case of HA routers it may happend that
keepalived will set status of router to MASTER before
neutron-keepalived-state-change daemon will spawn "ip monitor"
to monitor changes of IPs in router's namespace.
In such case neutron-keepalived-state-change process will never
notice that keepalived set router to be MASTER and L3 agent will
not be notified about that so router will not be configured properly.
To avoid such race condition neutron-keepalived-state-change will
now check if VIP address is already configured on ha interface
before it will spawn "ip monitor". If it is already configured
by keepalived, it will notify L3 agent that router is set to
MASTER.
Reviewed: https:/ /review. openstack. org/642295 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=8fec1ffc833 eba9b3fc5f812bf 881f44b4beba0c
Committed: https:/
Submitter: Zuul
Branch: master
commit 8fec1ffc833eba9 b3fc5f812bf881f 44b4beba0c
Author: Slawek Kaplonski <email address hidden>
Date: Sun Mar 10 22:45:15 2019 +0100
Set initial ha router state in neutron- keepalived- state-change
Sometimes in case of HA routers it may happend that keepalived- state-change daemon will spawn "ip monitor"
keepalived will set status of router to MASTER before
neutron-
to monitor changes of IPs in router's namespace.
In such case neutron- keepalived- state-change process will never
notice that keepalived set router to be MASTER and L3 agent will
not be notified about that so router will not be configured properly.
To avoid such race condition neutron- keepalived- state-change will
now check if VIP address is already configured on ha interface
before it will spawn "ip monitor". If it is already configured
by keepalived, it will notify L3 agent that router is set to
MASTER.
Change-Id: Ie3fe825d65408f c969c478767b411 fe0156e9fbc
Closes-Bug: #1818614