systemctl daemon-reload removes cgroups under devices and blkio

Posted on

Hello,

We have a system where application services use cgroups but after a recent (yum) update on RHEL8 we are having issues with the changed cgroups behaviour. systemctl daemon-reload removes user created cgroup directory under devices and blkio controller and causes applications to not function properly. Is there a problem in the way we're using cgroups or is there a regression in behaviour?

Following is a demonstration of the problem where the devices cgroup behaves differently to memory cgroup.

$ sudo mkdir /sys/fs/cgroup/devices/test
$ ls -ld /sys/fs/cgroup/devices/test
drwxr-xr-x. 2 root root 0 Feb 27 03:14 /sys/fs/cgroup/devices/test
$ sudo systemctl daemon-reload
$ ls -ld /sys/fs/cgroup/devices/test
ls: cannot access '/sys/fs/cgroup/devices/test': No such file or directory

$ sudo mkdir /sys/fs/cgroup/memory/test
$ ls -ld /sys/fs/cgroup/memory/test
drwxr-xr-x. 2 root root 0 Feb 27 06:32 /sys/fs/cgroup/memory/test
$ sudo systemctl daemon-reload
$ ls -ld /sys/fs/cgroup/memory/test
drwxr-xr-x. 2 root root 0 Feb 27 06:32 /sys/fs/cgroup/memory/test

Responses