When l3 agent node is rebooted, if HA network port status is already
ACTIVE in DB, agent will get this status from server and then spawn
the keepalived (though l2 agent might not have wired the port),
resulting in multiple HA masters active at the same time.
To fix this, when the L3 agent starts up we can have it explicitly
set the port status to DOWN for all of the HA ports on that node.
Then we are guaranteed that when they go to ACTIVE it will be because
the L2 agent has wired the ports.
Reviewed: https:/ /review. openstack. org/470905 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=d730b101027 7138136512eb6ef b12ab893ca6793
Committed: https:/
Submitter: Jenkins
Branch: master
commit d730b1010277138 136512eb6efb12a b893ca6793
Author: venkata anil <email address hidden>
Date: Mon Jun 5 09:56:18 2017 +0000
Set HA network port to DOWN when l3 agent starts
When l3 agent node is rebooted, if HA network port status is already
ACTIVE in DB, agent will get this status from server and then spawn
the keepalived (though l2 agent might not have wired the port),
resulting in multiple HA masters active at the same time.
To fix this, when the L3 agent starts up we can have it explicitly
set the port status to DOWN for all of the HA ports on that node.
Then we are guaranteed that when they go to ACTIVE it will be because
the L2 agent has wired the ports.
Closes-bug: #1597461 43a414f3db48829 14b12170d53
Change-Id: Ib0c8a71b6ff97e