-
Notifications
You must be signed in to change notification settings - Fork 373
cpuset: don't set cpuset.mems in the guest #2944
Conversation
/test |
d96296f
to
18098a6
Compare
/test |
Codecov Report
@@ Coverage Diff @@
## master #2944 +/- ##
==========================================
+ Coverage 51.65% 51.67% +0.02%
==========================================
Files 118 118
Lines 17430 17438 +8
==========================================
+ Hits 9003 9011 +8
Misses 7342 7342
Partials 1085 1085 |
@egernst, the errors seem related to your change, please, take a look at them. |
Kata doesn't map any numa topologies in the guest. Let's make sure we clear the Cpuset fields before passing container updates to the guest. Without this, we could encounter a runtime failure: ``` process_linux.go:297: applying cgroup configuration for process caused "failed to write 0,1 to cpuset.mems: writea 0,1 to cpuset.mems: write 0,1 to cpuset.mems: write /sys/fs/cgroup/cpuset .... /cpuset.mems: numerical result out of range"": unknown ``` Note, in the future we may want to have a vCPU to guest CPU mapping and still include the cpuset.Cpus. Until we have this support, clear this as well. Fixes: kata-containers#2176 Depends-on: github.com/kata-containers/tests#2846 Signed-off-by: Eric Ernst <[email protected]>
18098a6
to
b5b8870
Compare
/test |
Yeah, needed to update the tests. The existing cpuset tests assumed we were setting them in the guest. We shouldn't, imo - this is confusing, wrong, prone to not doing what you think it should, and doesn't add anything good at this point. :) Once we map vCPU - > guest CPU, we'll be able to apply a more appropriate CPUSet mapping from host to guest. Until then...... |
flakey test from centos: /cc @chavafg @GabyCT
|
/test |
It seems the metrics job has been failing for a while now. Footprint has really crept up, I think we should look at 'why'. The particular test has failed since we've updated virtiofsd?
|
/test |
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.
Thanks @egernst.
lgtm, but yeah, would be good to add a UT to this PR 😄
Also, presumably this needs porting to 2.0?
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.
lgtm!
I'd like to have @devimc's input here before getting this one merged!
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.
@egernst thanks, could you update the limitations document?
I've added the "backport" label as I'd really like to see this one as part of the stable-1.11 branch. |
How should we handle metrics CI? Blocking until the test is fixed? |
@jodh-intel, side note, I've changed your labels. The labels we should be using, though, are the "needs-backport" and "needs-forward-port" |
@fidencio - Agreed. However, the label to use for that is |
@fidencio - \o/ :smile: |
/test |
@egernst - I've respun the failing CI's. Are you planning on working on a 2.0 port of this? |
forward port PR: kata-containers/kata-containers#933 |
Kata doesn't map any numa topologies in the guest. Let's make sure we
clear the Cpuset fields before passing container updates to the
guest. Without this, we could encounter a runtime failure:
Note, in the future we may want to have a vCPU to guest CPU mapping and
still include the cpuset.Cpus. Until we have this support, clear this as
well.
Fixes: #2176
Depends-on: github.com/kata-containers/tests#2846