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
runtime: Support for host cgroupv2 #4397
runtime: Support for host cgroupv2 #4397
Conversation
|
Nice! Thanks! were you able to run CI jobs locally (or locally, both requires some modifications)? /test |
|
@snir911 OK I will revise the CI tests and docs later. |
|
Currently the |
95ce7f1
to
7eea8cb
Compare
|
@yaoyinnan Thanks for the great work, is it finally ready? would be nice to have it in 2.5.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! @yaoyinnan Please rebase your PR, thanks!
|
There are a few left-overs though:
|
7eea8cb
to
86c04db
Compare
9a617bf
to
093e6f1
Compare
|
This is a very nice work, indeed! |
093e6f1
to
404d0ab
Compare
|
Reference: kata-containers/tests#4902 |
This PR adds the suppor for ubuntu 22.04 in order to have it in our kata CI. Fixes kata-containers#4901 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This PR adds the suppor for ubuntu 22.04 in order to have it in our kata CI. Fixes kata-containers#4901 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
|
@bergwolf and @yaoyinnan, we have a CI job that has cgroupsv2 which is Ubuntu 22.04, to trigger that CI, we just need to do /test-ubuntu22 |
|
I put a Depends-On on my PR (which is adding or changing packages) that will change the setup of Ubuntu to test this PR |
This PR adds the suppor for ubuntu 22.04 in order to have it in our kata CI. Fixes kata-containers#4901 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This PR adds the suppor for ubuntu 22.04 in order to have it in our kata CI. Fixes kata-containers#4901 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
06299db
to
16edb10
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.
Thanks @yaoyinnan.
lgtm
| @@ -106,6 +108,73 @@ func TestValidCgroupPath(t *testing.T) { | |||
|
|
|||
| } | |||
|
|
|||
| func TestValidCgroupPathV2(t *testing.T) { | |||
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.
Nice! 😄
|
/test |
16edb10
to
e2adb5e
Compare
|
/test |
|
/test-ubuntu22 |
Fix tests that are failing with cgroupsv2 in ubuntu 22.04. Fixes: kata-containers#4922 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
Fix tests that are failing with cgroupsv2 in ubuntu 22.04. Fixes: kata-containers#4922 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
Fix tests that are failing with cgroupsv2 in ubuntu 22.04. Fixes: kata-containers#4922 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
Fix tests that are failing with cgroupsv2 in ubuntu 22.04. Fixes: kata-containers#4922 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
Fix tests that are failing with cgroupsv2 in ubuntu 22.04. Fixes: kata-containers#4922 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
Fix tests that are failing with cgroupsv2 in ubuntu 22.04. Fixes: kata-containers#4922 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
Fix tests that are failing with cgroupsv2 in ubuntu 22.04. Fixes: kata-containers#4922 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
|
@yaoyinnan, can we remove the "wip" label and have this one merged? |
Fix tests that are failing with cgroupsv2 in ubuntu 22.04. Fixes: kata-containers#4922 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
Currently cgroup v2 is supported. Remove the note that host cgroup v2 is not supported. Fixes: kata-containers#3073 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
Support cgroup v2 on the host. Update vendor containerd/cgroups to add cgroup v2. Fixes: kata-containers#3073 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
e2adb5e
to
5c3155f
Compare
|
/test |
Fix tests that are failing with cgroupsv2 in ubuntu 22.04. Fixes: kata-containers#4922 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
This PR adds the suppor for ubuntu 22.04 in order to have it in our kata CI. Fixes kata-containers#4901 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This PR adds the suppor for ubuntu 22.04 in order to have it in our kata CI. Fixes kata-containers#4901 Depends-on: github.com/kata-containers/kata-containers#4397 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com> (cherry picked from commit ba1dd85)
Added support for cgroups v2 to Kata Containers so that Kata Containers will work on systems that only support cgroups v2.
Fixes: #3073
Signed-off-by: yaoyinnan yaoyinnan@foxmail.com