From 429f61ad07521b85fe6a3c31bc62520ecdd20122 Mon Sep 17 00:00:00 2001 From: "Reusser Lukas (IT-OM-SDL-CLO)" Date: Mon, 19 Aug 2019 10:37:39 +0200 Subject: [PATCH] Restart count of 4 seems to be normal in our current environment with OpenShift 3.9 during node upgrades. If it get's over 7, we should have a look at it. --- daemon/client/checks/openshift.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/client/checks/openshift.go b/daemon/client/checks/openshift.go index 32c97b0..a276f3b 100644 --- a/daemon/client/checks/openshift.go +++ b/daemon/client/checks/openshift.go @@ -330,8 +330,8 @@ func CheckLoggingRestartsCount() error { for _, l := range strings.Split(string(out), "\n") { if !strings.HasPrefix(l, "RESTARTS") && len(strings.TrimSpace(l)) > 0 { cnt, _ := strconv.Atoi(l) - if cnt > 2 { - msg = "A logging-container has restart count bigger than 2 - " + strconv.Itoa(cnt) + if cnt > 7 { + msg = "A logging-container has restart count bigger than 7 - " + strconv.Itoa(cnt) isOk = false } }