commit e2d3a94018b771963dad83c36d4209cfb7f7a427
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.
Change-Id: Ie3fe825d65408fc969c478767b411fe0156e9fbc
Closes-Bug: #1818614
(cherry picked from commit 8fec1ffc833eba9b3fc5f812bf881f44b4beba0c)
Reviewed: https:/ /review. openstack. org/645278 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=e2d3a94018b 771963dad83c36d 4209cfb7f7a427
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit e2d3a94018b7719 63dad83c36d4209 cfb7f7a427
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 b3fc5f812bf881f 44b4beba0c)
Closes-Bug: #1818614
(cherry picked from commit 8fec1ffc833eba9