chaosblade-io / chaosblade

An easy to use and powerful chaos engineering experiment toolkit.(阿里巴巴开源的一款简单易用、功能强大的混沌实验注入工具)
https://chaosblade.io
Apache License 2.0
5.95k stars 946 forks source link

chaoblade-tool does not support cgroupv2, when the container is containerd,”cgroups load failed, cgroups: cgroup deleted“ #1043

Open lusains opened 3 months ago

lusains commented 3 months ago

Issue Description

Type: bug report

Describe what you expected to happen

support cgroupv2

How to reproduce it (as minimally and precisely as possible)

  1. config cpu fullload on the chaosblade-box
  2. here is the command : /opt/chaosblade/blade create cri cpu fullload --timeout=905 --cpu-count=2 --cpu-percent=99 --container-id e4a16518e9bef8da1e48c4d2ced37ad56182940da70ceee354c6192c9fe11393 --container-runtime containerd 0 chaosblade-tool-qljdr chaosblade chaosblade-tool
  3. image
  4. https://github.com/chaosblade-io/chaosblade-exec-cri/blob/main/exec/executor_common_linux.go#L133 The situation of cgroupv2 is not considered here.

Tell us your environment

image image

Anything else we need to know?

xcaspar commented 2 months ago

Planned to support by the end of August.

wujunwei commented 3 weeks ago

It's already September. If no one is handling it, I‘d like to complete it. :)