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.
This commit is contained in:
Nicolas Thauvin
2020-12-16 16:46:14 +01:00
committed by GitHub
parent 583fccfb34
commit 492f755bd5
+1
View File
@@ -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.