From 8997a2d106a26fa1c643824b0c2638aedd05159a Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Thu, 10 Dec 2020 11:48:36 -0500 Subject: Disable pod stats tests in containerized Fedora w/ CGroupsV1 Nearly/all of the 'podman stats' tests fail on Fedora when executing testing inside a container, and CGroupsV1 is used on the host. The typical failure message is of the form `Error: unable to load cgroup at /machine.slice/.../: cgroup deleted`. Note: Recently updated F32 (prior-fedora) and Ubuntu 20.04 (prior-ubuntu) VMs always use CGroupsV1 with runc. F33 and Ubuntu 20.10 were updated to always use CGroupsV2 with crun. Signed-off-by: Chris Evich --- test/e2e/pod_stats_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/e2e/pod_stats_test.go b/test/e2e/pod_stats_test.go index 41fc59267..85a60b29b 100644 --- a/test/e2e/pod_stats_test.go +++ b/test/e2e/pod_stats_test.go @@ -20,6 +20,9 @@ var _ = Describe("Podman pod stats", func() { if os.Geteuid() != 0 { SkipIfCgroupV2("--cgroup-manager=cgroupfs which doesn't work in rootless mode") } + if isContainerized() { + SkipIfCgroupV1("All tests fail Error: unable to load cgroup at ...: cgroup deleted") + } tempdir, err = CreateTempDirInTempDir() if err != nil { -- cgit v1.2.3-54-g00ecf