[centos9] cgroup parent change for systemd slice breaks virtlogd_wrapper and nova_libvirt containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
In Progress
|
High
|
David Vallee Delisle |
Bug Description
In centos8/rhel8, containers created with systemd as cgroup-managers are stored like this under /sys/fs/cgroup [1]
In centos9 they are all stored under /sys/fs/
When nova_virtlogd_
Error: create directory `/sys/fs/
If we add --cgroup-
Error: writing file `/sys/fs/
If we add --cgroup-
Error: systemd slice received as cgroup parent when using cgroupfs: invalid argument
If we try this --cgroup-
Error: writing file `/sys/fs/
So it looks like the virtlogd_wrapper container is not using the same cgroup format as the host itself.
What's interesting is that we can confirm that it's the same version of podman called in both the host and the container [2] when it's called with nsenter but when we don't call nsenter, we see the difference in version [3].
Workaround for this issue would be to NovaEnableVirtl
[1]
~~~
[root@undercloud-0 ~]# find /sys/fs/cgroup/ -maxdepth 3 -type d -name libpod\* | cut -f 1-5 -d "/" | sort | uniq
/sys/fs/
/sys/fs/
/sys/fs/
/sys/fs/
/sys/fs/
/sys/fs/
/sys/fs/
/sys/fs/
/sys/fs/
/sys/fs/cgroup/pids
/sys/fs/
~~~
[2]
~~~
[root@standalone stdouts]# diff -u <(rpm -qa | grep pod) <(podman exec -u0 nova_virtlogd_
[root@standalone stdouts]# diff -u <(podman info) <(podman exec -u0 nova_virtlogd_
--- /dev/fd/63 2021-07-13 22:13:06.223105268 +0000
+++ /dev/fd/62 2021-07-13 22:13:06.225105271 +0000
@@ -27,7 +27,7 @@
uidmap: null
kernel: 5.13.0-1.el9.x86_64
linkmode: dynamic
- memFree: 8744153088
+ memFree: 8710406144
memTotal: 15712301056
ociRuntime:
name: crun
@@ -55,7 +55,7 @@
version: ""
swapFree: 1073737728
swapTotal: 1073737728
- uptime: 25m 7.44s
+ uptime: 25m 7.53s
registries:
192.
Blocked: false
~~~
[3]
~~~
[root@standalone stdouts]# diff -u <(rpm -qa | grep pod) <(podman exec -u0 nova_virtlogd_
--- /dev/fd/63 2021-07-13 22:14:32.258239798 +0000
+++ /dev/fd/62 2021-07-13 22:14:32.258239798 +0000
@@ -1,4 +1,3 @@
-perl-podlators
-ansible-
-podman-
-podman-
+podman-
+perl-podlators
+podman-
~~~
Changed in tripleo: | |
status: | Confirmed → In Progress |
summary: |
[centos9] cgroup parent change for systemd slice breaks virtlogd_wrapper + and nova_libvirt containers |
Changed in tripleo: | |
importance: | Undecided → High |
Related fix proposed to branch: master /review. opendev. org/c/openstack /puppet- tripleo/ +/800731
Review: https:/