neutron/neutron/cmd
Lucas Alvares Gomes f2e3ab3805 [OVN] Hash Ring: Set nodes as offline upon exit
This patch implements the proposed solution from LP #2024205 where upon
a Neutron being killed, it could trigger the deletion of the entries
from the ovn_hash_ring table that matches the server hostname. When
this happens on all controllers this could lead to the ovn_hash_ring
being rendered empty which will result in ML2/OVN not processing any
OVSDB events.

Instead of removing the nodes from the ovn_hash_ring table at exit, this
patch changes the code to just mark them as offline instead. That way,
the nodes will remain registered in the table and the heartbeat thread
will set them as online again on the next beat. If the service is
stopped properly there won't be any heartbeat anymore and the nodes will
be seeing as offline by the Hash Ring Manager (same as if they were
deleted).

For more info see LP #2024205.

Closes-Bug: #2024205
Change-Id: I052841c87651773c4988fcf39f9f978094297704
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
2023-06-21 15:20:35 +01:00
..
eventlet [OVN] Implementation of OVN Neutron Agent 2023-01-26 07:41:38 +01:00
ovn [OVN] Hash Ring: Set nodes as offline upon exit 2023-06-21 15:20:35 +01:00
sanity `_get_ovn_version` returns a 3 element tuple 2023-04-28 18:34:21 +02:00
upgrade_checks Make "project_id" in "L3HARouterNetwork" unique constraint 2023-05-10 09:15:05 +02:00
__init__.py Fix logging error for Guru Meditation Report 2016-02-08 16:52:17 -08:00
destroy_patch_ports.py Use ovs constants from neutron-lib 2022-06-17 10:36:44 +05:30
ipset_cleanup.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
keepalived_state_change.py Replace keepalived notifier bash script with Python ip monitor 2015-03-18 18:59:33 -04:00
linuxbridge_cleanup.py Fix remaining typos in comments and tests 2022-07-06 21:20:27 +05:30
netns_cleanup.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
ovs_cleanup.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
pd_notify.py Fix pylint R1714 (consider-using-in) refactor messages 2019-02-21 21:11:34 +00:00
remove_duplicated_port_bindings.py Delete the PB level registers when deleting the duplicated PB 2023-01-02 11:05:12 +00:00
runtime_checks.py Add sanity check for keepalived gar on SIGHUP support 2022-12-27 13:24:43 +00:00
sanitize_port_binding_profile_allocation.py Fix some pylint indentation warnings 2022-12-12 11:48:25 -05:00
sanitize_port_mac_addresses.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
sanity_check.py Add support for localnet_learn_fdb OVN option 2023-04-13 12:01:18 +02:00
status.py Don't register config options on imports 2022-04-13 05:49:15 +00:00