Skip to content

<POD NETWORK DELAY> : cmd exec failed, err: RTNETLINK answers: No such file or directory exit status 2 #173

@ddd1123

Description

@ddd1123

Issue Description

Type: bug report

Describe what happened (or what feature you want)

  1. 在 chaosblade-box 中通过 agent 获取 K8s 集群信息,进行 POD NETWORK DELAY 演练;
  2. 报错内容为:原因: /opt/chaosblade/bin/nsexec -t 77143 -p -n -- /bin/sh -c tc qdisc add dev eth0 root netem delay 100ms 10ms: cmd exec failed, err: RTNETLINK answers: No such file or directory exit status 2
  3. 我尝试在对应的 Node 主机上输入 /opt/chaosblade/bin/nsexec,同样报 -bash: /opt/chaosblade/bin/nsexec: No such file or directory

Describe what you expected to happen

希望可以提供相关解决方法or解决思路,thanks!

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

Tell us your environment

K8s:v1.18.18
chaosblade-box:v1.0.1
chaos-agent:v1.0.0
chaos-operator:v1.6.0
chaos-tool:v1.6.0

Anything else we need to know?

机器执行信息:
{

"response": {

"code": 54000,
"error": "unexpected status, expected status: `create`, but the real status: `Error`, please wait!",
"result": {
  "error": "`/opt/chaosblade/bin/nsexec -t 77143 -p -n -- /bin/sh -c tc qdisc add dev eth0 root netem delay 100ms 10ms`: cmd exec failed, err: RTNETLINK answers: No such file or directory\n exit status 2",
  "statuses": [
    {
      "error": "`/opt/chaosblade/bin/nsexec -t 77143 -p -n -- /bin/sh -c tc qdisc add dev eth0 root netem delay 100ms 10ms`: cmd exec failed, err: RTNETLINK answers: No such file or directory\n exit status 2",
      "kind": "pod",
      "state": "Error",
      "success": false
    }
  ],
  "success": false,
  "uid": "2c29793a6c8da651"
},
"success": false

}
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions