chaosblade
chaosblade copied to clipboard
opeartor 下发chaosblade给对应pod时,TCP报错使用了已关闭的链接
Issue Description
Type: bug report , feature request or question
Describe what happened (or what feature you want)
当使用chaosblade 执行container级别时的cpu负载故障注入时,总是执行失败。 我进入对应pod,其家目录结构为 /home/mysql。 所以我填写chaosblade-path为 /home/mysql
Describe what you expected to happen
预期应该是执行成功,而不失败
How to reproduce it (as minimally and precisely as possible)
- 在chaosblade-box上创建实验(container-cpu.fullload),填写了对应的cpu-percent和namespace和chaosblade-path
- 然后提交并执行,进入operator可以看到对应日志为
time="2023-06-13T02:50:00Z" level=info msg="start to execute: &{Target:cpu Scope:container ActionName:fullload ActionFlags:map[chaosblade-path:/home/mysql/tool container-names:exporter cpu-percent:87 names:mysql-mysql-common-0 namespace:default] ActionPrograms:[] ActionCategories:[]}" experiment=b06ceb5e716443cbb4d8ecd338e81beb time="2023-06-13T02:50:00Z" level=info msg="deploy chaosblade under override with false value" experiment=b06ceb5e716443cbb4d8ecd338e81beb time="2023-06-13T02:50:00Z" level=info msg="Exec command in client" command="[test -e /home/mysql/tool/chaosblade/bin]" container=exporter podName=mysql-mysql-common-0 podNamespace=default time="2023-06-13T02:50:01Z" level=error msg="Invoke exec command error" command="[test -e /home/mysql/tool/chaosblade/bin]" container=exporter err= error="command terminated with exit code 1" out= podName=mysql-mysql-common-0 podNamespace=default time="2023-06-13T02:50:01Z" level=info msg="Exec command in client" command="[mkdir -p /home/mysql/tool/chaosblade/bin]" container=exporter podName=mysql-mysql-common-0 podNamespace=default time="2023-06-13T02:50:01Z" level=info msg="Exec command in client" command="[test -e /home/mysql/tool/chaosblade/blade]" container=exporter podName=mysql-mysql-common-0 podNamespace=default time="2023-06-13T02:50:01Z" level=error msg="Invoke exec command error" command="[test -e /home/mysql/tool/chaosblade/blade]" container=exporter err= error="command terminated with exit code 1" out= podName=mysql-mysql-common-0 podNamespace=default time="2023-06-13T02:50:01Z" level=info msg="Exec command in client" command="[tar --no-same-permissions --no-same-owner -xmf - -C /home/mysql/tool/chaosblade]" container=exporter podName=mysql-mysql-common-0 podNamespace=default E0613 02:50:01.335888 1 v2.go:105] write tcp 10.66.209.44:39920->192.168.0.1:443: use of closed network connection
Tell us your environment
- k8s,operator 1.3.0
Anything else we need to know?
chaosblade-opeartor use the latest version: 1.7.2