From 492f755bd5c9f37e87164e59079d11d57c06ef44 Mon Sep 17 00:00:00 2001 From: Nicolas Thauvin Date: Wed, 16 Dec 2020 16:46:14 +0100 Subject: [PATCH] Warn the user when the required watchdog is not healthy (#1779) When the watchdog device is not writable or missing in required mode, the member cannot be promoted. It only keeps logging that it is not the healthiest member. Add a warning to show the user where to search for this misconfiguration. --- patroni/ha.py | 1 + 1 file changed, 1 insertion(+) diff --git a/patroni/ha.py b/patroni/ha.py index 4a38bd74..2f17cfb9 100644 --- a/patroni/ha.py +++ b/patroni/ha.py @@ -782,6 +782,7 @@ class Ha(object): return self.manual_failover_process_no_leader() if not self.watchdog.is_healthy: + logger.warning('Watchdog device is not usable') return False # When in sync mode, only last known master and sync standby are allowed to promote automatically.