neutron/neutron/agent/l3
Rodolfo Alonso Hernandez 7682d2fa77 Delay HA router transition from "backup" to "master"
As described in the bug, when a HA router transitions from "master" to
"backup", "keepalived" processes will set the virtual IP in all other
HA routers. Each HA router will then advert it and "keepalived" will
decide, according to a trivial algorithm (higher interface IP), which
one should be "master". At this point, the other "keepalived" processes
running in the other servers, will remove the HA router virtual IP
assigned an instant before

To avoid transitioning some routers form "backup" to "master" and then
to "backup" in a very short period, this patch delays the "backup" to
"master" transition, waiting for a possible new "backup" state. If
during the waiting period (set to the HA VRRP advert time, 2 seconds
default) to set the HA state to "master", the L3 agent receives a new
"backup" HA state, the L3 agent does nothing.

Conflicts:
    neutron/agent/l3/agent.py

Closes-Bug: #1837635

Change-Id: I70037da9cdd0f8448e0af8dd96b4e3f5de5728ad
(cherry picked from commit 3f022a193f)
(cherry picked from commit adac5d9b7a)
2020-04-09 21:14:53 +02:00
..
extensions Not process port forwarding if no snat functionality 2019-04-30 01:39:50 +00:00
__init__.py Move classes out of l3_agent.py 2014-12-10 15:19:28 -07:00
agent.py Delay HA router transition from "backup" to "master" 2020-04-09 21:14:53 +02:00
dvr.py Revert "DVR: Fix allowed_address_pair IP, ARP table update by neutron agent" 2018-06-07 15:32:20 +00:00
dvr_edge_ha_router.py Do not initialize snat-ns twice 2020-02-25 01:54:15 +00:00
dvr_edge_router.py Do not initialize snat-ns twice 2020-02-25 01:54:15 +00:00
dvr_fip_ns.py DVR: Correctly change MTU in fip namespace 2019-04-12 06:27:23 +00:00
dvr_local_router.py Packets getting lost during SNAT with too many connections 2019-06-04 23:23:07 +00:00
dvr_router_base.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
dvr_snat_ns.py Switch isolated metadata proxy to bind to 169.254.169.254 2019-02-12 10:30:25 +00:00
fip_rule_priority_allocator.py Fix two spelling mistakes 2016-05-30 01:58:04 +00:00
ha.py Delay HA router transition from "backup" to "master" 2020-04-09 21:14:53 +02:00
ha_router.py Delay HA router transition from "backup" to "master" 2020-04-09 21:14:53 +02:00
item_allocator.py DVR: Check for item_allocator key before releasing 2018-04-04 11:47:41 -07:00
keepalived_state_change.py Remove rootwrap configuration from neutron-keepalived-state-change 2019-05-21 20:30:35 +00:00
l3_agent_extension_api.py Merge "Add a new method get_router_info to L3 agent extension API" 2017-10-22 17:00:22 +00:00
l3_agent_extensions_manager.py Add a new method ha_state_change to L3 agent extension 2017-10-18 09:41:38 +07:00
legacy_router.py Remove deprecated send_arp_for_ha option 2017-04-18 13:38:35 -04:00
link_local_allocator.py spelling error: 2016-06-30 10:17:18 +08:00
namespace_manager.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
namespaces.py Disable IPv6 forwarding by default on HA routers 2018-05-31 20:19:21 +00:00
router_info.py [L3] Switch order of processing added and removed router ports 2020-01-10 08:11:14 +00:00