-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemctl daemon-reload causes cpu.cfs_quota_us of existing containers to be set to a wrong value #1605
Comments
As much as you're not going to like this response, this is likely caused by using |
Right, it works fine without the However, it's a good feature to have since it gives a clean way to put all runc containers in their own separate slice without moving processes around different cgroups. I guess the workaround for now is to move the process running the runc command to custom.slice before creating containers. |
You could explicitly try explicitly stating the full slice path in |
Do you mean something like this?
Above config change has a weird behaviour.
The cgroup doesn't exist but the proc says it does. Not sure what happened there 😱 |
So I tried giving this as path and that works:
So that should provide the same behavior as using Thanks! |
@goyalankit The behavior is slightly different (with |
Do we know why this is happening though? I can reproduce this on RHEL 7.4 as well 😕 |
@runcom It's some kind of systemd bug. We've seen bugs like this before shouts at monitor This really is getting quite tiring. Maybe we should stop supporting |
@rhatdan ptal, same issue we're having |
Uli has dones alot of analysys on this issue in the bugzilla, has https://bugzilla.redhat.com/show_bug.cgi?id=1455071 Does this help at all? |
In the current version of runc, when using
--systemd-cgroup
, thecpu.cfs_quota_us
of existing containers gets reset to an incorrect value after asystemctl daemon-reload
and a creation of new container.Steps to reproduce
Relevant parts of config.json (full config.json attached as a file)
Runc version:
Same issue with rc3, rc4 and head versions.
Config.json:
https://gist.github.com/goyalankit/4382be41c66579ad7833a983e634aa32#file-config-json
The text was updated successfully, but these errors were encountered: