neutron/neutron/tests/unit/agent/l3
Slawek Kaplonski 3b2b7f4fe7 Remove update_initial_state() method from the HA router
This method was intended to check state of the HA router on the
node and update it in the neutron server.
Patch [1] added check of the initial status to the
neutron_keepalived_state_change_monitor process.
It also could cause some race conditions and event which is setting
correct state of the router will be not processed thus router may endup
with two nodes with "primary" state in the Neutron's DB.

Neutron_keepalived_state_change_monitor was notifying agent about
router's initial state only if this state was 'primary'.
Now it will notify agent always to let agent set router's state as
'backup' if needed (that was previously done by this removed
update_initial_state() method).

[1] https://review.opendev.org/c/openstack/neutron/+/642295

Conflicts:
    neutron/agent/l3/ha_router.py
    neutron/agent/l3/keepalived_state_change.py
    neutron/tests/unit/agent/l3/test_dvr_local_router.py

Change-Id: I2cc58c30cf844ee0ecf0611ecdec430086464790
Closes-Bug: #1916022
(cherry picked from commit 0d8ae15767)
2021-02-27 18:20:15 +00:00
..
extensions Agent - Conntrack Helper 2019-08-29 10:41:13 +02:00
__init__.py Move extra routes processing to router classes 2015-02-05 10:25:45 -05:00
test_agent.py Fix migration from the HA to non-HA routers 2020-11-19 10:53:33 +00:00
test_dvr_fip_ns.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_dvr_local_router.py Remove update_initial_state() method from the HA router 2021-02-27 18:20:15 +00:00
test_dvr_snat_ns.py Switch ip link command to pyroute2 2018-03-24 22:42:00 +00:00
test_fip_rule_priority_allocator.py Merge "Removed unnecessary setUp calls in tests" 2017-08-29 23:57:56 +00:00
test_ha_router.py Remove update_initial_state() method from the HA router 2021-02-27 18:20:15 +00:00
test_item_allocator.py DVR: Check for item_allocator key before releasing 2018-04-04 11:47:41 -07:00
test_l3_agent_extension_api.py Add router_factory to l3-agent and L3 extension API 2019-04-26 10:22:50 +09:00
test_legacy_router.py Remove deprecated send_arp_for_ha option 2017-04-18 13:38:35 -04:00
test_link_local_allocator.py Preserve DVR FIP rule priority over Agent restarts 2015-08-12 15:52:19 -05:00
test_namespace_manager.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
test_router_info.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00