Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1179715

Summary: /sys/fs/cgroup/cpu,cpuacct/machine.slice disappears after systemctl daemon-reload
Product: Red Hat Enterprise Linux 7 Reporter: Jan Kurik <jkurik>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Branislav Blaškovič <bblaskov>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.0CC: agiorgio, alitke, ar1666, bblaskov, berrange, bmcclain, dfediuck, dyuan, equinox-redhatbugz, erik-fedora, fabrice, fkrska, gfa, jdenemar, jsvarova, kchamart, lagarcia, lnykryn, mdorman, mhayden, msekleta, ovasik, pm-eus, psklenar, rbalakri, redhat.bugzilla, redhat, systemd-maint-list, systemd-maint, toni.peltonen
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-208-11.el7_0.6 Doc Type: Bug Fix
Doc Text:
Prior to this update, cgroup trees with multiple writers were insufficiently handled, and, as a consequence, the systemd daemon removed cgroups created by the libvirtd daemon. To fix this bug, a new option, Delegate, controlling creation of cgroup subhierarchies has been implemented which turns on resource delegation. This option defaults to "on" for machine scopes created by the systemd-machined daemon. As a result, cgroups created by libvirtd are no longer removed.
Story Points: ---
Clone Of: 1139223 Environment:
Last Closed: 2015-01-14 12:12:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1139223    
Bug Blocks: 784395    

Description Jan Kurik 2015-01-07 11:48:59 UTC
This bug has been copied from bug #1139223 and has been proposed
to be backported to 7.0 z-stream (EUS).

Comment 5 Branislav Blaškovič 2015-01-09 12:55:50 UTC
Old package:
:: [ 13:43:45 ] :: Package versions:
:: [ 13:43:45 ] ::   systemd-208-11.el7.x86_64
:: [  BEGIN   ] :: Running 'virsh create tester.xml'
Domain kvm1 created from tester.xml

:: [   PASS   ] :: Command 'virsh create tester.xml' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'ls /sys/fs/cgroup/cpu,cpuacct/machine.slice'
cgroup.clone_children  cgroup.procs  cpuacct.usage     cpu.cfs_period_us  cpu.rt_period_us   cpu.shares  machine-qemu\x2dkvm1.scope  tasks
cgroup.event_control   cpuacct.stat  cpuacct.usage_percpu  cpu.cfs_quota_us   cpu.rt_runtime_us  cpu.stat    notify_on_release
:: [   PASS   ] :: Command 'ls /sys/fs/cgroup/cpu,cpuacct/machine.slice' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'systemctl daemon-reload'
:: [   PASS   ] :: Command 'systemctl daemon-reload' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'systemctl restart chronyd'
:: [   PASS   ] :: Command 'systemctl restart chronyd' (Expected 0, got 0)
:: [ 13:43:48 ] :: This directory should be still available
:: [  BEGIN   ] :: Running 'ls /sys/fs/cgroup/cpu,cpuacct/machine.slice'
ls: cannot access /sys/fs/cgroup/cpu,cpuacct/machine.slice: No such file or directory
:: [   FAIL   ] :: Command 'ls /sys/fs/cgroup/cpu,cpuacct/machine.slice' (Expected 0, got 2)


New package:
:: [ 13:54:28 ] :: Package versions:
:: [ 13:54:28 ] ::   systemd-208-11.el7_0.6.x86_64
:: [  BEGIN   ] :: Running 'virsh create tester.xml'
Domain kvm1 created from tester.xml

:: [   PASS   ] :: Command 'virsh create tester.xml' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'ls /sys/fs/cgroup/cpu,cpuacct/machine.slice'
cgroup.clone_children  cgroup.procs  cpuacct.usage	   cpu.cfs_period_us  cpu.rt_period_us	 cpu.shares  machine-qemu\x2dkvm1.scope  tasks
cgroup.event_control   cpuacct.stat  cpuacct.usage_percpu  cpu.cfs_quota_us   cpu.rt_runtime_us  cpu.stat    notify_on_release
:: [   PASS   ] :: Command 'ls /sys/fs/cgroup/cpu,cpuacct/machine.slice' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'systemctl daemon-reload'
:: [   PASS   ] :: Command 'systemctl daemon-reload' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'systemctl restart chronyd'
:: [   PASS   ] :: Command 'systemctl restart chronyd' (Expected 0, got 0)
:: [ 13:54:32 ] :: This directory should be still available
:: [  BEGIN   ] :: Running 'ls /sys/fs/cgroup/cpu,cpuacct/machine.slice'
cgroup.clone_children  cgroup.procs  cpuacct.usage	   cpu.cfs_period_us  cpu.rt_period_us	 cpu.shares  machine-qemu\x2dkvm1.scope  tasks
cgroup.event_control   cpuacct.stat  cpuacct.usage_percpu  cpu.cfs_quota_us   cpu.rt_runtime_us  cpu.stat    notify_on_release
:: [   PASS   ] :: Command 'ls /sys/fs/cgroup/cpu,cpuacct/machine.slice' (Expected 0, got 0)

Comment 7 errata-xmlrpc 2015-01-14 12:12:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0037.html