-
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
libct/cgroups: support Cgroups.Resources.Unified #2584
Conversation
9dfede1
to
f2fc11b
Compare
That intermittent download failure, again
Wonder if there's a better alternative. For some reason, this never happens to any other URLs downloaded from github |
f2fc11b
to
9c7ff8d
Compare
Rebased |
... to include unified resources support. Signed-off-by: Kir Kolyshkin <[email protected]>
As the underlying error message from iotuils.WriteFile already contains file name, there's no need to put it, otherwise we end up with something like: failed to write "val" to "/sys/fs/cgroup/.../file": open /sys/fs/cgroup/.../file: permission denied With this patch, the error will be failed to write "val": open /sys/fs/cgroup/.../file: permission denied Signed-off-by: Kir Kolyshkin <[email protected]>
9c7ff8d
to
d0397b9
Compare
d0397b9
to
ce81593
Compare
Added bats test with more unified parameters (using only |
@giuseppe PTAL? |
ce81593
to
8e94e5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a question, otherwise LGTM
8e94e5e
to
ab1ce70
Compare
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need follow up for systemd but this looks like a good start. Thanks!
Add support for unified resource map (as per [1]), and add some test cases for the new functionality. [1] opencontainers/runtime-spec#1040 Signed-off-by: Kir Kolyshkin <[email protected]>
Container test_cgroups_group was missing from the teardown. Fixes: c91fe9a. Signed-off-by: Kir Kolyshkin <[email protected]>
Note that various invalid keys are covered by test cases in libcontainer/integration/exec_test.go Signed-off-by: Kir Kolyshkin <[email protected]>
ab1ce70
to
4929c05
Compare
@AkihiroSuda ptal |
@kolyshkin Could you open an issue for tracking systemd issue? |
I'm not quite sure which way to go -- let's discuss in there |
Add support for unified resource map (as per [1]), and add some test
cases for the new functionality.
[1] opencontainers/runtime-spec#1040
Fixes: #2563
The biggest issue, I think, is that the mapping of the "unified" parameters
to systemd properties is not implemented, meaning there can be cases
where systemd unit settings and in-kernel cgroup settings won't agree.
I don't think it can cause any issues, but it's just doesn't look right.