neutron/neutron
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
..
agent Merge "dhcp/agent: add more detail to a todo note regarding call_driver" 2023-07-28 07:18:15 +00:00
api Merge "Fix some new pylint "R" warnings" 2023-07-28 06:58:46 +00:00
cmd [OVN] Hash Ring: Better handle Neutron worker failures 2023-08-01 10:05:36 +01:00
common Default SG api rules template - DB and OVO models 2023-07-07 10:43:34 +02:00
conf Merge "Default SG api rules template - DB and OVO models" 2023-07-24 12:16:05 +00:00
core_extensions Revert "Set system_scope='all' in elevated context" 2021-06-15 10:29:20 +02:00
db [OVN] Hash Ring: Better handle Neutron worker failures 2023-08-01 10:05:36 +01:00
exceptions Change API to validate network MTU minimums 2023-04-26 12:22:30 -04:00
extensions Merge "Fix some new pylint "R" warnings" 2023-07-28 06:58:46 +00:00
hacking Fix some pylint indentation warnings 2022-12-12 11:48:25 -05:00
ipam Improve message for subnet gateway out of host IP addresses range 2023-01-30 18:43:24 -03:00
locale Imported Translations from Zanata 2023-05-16 03:00:56 +00:00
notifiers Fix some pylint indentation warnings 2022-12-12 11:48:25 -05:00
objects Merge "Fix some new pylint "R" warnings" 2023-07-28 06:58:46 +00:00
pecan_wsgi Fix some new pylint "R" warnings 2023-07-18 18:06:51 -04:00
plugins [OVN] Hash Ring: Better handle Neutron worker failures 2023-08-01 10:05:36 +01:00
privileged Fix get_link_devices() with index argument 2023-01-26 12:32:38 -05:00
profiling Fix some new pylint "E" warnings 2023-06-22 20:41:29 -04:00
quota [sqlalchemy-20] Add missing DB context decorator 2022-12-02 02:38:36 +01:00
scheduler [OVN] The L3 scheduler does not use all chassis by default 2023-05-25 15:26:31 +02:00
server Remove extra call to config_logging() for neutron-server 2023-02-02 02:25:00 +00:00
services Merge "Fix some new pylint "R" warnings" 2023-07-28 06:58:46 +00:00
tests [OVN] Hash Ring: Better handle Neutron worker failures 2023-08-01 10:05:36 +01:00
__init__.py Remove usage of six.PY2 2020-05-22 12:59:01 -04:00
_i18n.py
auth.py Add fake_project_id middleware for noauth 2021-07-05 21:18:09 +05:30
manager.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
neutron_plugin_base_v2.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
opts.py Add host metadata haproxy manager 2023-05-08 08:38:54 +08:00
policy.py Merge "Fix some new pylint "R" warnings" 2023-07-28 06:58:46 +00:00
service.py Fix some new pylint "R" warnings 2023-07-18 18:06:51 -04:00
version.py
worker.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
wsgi.py Fix some pylint indentation warnings 2022-07-01 17:52:59 -04:00