Bug 875531 - DOC: JoinControllers of the main system's systemd doesn't take effect, because the initrd already mounted all cgroup fs for us
Summary: DOC: JoinControllers of the main system's systemd doesn't take effect, becaus...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 18
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-11 23:30 UTC by Krishna Raman
Modified: 2014-06-18 07:25 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-26 02:43:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Krishna Raman 2012-11-11 23:30:27 UTC
Description of problem:
Systemd JoinControllers argument does not work

Version-Release number of selected component (if applicable):
195-6.fc18

How reproducible:
Always

Steps to Reproduce:
1. Edit /etc/systemd/systemd.conf and add:
JoinControllers=memory,cpu,cpuacct
2. Reboot
3.
  
Actual results:
mount command lists:
/sys/fc/cgroup/cpu,cpuacct
/sys/fc/cgroup/memory

Expected results:
/sys/fc/cgroup/memory,cpu,cpuacct

Additional info:

Comment 1 Lennart Poettering 2013-01-11 23:07:15 UTC
My guess is the following is happening here:

Dracut (our initrd) is nowadays running systemd. This systemd will later on serialize its state and transition into the main system's systemd, which will deserialize the state and continue. Now, the initrd systemd will mount all cgroup file systems. After the transition they won't be remounted (not sure the kernel would even allow us to). That means the only /etc/systemd/systemd.conf taking effect with its cgroup mount setting is the one from the initrd. And you change the one from the main one.

Not really sure what we could do about this.

Asking for a rebuild of the initrd each time this config is changed sounds a bit too much...

Kay, Harald, ideas?

Comment 2 Kay Sievers 2013-01-12 16:18:22 UTC
It is actually a kind of "early boot config", which we need in the initramfs already, and I don't have a convincing idea how to work around that later.

I think we should just document, that the initrd needs to be rebuilt in that case. Maybe even a comment in the default config file.

Comment 3 Lennart Poettering 2013-01-14 18:31:31 UTC
OK, i turned this into a documentation issue to fix then.

Comment 5 Krishna Raman 2013-01-16 20:51:40 UTC
Will RHEL also require the initrd rebuild once these changes make it into RHEL?

Comment 6 Kay Sievers 2013-01-16 21:20:51 UTC
Sure, there is no difference between Fedora and RHEL so far.

Comment 7 Fedora Update System 2013-01-28 19:12:46 UTC
systemd-197-1.fc18.2 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/systemd-197-1.fc18.2

Comment 8 Fedora Update System 2013-01-30 00:34:05 UTC
Package systemd-197-1.fc18.2:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-197-1.fc18.2'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1590/systemd-197-1.fc18.2
then log in and leave karma (feedback).

Comment 12 Michal Schmidt 2013-02-20 13:48:45 UTC
Note that /etc/systemd/system.conf gets included in the initramfs only if generating a hostonly initramfs.

Couldn't we umount and re-mount the controllers if a mismatch in the JoinControllers configuration is detected after switching to the real root?

Comment 13 Fedora Update System 2013-02-23 01:01:53 UTC
Package initscripts-9.42.2-1.fc18, systemd-197-1.fc18.2:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing initscripts-9.42.2-1.fc18 systemd-197-1.fc18.2'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1590/initscripts-9.42.2-1.fc18,systemd-197-1.fc18.2
then log in and leave karma (feedback).

Comment 14 Fedora Update System 2013-02-26 02:43:44 UTC
initscripts-9.42.2-1.fc18, systemd-197-1.fc18.2 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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