Closed cwen0 closed 2 years ago
chaosd version :
Chaosd Version: version.Info{GitVersion:"v0.0.0-master+$Format:%h$", GitCommit:"$Format:%H$", BuildDate:"2022-08-05T08:25:42Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"linux/amd64"}
log:
[root@centos76-vm-1 ~]# chaosd attack network bandwidth --buffer 10000 --device eth0 --limit 10000 --rate 10mbps 2022-08-13T17:48:42.182+0800 INFO chaosd/network.go:78 Set iptables chains {"request": ""} 2022-08-13T17:48:42.192+0800 INFO chaosd/network.go:84 handling tc request {"tcs": "tcs:{type:BANDWIDTH tbf:{rate:10485760 limit:10000 buffer:10000} device:\"eth0\"}"} 2022-08-13T17:48:42.193+0800 ERROR chaosd/network.go:84 error while getting interfaces {"error": "exit status 255"} github.com/chaos-mesh/chaosd/pkg/server/chaosd.networkAttack.Attack /__w/chaosd/chaosd/pkg/server/chaosd/network.go:84 github.com/chaos-mesh/chaosd/pkg/server/chaosd.(*Server).ExecuteAttack /__w/chaosd/chaosd/pkg/server/chaosd/attack.go:105 github.com/chaos-mesh/chaosd/cmd/attack.commonNetworkAttackFunc /__w/chaosd/chaosd/cmd/attack/network.go:251 reflect.Value.call /__t/go/1.18.2/x64/src/reflect/value.go:556 reflect.Value.Call /__t/go/1.18.2/x64/src/reflect/value.go:339 go.uber.org/dig.defaultInvoker /github/home/go/pkg/mod/go.uber.org/dig@v1.14.1/container.go:220 go.uber.org/dig.(*Scope).Invoke /github/home/go/pkg/mod/go.uber.org/dig@v1.14.1/invoke.go:92 go.uber.org/fx.runInvoke /github/home/go/pkg/mod/go.uber.org/fx@v1.17.1/invoke.go:93 go.uber.org/fx.(*module).executeInvoke /github/home/go/pkg/mod/go.uber.org/fx@v1.17.1/module.go:174 go.uber.org/fx.(*module).executeInvokes /github/home/go/pkg/mod/go.uber.org/fx@v1.17.1/module.go:155 go.uber.org/fx.New /github/home/go/pkg/mod/go.uber.org/fx@v1.17.1/app.go:534 github.com/chaos-mesh/chaosd/pkg/utils.FxNewAppWithoutLog /__w/chaosd/chaosd/pkg/utils/utils.go:27 github.com/chaos-mesh/chaosd/cmd/attack.NewNetworkBandwidthCommand.func1 /__w/chaosd/chaosd/cmd/attack/network.go:230 github.com/spf13/cobra.(*Command).execute /github/home/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:860 github.com/spf13/cobra.(*Command).ExecuteC /github/home/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 github.com/spf13/cobra.(*Command).Execute /github/home/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902 main.main /__w/chaosd/chaosd/cmd/main.go:79 runtime.main /__t/go/1.18.2/x64/src/runtime/proc.go:250 Error: exit status 255
Whether 'eth0' exists?
Yes, I am sure that eth0 exists. In addition, version v1.1.1 chaosd can work well.
eth0
chaosd version :
log: