From 4e662261ca270f53c811af04e1cdb07b60477563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Rigault?= Date: Sat, 17 Dec 2022 22:21:14 +0100 Subject: [PATCH] podman: add info log when returning OCF_NOT_RUNNING there are multiple cases where OCF_NOT_RUNNING is returned and unfortunately, there are rare cases where the container is, in fact, running. We add an info log so we have something to look at in case the heartbeat fails for seemingly no reason. --- heartbeat/podman | 1 + 1 file changed, 1 insertion(+) diff --git a/heartbeat/podman b/heartbeat/podman index 53867bff20..1e3bee482a 100755 --- a/heartbeat/podman +++ b/heartbeat/podman @@ -207,6 +207,7 @@ monitor_cmd_exec() # 255: podman 2+: container not running case "$rc" in 125|126|255) + ocf_log info "monitor cmd failed (rc=$rc), output: $out, assume container is not running" rc=$OCF_NOT_RUNNING ;; 0)