Terry Wilson
bb11a307c0
Add lock acquire/lost callbacks
It is common for workers to obtain an OVSDB lock to keep multiple
workers from doing maintenance tasks, like reconciling MySQL and
OVN DBs. If a worker attempts to do a reconcile at startup and
check's has_lock, it is possible that a stale lock from a previous
worker will cause it to skip its task.
Adding callbacks that fire on lock acquisition/loss resolves this
issue. In addition, there was a bug with wait_for_change where a
set_lock() call made before Connection.start() would cause
wait_for_change to return before the initial OVSDB DB dump, which
could allow operations on an empty DB. This is fixed by only
returning while in the MONITORING state.
Change-Id: Ic120b547ed31987cafc10c5c5f37f729349f2be1
Signed-off-by: Terry Wilson <twilson@redhat.com>
Assisted-by: Claude Opus 4.6
2026-08-18 18:56:07 +00:00
2025-12-29 21:30:07 +00:00
2026-08-18 18:56:07 +00:00
2026-03-04 18:25:35 +00:00
2026-08-06 17:45:02 -05:00
2026-07-23 12:03:37 +02:00
2018-07-10 16:23:46 +07:00
2019-04-19 19:43:59 +00:00
2024-05-06 12:23:45 +02:00
2025-11-04 14:55:01 +01:00
2023-03-16 15:29:18 +01:00
2026-07-23 12:24:39 -05:00
2019-09-05 09:17:05 +02:00
2018-08-23 09:03:54 -05:00
2017-02-24 15:02:19 -05:00
2025-12-24 18:36:44 +00:00
2025-12-29 21:30:07 +00:00
2024-05-10 10:20:22 +02:00
2025-12-24 18:36:44 +00:00
2025-12-22 16:09:49 +00:00
2025-06-10 21:41:41 +09:00
2017-07-13 19:51:31 +00:00
2026-07-12 02:32:42 +09:00