kubernetes: [Failing Test][sig-node][Serial] oom-score-adj should be -998 and best effort container's should be 1000
Which jobs are failing?
- ci-cos-cgroupv1-containerd-node-e2e-serial
- https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-cos-cgroupv2-containerd-node-e2e-serial/1846928355077656576
- ci-cgroupv2-containerd-node-e2e-serial-ec2
Which tests are failing?
E2eNode Suite.[It] [sig-node] Container Manager Misc [Serial] Validate OOM score adjustments [NodeFeature:OOMScoreAdj] once the node is setup with test pods pod infra containers oom-score-adj should be -998 and best effort container’s should be 1000
Since when has it been failing?
10-16
Testgrid link
https://testgrid.k8s.io/sig-node-containerd#cos-cgroupv2-containerd-node-e2e-serial, https://testgrid.k8s.io/sig-node-containerd#cos-cgroupv1-containerd-node-e2e-serial, https://testgrid.k8s.io/sig-node-containerd#ci-cgroupv2-containerd-node-e2e-serial-ec2
Reason for failure (if possible)
{ failed [FAILED] Timed out after 120.000s.
Expected
<*errors.errorString | 0xc0020ce560>:
expected pid 59090's oom_score_adj to be 1000; found -998
{
s: "expected pid 59090's oom_score_adj to be 1000; found -998",
}
to be nil
In [It] at: k8s.io/kubernetes/test/e2e_node/container_manager_test.go:194 @ 10/17/24 04:30:16.775
}
Anything else we need to know?
No response
Relevant SIG(s)
/sig node
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (17 by maintainers)
It looks like that commit did create a bug. Here’s a simple unit test demonstrating that the NRI library is incorrectly clearing existing OOMScoreAdj: https://github.com/containerd/nri/pull/116
https://github.com/containerd/nri/pull/94 this commit is included in the diff and looks suspect (just based on it adjusting oom_score_adj).
/cc @esotsal @tzneal @SergeyKanzhelev
/close
https://testgrid.k8s.io/sig-node-containerd#ci-cgroupv2-containerd-node-e2e-serial-ec2 is green now.
Great. Thanks @samuelkarp for the quick fix.
I will close this once the CI bumped the containerd.
https://github.com/containerd/containerd/pull/10884 this should now be fixed.
https://github.com/containerd/containerd/compare/8b41368e7...3a6e5fcb1 this is the diff between the two versions (the commit sha is the last few characters of that generated version number, since these are both untagged builds).
Checking the shared failed run, i notice from containerd.log pid:18341 is related
with container agnhost executing the agnhost pause command
pause.go seems it is a direct syscall call according to pause.go .
Want to test my theory if this is the root cause, so i started the container this time adding an args parameter to overcome getting the pause command. Ths CI of #128270 should test this theory.
[UPDATE] Failed both tests , continuing investigation