neutron/neutron/tests/unit
Slawek Kaplonski 02ad1b7909 Fix migration from the HA to non-HA routers
In case if during switching HA router to be down, there will be any
failure, router_info will be stored in L3 agent's cache as HaRouter.
In case when next update on the router is migration to non-HA router
this is wrong class and it causes other issues, e.g. with
remove_vip_by_ip_address() which is correct only for HA routers.

This patch fixes that issue by adding check of the router's ha and
distributed flags and update local cache with new router_info class
in case if at least one of those flags don't match.

Change-Id: Ib0d3a501f88c149baea7d715c7cfe5811bc85e4f
Closes-Bug: #1892846
(cherry picked from commit 489e0ead72)
2020-11-19 10:54:15 +00:00
..
agent Fix migration from the HA to non-HA routers 2020-11-19 10:54:15 +00:00
api Revert "[Security] fix allowed-address-pair 0.0.0.0/0 issue" 2020-11-17 14:34:08 +00:00
cmd More efficiently clean up OVS ports 2018-01-22 14:07:42 -06:00
common Packets getting lost during SNAT with too many connections 2019-06-04 23:23:43 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions use qos constants from neutron-lib 2017-10-26 19:57:19 +00:00
db Merge "Make _ensure_default_security_group method atomic" into stable/queens 2020-07-17 20:59:15 +00:00
debug Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
extensions Use dict .get() to avoid a KeyError in the segment plugin 2020-09-04 15:14:40 +02:00
hacking Use flake8-import-order plugin 2017-07-05 03:15:27 +00:00
ipam Update the processing of assigned addresses when assigning addresses 2020-06-19 10:10:41 +00:00
notifiers Add config option ``http_retries`` 2020-07-09 10:18:46 +00:00
objects Filter by owner SGs when retrieving the SG rules 2020-04-17 11:05:53 +00:00
plugins Merge "Local mac direct flow for non-openflow firewall" into stable/queens 2020-11-13 01:54:50 +00:00
privileged Switch create/delete interfaces to pyroute2 2020-04-27 21:41:02 +02:00
quota CountableResource: try count/get functions for all plugins 2017-09-08 10:50:12 -07:00
scheduler Fix sort issue in test_dhcp_agent_scheduler.test_filter_bindings 2019-08-12 08:17:01 +00:00
services Run revision bump operations en masse 2019-11-22 09:32:27 -05:00
tests Increase timeouts for OVSDB in functional tests 2019-09-13 10:57:41 +00:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
dummy_plugin.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
test_manager.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Fix handling of network:shared field in policy module 2019-05-10 17:21:57 +00:00
test_service.py use callback payloads for _SPAWN events 2017-12-21 11:03:36 -07:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py [Unit tests] Skip TestWSGIServer with IPv6 if no IPv6 enabled 2019-10-07 23:05:05 +00:00
testlib_api.py API compare-and-swap updates based on revision_number 2017-06-29 22:50:12 +00:00