neutron/neutron/cmd/ovn
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
..
__init__.py [OVN] Migrate the OVN tools 2020-01-22 13:23:28 +00:00
migration_mtu.py Fix some pylint indentation warnings 2022-12-12 11:48:25 -05:00
ml2ovn_trace.py Fix typos in log/error messages 2022-06-01 21:17:29 +05:30
neutron_ovn_db_sync_util.py [OVN] Hash Ring: Better handle Neutron worker failures 2023-08-01 10:05:36 +01:00