From ba6ad1c804815c7485b1fc08a0a3655e06dbb4d7 Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Mon, 30 Aug 2021 15:56:13 +0200 Subject: [PATCH] kata-monitor: warn when unable to retrive the lower level runtime this is an unexpected event (likely a change in how containerd/cri-o record the lower level runtime in the pod) and should be more visible: raise the log level to "warning". Signed-off-by: Francesco Giudici (cherry picked from commit fc067d61d4d8b2c08f90b432b75e8ef8780d6a3c) --- src/runtime/pkg/kata-monitor/cri.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/pkg/kata-monitor/cri.go b/src/runtime/pkg/kata-monitor/cri.go index dbc6621328..a06faad676 100644 --- a/src/runtime/pkg/kata-monitor/cri.go +++ b/src/runtime/pkg/kata-monitor/cri.go @@ -186,7 +186,7 @@ func (km *KataMonitor) getSandboxes() (map[string]struct{}, error) { // Safest options is to add the POD in the list: we will be able to connect to the shim to retrieve the actual info // only for kata PODs. if lowRuntime == "" { - monitorLog.WithField("pod", r).Info("unable to retrieve the runtime type") + monitorLog.WithField("pod", r).Warning("unable to retrieve the runtime type") sandboxMap[pod.Id] = struct{}{} continue }