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 635984

Summary: lssubsys -am does not show all subsystems after hierarchy remount
Product: Red Hat Enterprise Linux 6 Reporter: David Kutálek <dkutalek>
Component: libcgroupAssignee: Ivana Varekova <varekova>
Status: CLOSED ERRATA QA Contact: Petr Beňas <pbenas>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: jsafrane, pbenas, pstehlik, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:13:17 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:    
Bug Blocks: 672300    

Description David Kutálek 2010-09-21 08:56:13 UTC
Description of problem:

After first mount of hierarchy, lssubsys -am prints all subsystems correctly. But after remounting, subsystems that was already mounted (and after remount are still mounted) are not listed by lssubsys:

---
# cat /proc/cgroups 
#subsys_name	hierarchy	num_cgroups	enabled
cpuset	0	1	1
ns	0	1	1
cpu	0	1	1
cpuacct	0	1	1
memory	0	1	1
devices	0	1	1
freezer	0	1	1
net_cls	0	1	1
blkio	0	1	1

# mount -t cgroup -o cpu,memory,net_cls lab1 /cgroup/lab1
# cat /proc/cgroups 
#subsys_name	hierarchy	num_cgroups	enabled
cpuset	0	1	1
ns	0	1	1
cpu	2	1	1
cpuacct	0	1	1
memory	2	1	1
devices	0	1	1
freezer	0	1	1
net_cls	2	1	1
blkio	0	1	1

# mount -t cgroup -o remount,cpuset,cpu,memory,net_cls lab1 /cgroup/lab1
# cat /proc/cgroups 
#subsys_name	hierarchy	num_cgroups	enabled
cpuset	2	1	1
ns	0	1	1
cpu	2	1	1
cpuacct	0	1	1
memory	2	1	1
devices	0	1	1
freezer	0	1	1
net_cls	2	1	1
blkio	0	1	1

# lssubsys -am
cpuset /cgroup/lab17
ns
cpuacct
devices
freezer
blkio
# 
---

Version-Release number of selected component (if applicable):

libcgroup-0.36.1-6.el6.x86_64

How reproducible:

Always

Steps to Reproduce:
1. mount cgroup hierarchy with x,y subsystems
2. remount it with x,y,z subsystems
3. lssubsys -am
  
Actual results:

x and y subsystems missing

Expected results:

all subsystems should be listed

Additional info:

Comment 1 David Kutálek 2010-09-21 10:07:21 UTC
This bug affects also cgcreate command:

# cgcreate -g cpu:group1/subgroup11
cgcreate: can't create cgroup group1/subgroup11: Cgroup one of the needed subsystems is not mounted

# mount | grep lab1
lab1 on /cgroup/lab1 type cgroup (rw,cpu,memory,net_cls,cpuset)

# cgcreate -g cpuset:group1/subgroup11
#

Raising prio to medium.

Comment 5 Petr Beňas 2011-01-31 11:15:25 UTC
Reproduced in licgroup-0.36.1-6.el6 and verified in libcgroup-0.37-1.el6.

Comment 6 errata-xmlrpc 2011-05-19 13:13:17 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0577.html