Bug 882067

Summary: Cgroup fail to load cgconfig.service
Product: Red Hat Enterprise Linux 7 Reporter: Luwen Su <lsu>
Component: libvirtAssignee: Daniel Berrangé <berrange>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: dallan, dyuan, mzhan, rwu, ydu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-18 10:06:27 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:
Bug Depends On: 882324    
Bug Blocks:    

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 ***