Bug 2174599 - daemon-reload or daemon-reexec obliterates custom subdirectories within blkio controller
Summary: daemon-reload or daemon-reexec obliterates custom subdirectories within blkio...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemd
Version: 8.7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: systemd maint
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-01 23:21 UTC by matt
Modified: 2023-08-14 11:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-150358 0 None None None 2023-03-01 23:22:46 UTC

Description matt 2023-03-01 23:21:27 UTC
Description of problem:

Issuing systemctl daemon-reexec or systemctl daemon-reload removes all groups in blkio controller. Groups within other controllers (memory, freezer, pids) are preserved on reload or re-exec.

Possibly related to #2164049.

Version-Release number of selected component (if applicable):
v239-68.el8_7.4

How reproducible:
Always

Steps to Reproduce:

  cgcreate -g blkio:test
  cgcreate -g memory:test
  ll /sys/fs/cgroup/{blkio,memory}/test/cgroup.procs
  systemctl daemon-reload
  ll /sys/fs/cgroup/{blkio,memory}/test/cgroup.procs

Actual results:

-rw-rw-r-- 1 root root 0 Mar  1 18:10 /sys/fs/cgroup/blkio/test/cgroup.procs
-rw-rw-r-- 1 root root 0 Mar  1 17:49 /sys/fs/cgroup/memory/test/cgroup.procs

ls: cannot access '/sys/fs/cgroup/blkio/test/cgroup.procs': No such file or directory
-rw-rw-r-- 1 root root 0 Mar  1 17:49 /sys/fs/cgroup/memory/test/cgroup.procs

Expected results:

-rw-rw-r-- 1 root root 0 Mar  1 18:10 /sys/fs/cgroup/blkio/test/cgroup.procs
-rw-rw-r-- 1 root root 0 Mar  1 17:49 /sys/fs/cgroup/memory/test/cgroup.procs

-rw-rw-r-- 1 root root 0 Mar  1 18:10 /sys/fs/cgroup/blkio/test/cgroup.procs
-rw-rw-r-- 1 root root 0 Mar  1 17:49 /sys/fs/cgroup/memory/test/cgroup.procs

Additional info:

Downgrading to v239-68.el8_7.2 preserves expected behavior. Running cgconfig service to apply custom groups preserves hierarchy until next reload or re-exec issuance.


Note You need to log in before you can comment on or make changes to this bug.