From e78d80ea0d9f7133b7d8f10a6380f4a5e7eda98e Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Thu, 20 Jan 2022 15:09:27 +0100 Subject: [PATCH] kata-monitor: silently ignore CHMOD events on the sandboxes fs We currently WARN about unexpected fs events, which includes CHMOD operations (which should be actually expected...). Just ignore all the fs events we don't care about without any warn. We dump all the events with debug log in any case. Signed-off-by: Francesco Giudici --- src/runtime/pkg/kata-monitor/monitor.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/runtime/pkg/kata-monitor/monitor.go b/src/runtime/pkg/kata-monitor/monitor.go index c5c166d942..593a15c887 100644 --- a/src/runtime/pkg/kata-monitor/monitor.go +++ b/src/runtime/pkg/kata-monitor/monitor.go @@ -113,9 +113,6 @@ func (km *KataMonitor) startPodCacheUpdater() { "REMOVE event but pod was missing from the sandbox cache") } monitorLog.WithField("pod", id).Info("sandbox cache: removed pod") - - default: - monitorLog.WithField("event", event).Warn("got unexpected fs event") } // While we process fs events directly to update the sandbox cache we need to sync with the