cgroup: systemd: properly expand systemd slice names#511
Merged
mrunalp merged 1 commit intoJan 26, 2016
Conversation
Member
Author
|
You can notice the issue if you do something like this: Before this patch: After this patch: Now, the main reason why this is a big issue is because You'll notice this by observing the warnings in the Docker daemon: |
Rather than using '/' to denote hierarchy in slice names, systemd uses '-' in an odd way. This results in runC incorrectly assuming that certain kernel features are missing (and using inconsistent paths for the cgroups not supported by systemd), because the "subsystem path" used is not the one that systemd has created. Fix all of this by properly expanding slice names. Signed-off-by: Aleksa Sarai <asarai@suse.com>
This was referenced Jan 25, 2016
Contributor
|
LGTM |
1 similar comment
Contributor
|
LGTM |
mrunalp
pushed a commit
that referenced
this pull request
Jan 26, 2016
cgroup: systemd: properly expand systemd slice names
Merged
runcom
pushed a commit
to runcom/docker
that referenced
this pull request
Jun 8, 2016
Upstream reference: opencontainers/runc#511 Signed-off-by: Mrunal Patel <mrunalp@gmail.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rather than using '/' to denote hierarchy in slice names, systemd uses
'-' in an odd way. This results in runC incorrectly assuming that
certain kernel features are missing (and using inconsistent paths for
the cgroups not supported by systemd), because the "subsystem path" used
is not the one that systemd has created. Fix all of this by properly
expanding slice names.
Signed-off-by: Aleksa Sarai asarai@suse.com
/cc @LK4D4 @mrunalp @dqminh @crosbymichael @hqhq