-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[crio_swap1g.ign]: Use cgroup v2 instead of v1 #30242
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
[crio_swap1g.ign]: Use cgroup v2 instead of v1 #30242
Conversation
Skipping CI for Draft Pull Request. |
/cc @harche |
@iholder101 Thanks for this PR. The ignition files cannot be modified directly. They get auto generated from the templates. Check out https://github.com/kubernetes/test-infra/blob/6e07bfd40c34b051012306635cb139412db1f249/jobs/e2e_node/crio/README.md for more info. |
Oh, good to know :) I'll make this PR a draft until I make the changes. |
Since Beta1 NodeSwap does not support cgroup v1, therefore the jobs using crio_swap1g.ign should use cgroup v2 Signed-off-by: Itamar Holder <[email protected]>
Signed-off-by: Itamar Holder <[email protected]>
7e38185
to
3b8e848
Compare
/test all |
cc @saschagrunert for changes in the templates. |
@harche I think it's done correctly this time. Thanks again for pointing me to the right place. |
/cc @saschagrunert |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iholder101, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Since in Beta1 NodeSwap does not support cgroup v1, the jobs using
crio_swap1g.ign
should be using cgroup v2. See kubernetes/kubernetes#118764 for more info.This PR is a pre-requisite for kubernetes/kubernetes#119327, which aims to fail kubelet when swap is being used with cgroup v1. As of now, jobs like
pull-kubernetes-node-swap-fedora
, which usecrio_swap1g.ign
, fail instantly with this PR since they use cgroup v1. With this PR merged, I wish all tests would pass with the above PR.Fixes kubernetes/kubernetes#119726
Here's what I did in order to make sure all of the jobs that use swap will now be set with cgroup v2.
First, from this repo's root, I execute:
These files define jobs with the
NodeSwap
feature-gate on. For each such job, I've inspected the file that's used as a parameter for--node-args
. For example:- --node-args=--image-config-file=/workspace/test-infra/jobs/e2e_node/swap/image-config-swap-fedora.yaml
This file refers to other files, such as
crio_swap1g.ign
. I've tried to search this files for cgoup definitions. Incrio_swap1g.ign
's example, I saw:which is deleted by this PR.
As far as I'm aware, the affected jobs are: