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 882067 - Cgroup fail to load cgconfig.service
Summary: Cgroup fail to load cgconfig.service
Keywords:
Status: CLOSED DUPLICATE of bug 882324
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Daniel Berrangé
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 882324
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-30 03:38 UTC by Luwen Su
Modified: 2012-12-18 10:06 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-18 10:06:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Luwen Su 2012-11-30 03:38:51 UTC
Description of problem:
Cgroup fail to load cgconfig.service , and can't mount cgroup's memory by default config

Version-Release number of selected component (if applicable):
libvirt-1.0.0-1.el7.x86_64
libvirt-daemon-driver-lxc-1.0.0-1.el7.x86_64
libcgroup-0.38-3.el7.x86_64
kernel-3.6.0-0.29.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.
#service cgconfig status
Redirecting to /bin/systemctl status  cgconfig.service
cgconfig.service - Control Group configuration service
	  Loaded: loaded (/usr/lib/systemd/system/cgconfig.service; disabled)
	  Active: active (exited) since Fri, 2012-11-30 11:15:16 CST; 3s ago
	 Process: 9940 ExecStop=/usr/sbin/cgclear -l /etc/cgconfig.conf -e (code=exited, status=0/SUCCESS)
	 Process: 9943 ExecStart=/usr/sbin/cgconfigparser -l /etc/cgconfig.conf -s 1664 (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/cgconfig.service



2.
systemctl status cgroup.service
cgroup.service
	  Loaded: error (Reason: No such file or directory)
	  Active: inactive (dead)


3.
#mount | grep cgroup  
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)

# cat /proc/cgroups 
#subsys_name	hierarchy	num_cgroups	enabled
cpuset	2	4	1
cpu	3	38	1
cpuacct	3	38	1
devices	4	4	1
freezer	5	4	1
net_cls	6	1	1
blkio	7	4	1
perf_event	8	1	1


4.
lxc will fail to start:
virsh -c lxc:// start toy
error: Failed to start domain toy
error: internal error Unable to find 'memory' cgroups controller mount

5.
#mkdir /sys/fs/cgroup/memory
#mount -t cgroup none /sys/fs/cgroup/memory -o memory
mount: special device none does not exist

Actual results:
Cgroup fail to load config file and mount memory

Expected results:
Cgroup should work find

Additional info:
I'm not sure if these belong to one compoent  , so if anyone know which compoent it or they should be , plz help me to change it , thanks.

Comment 1 Daniel Berrangé 2012-12-18 10:06:27 UTC
This isn't a libvirt bug - the kernel builds in RHEL-7 are broken, missing the memory controller

*** This bug has been marked as a duplicate of bug 882324 ***


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