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 <cevich@redhat.com>
This commit is contained in:
Chris Evich 2020-12-10 11:48:36 -05:00
parent e6ab566574
commit 8997a2d106
No known key found for this signature in database
GPG key ID: 03EDC70FD578067F

View file

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