neutron/neutron/tests/unit/db
Lucas Alvares Gomes 9e8e3a7867 [OVN] Hash Ring: Better handle Neutron worker failures
This patch implements a more resilient approach to handle the case
where Neutron API workers are killed and restarted. Instead of marking
all nodes for that host as offline, this patch tries to remove the
worker that was killed from the Hash Ring leaving all others nodes for
that host online.

In case the we fail to remove the node and another entry is added upon the
restart of the worker this patch also logs a clear critical log message to
alert the operator that there are more Hash Ring nodes than API workers
(it's expect to be the same) and that OVSDB events could go missing if
they are routed to the previous node that failed to be removed from the
ring.

Closes-Bug: #2024205
Change-Id: I4b7376cf7df45fcc6e487970b068d06b4e74e319
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
2023-08-01 10:05:36 +01:00
..
metering [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
quota Implement specific tracked resource count method per quota driver 2022-07-28 06:01:18 +02:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test__utils.py ``Session.autocommit`` parameter is removed 2022-08-10 17:15:04 +02:00
test_agents_db.py Set process name for agents 2020-07-01 12:28:29 +02:00
test_agentschedulers_db.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
test_allowedaddresspairs_db.py Switch to new engine facade in test_allowedaddresspairs_db module 2020-03-20 02:18:04 +01:00
test_db_base_plugin_common.py Replace to_dict() calls with a function decorator 2015-08-03 11:42:25 +03:00
test_db_base_plugin_v2.py [sqlalchemy-20] Network "repr" should be tested with any order 2023-07-07 03:13:17 +00:00
test_dvr_mac_db.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
test_extraroute_db.py Use payloads for ROUTER AFTER_ callbacks 2021-08-09 14:13:28 +00:00
test_ipam_backend_mixin.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
test_ipam_pluggable_backend.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
test_l3_db.py Don't allow deletion of the router ports without IP addresses 2023-06-26 14:31:52 +02:00
test_l3_dvr_db.py [OVN] Prevent Trunk creation/deletion with parent port bound 2023-06-30 14:51:27 +00:00
test_l3_extra_gws_db.py Allow Multiple External Gateways 2023-05-24 20:40:59 +03:00
test_l3_hamode_db.py Prevent router_ha_interface port from being removed via API 2023-02-23 15:25:27 +00:00
test_migration.py Replace "Inspector.from_engine()" with "sqlalchemy.inspect()" 2021-09-23 13:41:50 +00:00
test_ovn_hash_ring_db.py [OVN] Hash Ring: Better handle Neutron worker failures 2023-08-01 10:05:36 +01:00
test_ovn_revision_numbers_db.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
test_portsecurity_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_portsecurity_db_common.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_provisioning_blocks.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_rbac_db_mixin.py Initialize config in DietTestCase class 2023-07-19 12:58:58 +02:00
test_securitygroups_db.py Default SG api rules template - DB and OVO models 2023-07-07 10:43:34 +02:00
test_segments_db.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00