aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2022-03-02 10:09:03 +0100
committerMatthew Heon <mheon@redhat.com>2022-03-30 15:36:05 -0400
commit4dbb2bf92b2b0a85e5506375267e8a3ccf937bc8 (patch)
tree4648cce86a6d8f48e4c2b98dfc8d90f54793a748 /libpod
parentef202133f512dfd40bf83ee1306039736ff74fcd (diff)
downloadpodman-4dbb2bf92b2b0a85e5506375267e8a3ccf937bc8.tar.gz
podman-4dbb2bf92b2b0a85e5506375267e8a3ccf937bc8.tar.bz2
podman-4dbb2bf92b2b0a85e5506375267e8a3ccf937bc8.zip
libpod: drop warning if cgroup doesn't exist
do not print a warning on cgroup removal if it doesn't exist. Closes: https://github.com/containers/podman/issues/13382 [NO NEW TESTS NEEDED] Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime_pod_linux.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/runtime_pod_linux.go b/libpod/runtime_pod_linux.go
index 230491c1a..2bbccfdf6 100644
--- a/libpod/runtime_pod_linux.go
+++ b/libpod/runtime_pod_linux.go
@@ -6,6 +6,7 @@ package libpod
import (
"context"
"fmt"
+ "os"
"path"
"path/filepath"
"strings"
@@ -239,7 +240,7 @@ func (r *Runtime) removePod(ctx context.Context, p *Pod, removeCtrs, force bool,
// Don't try if we failed to retrieve the cgroup
if err == nil {
- if err := conmonCgroup.Update(resLimits); err != nil {
+ if err := conmonCgroup.Update(resLimits); err != nil && !os.IsNotExist(err) {
logrus.Warnf("Error updating pod %s conmon cgroup PID limit: %v", p.ID(), err)
}
}