diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2022-03-03 13:23:07 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-03-30 13:34:17 -0400 |
commit | f002a0c8898bf187d5071b86ee0d1c5e07cf6416 (patch) | |
tree | ed6e290833ce2d41f6fbb801e584f5d6d93be7a1 /test/e2e | |
parent | 69543d6c7aff9b31d8ad3f151f05267aa34e8e6c (diff) | |
download | podman-f002a0c8898bf187d5071b86ee0d1c5e07cf6416.tar.gz podman-f002a0c8898bf187d5071b86ee0d1c5e07cf6416.tar.bz2 podman-f002a0c8898bf187d5071b86ee0d1c5e07cf6416.zip |
libpod: pods do not use cgroups if --cgroups=disabled
do not attempt to use cgroups with pods if the cgroups are disabled.
A similar check is already in place for containers.
Closes: https://github.com/containers/podman/issues/13411
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/containers_conf_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/containers_conf_test.go b/test/e2e/containers_conf_test.go index bfed01854..09cd68042 100644 --- a/test/e2e/containers_conf_test.go +++ b/test/e2e/containers_conf_test.go @@ -562,6 +562,11 @@ var _ = Describe("Verify podman containers.conf usage", func() { inspect = podmanTest.Podman([]string{"inspect", "--format", "{{ .HostConfig.Cgroups }}", result.OutputToString()}) inspect.WaitWithDefaultTimeout() Expect(inspect.OutputToString()).To(Equal("disabled")) + + // Check we can also create a pod when cgroups=disabled + result = podmanTest.Podman([]string{"pod", "create"}) + result.WaitWithDefaultTimeout() + Expect(result).Should(Exit(0)) }) It("podman containers.conf runtime", func() { |