Bug 2174599

Summary: daemon-reload or daemon-reexec obliterates custom subdirectories within blkio controller
Product: Red Hat Enterprise Linux 8 Reporter: matt
Component: systemdAssignee: systemd maint <systemd-maint>
Status: CLOSED MIGRATED QA Contact: Frantisek Sumsal <fsumsal>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.7CC: systemd-maint-list
Target Milestone: rcKeywords: MigratedToJIRA
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-21 13:47:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.

Comment 1 RHEL Program Management 2023-09-21 13:44:30 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 2 RHEL Program Management 2023-09-21 13:47:36 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.