Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 602664

Summary: sys-apps/portage: FEATURES=cgroup disables itself silently
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: esigra, pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=602706
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 184128    

Description Zac Medico gentoo-dev 2016-12-14 17:15:06 UTC
When FEATURES=cgroup setup fails, it disables itself silently:

https://gitweb.gentoo.org/proj/portage.git/tree/pym/_emerge/AbstractEbuildProcess.py?h=portage-2.3.3#n121

It would be nice to get a warning message, so that users will have a clue that there's a problem to correct.
Comment 1 Mike Gilbert gentoo-dev 2016-12-14 18:21:18 UTC
> It would be nice to get a warning message, so that users will have a clue that there's a problem to correct.

It's worth noting that this would trigger a warning by default on systemd systems, since systemd mounts /sys/fs/cgroup read-only.

It really wants to be the only process to manage cgroups.
Comment 2 Zac Medico gentoo-dev 2016-12-14 19:38:52 UTC
(In reply to Mike Gilbert from comment #1)
> It's worth noting that this would trigger a warning by default on systemd
> systems, since systemd mounts /sys/fs/cgroup read-only.
> 
> It really wants to be the only process to manage cgroups.

That's a good point. It looks like the preferred way to cooperate with systemd is documented here:

https://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/