You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debugging Hash Ring problems can be difficult challenge given that prior
to this patch the logs were very limited.
This patch improves the logging for this feature as follow:
1. Log when a node is added to the ring
2. Log when nodes are removed from the ring
3. Keep track the number of offline nodes and log it upon loading the
ring
4. Improve the "Hash Ring is empty" exception with the number of offline
nodes found (if 0, means the ovn_hash_ring table has no entries)
Closes-Bug: #2023670
Change-Id: Ic90432b5ddea8cf176de159ec7eaafd5fd7bdd6e
Signed-off-by: Lucas Alvares Gomes <[email protected]>
(cherry picked from commit afa20fa)
[OVN] The all() and count() methods should be inside a DB txn
The ``ovn_hash_ring_db`` methods ``get_active_nodes`` and
``count_offline_nodes`` are sending SQL requests that should be issued
from inside a READER context.
Closes-Bug: #2024447
Change-Id: If06c372a9d5cb1dc1ec1af768abb61f52c2c5abd
(cherry picked from commit 0c66dfa)
0 commit comments