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.
Description of problem:
the cgsnapshot utility appears to only work on the first mountpoint when multiple mountpoints are involved. The reproducer below is a modification on libcgroup-tools-tests/libcgroup-tests/cgsnapshot/cgsnapshot_two_mp. Tested both with and without selinux enforcing due to recent issues with selinux policy and some of the libcgroup tools. No avc's were generated in either case so I don't think this has anything to do with SELinux policy.
SELinux enforcing off
[root@test1239 cgsnapshot]# mkdir -p /tmp/cgroups/memory 2>/dev/null
[root@test1239 cgsnapshot]# mkdir -p /tmp/cgroups/pom 2>/dev/null
[root@test1239 cgsnapshot]# mount -t cgroup -o memory memory1 /tmp/cgroups/memory
[root@test1239 cgsnapshot]# mount -t cgroup -o memory memory2 /tmp/cgroups/pom
[root@test1239 cgsnapshot]# cgsnapshot
# Configuration file generated by cgsnapshot
mount {
memory = /tmp/cgroups/memory;
}
[root@test1239 cgsnapshot]# mount
/dev/mapper/vg_test1239-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/vda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
memory1 on /tmp/cgroups/memory type cgroup (rw,memory)
memory2 on /tmp/cgroups/pom type cgroup (rw,memory)
[root@test1239 cgsnapshot]# getenforce
Permissive
SELinux enforcing on
[root@test1239 cgsnapshot]# setenforce 1
[root@test1239 cgsnapshot]# mount -t cgroup -o memory memory1 /tmp/cgroups/memory
[root@test1239 cgsnapshot]# mount -t cgroup -o memory memory2 /tmp/cgroups/pom
[root@test1239 cgsnapshot]# cgsnapshot
# Configuration file generated by cgsnapshot
mount {
memory = /tmp/cgroups/memory;
}
[root@test1239 cgsnapshot]# mount
/dev/mapper/vg_test1239-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/vda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
memory1 on /tmp/cgroups/memory type cgroup (rw,memory)
memory2 on /tmp/cgroups/pom type cgroup (rw,memory)
Version-Release number of selected component (if applicable):
[root@test1239 cgsnapshot]# rpm -q libcgroup
libcgroup-0.37-1.el6.x86_64
[root@test1239 cgsnapshot]# uname -r
2.6.32-115.el6.x86_64
How reproducible:
always
Steps to Reproduce:
1. Create 2 or more cgroup mount points and mount them
2. run cgsnapshot
3.
Actual results:
only the first mount is displayed in the output
Expected results:
all mountpoints are displayed
Additional info:
libcgroup is fairly limited when it comes to multiple mount points. Upstream decided that libcgroup handles only one mount point per hierarchy and ignores the others. For 99% of its functionality it's OK, the only problem are tools which lists them, like cgsnapshot and lssubsys. It's a design flaw which I think cannot be fixed in time for RHEL 6.1. We have to re-think the design upstream and don't break things apart.
This bug should be also mentioned somewhere, is errata text enough?
This bug will get fixed in RHEL 6.2, so I put the release note to the rebase bug #649195.
Comment 6RHEL Program Management
2011-07-06 01:24:48 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.
Comment 8RHEL Program Management
2012-07-10 06:23:14 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
Comment 9RHEL Program Management
2012-07-11 00:00:22 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.
Comment 10RHEL Program Management
2012-12-14 07:00:32 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
Description of problem: the cgsnapshot utility appears to only work on the first mountpoint when multiple mountpoints are involved. The reproducer below is a modification on libcgroup-tools-tests/libcgroup-tests/cgsnapshot/cgsnapshot_two_mp. Tested both with and without selinux enforcing due to recent issues with selinux policy and some of the libcgroup tools. No avc's were generated in either case so I don't think this has anything to do with SELinux policy. SELinux enforcing off [root@test1239 cgsnapshot]# mkdir -p /tmp/cgroups/memory 2>/dev/null [root@test1239 cgsnapshot]# mkdir -p /tmp/cgroups/pom 2>/dev/null [root@test1239 cgsnapshot]# mount -t cgroup -o memory memory1 /tmp/cgroups/memory [root@test1239 cgsnapshot]# mount -t cgroup -o memory memory2 /tmp/cgroups/pom [root@test1239 cgsnapshot]# cgsnapshot # Configuration file generated by cgsnapshot mount { memory = /tmp/cgroups/memory; } [root@test1239 cgsnapshot]# mount /dev/mapper/vg_test1239-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/vda1 on /boot type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) memory1 on /tmp/cgroups/memory type cgroup (rw,memory) memory2 on /tmp/cgroups/pom type cgroup (rw,memory) [root@test1239 cgsnapshot]# getenforce Permissive SELinux enforcing on [root@test1239 cgsnapshot]# setenforce 1 [root@test1239 cgsnapshot]# mount -t cgroup -o memory memory1 /tmp/cgroups/memory [root@test1239 cgsnapshot]# mount -t cgroup -o memory memory2 /tmp/cgroups/pom [root@test1239 cgsnapshot]# cgsnapshot # Configuration file generated by cgsnapshot mount { memory = /tmp/cgroups/memory; } [root@test1239 cgsnapshot]# mount /dev/mapper/vg_test1239-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/vda1 on /boot type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) memory1 on /tmp/cgroups/memory type cgroup (rw,memory) memory2 on /tmp/cgroups/pom type cgroup (rw,memory) Version-Release number of selected component (if applicable): [root@test1239 cgsnapshot]# rpm -q libcgroup libcgroup-0.37-1.el6.x86_64 [root@test1239 cgsnapshot]# uname -r 2.6.32-115.el6.x86_64 How reproducible: always Steps to Reproduce: 1. Create 2 or more cgroup mount points and mount them 2. run cgsnapshot 3. Actual results: only the first mount is displayed in the output Expected results: all mountpoints are displayed Additional info: