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 <fgiudici@redhat.com>
This commit is contained in:
Francesco Giudici 2021-08-30 15:56:13 +02:00
parent 53ec4df953
commit fc067d61d4

View File

@ -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
}