Skip to content
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

1.6.1 bug: blade disk burn experiment failed when using ssh channel #755

Closed
pipsqueakup opened this issue Jul 11, 2022 · 1 comment
Closed
Assignees
Labels
type/bug Something isn't working

Comments

@pipsqueakup
Copy link

I run disk burn experiment with chaos blade 1.6.1 , but failed with panic, command looks like
-d create disk burn --read --write --timeout 1800 --channel ssh --ssh-host xxx --ssh-user root --ssh-password xx

the related panic error is
panic: interface conversion: interface {} is string, not int goroutine 1 [running]: github.com/chaosblade-io/chaosblade/cli/cmd.(*CreateCommand).actionRunEFunc.func1(0xc000158dc0, {0x52f7d48, 0x1e, 0x1e}) /Users/zhangli/Documents/code/golang/chaosblade/chaosblade/cli/cmd/create.go:210 +0x15c6 github.com/spf13/cobra.(*Command).execute(0xc000158dc0, {0xc00000c3c0, 0x1e, 0x1e}) /Users/zhangli/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842 +0x60e github.com/spf13/cobra.(*Command).ExecuteC(0xc00052e000) /Users/zhangli/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x3ad github.com/spf13/cobra.(*Command).Execute(...) /Users/zhangli/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887 main.main() /Users/zhangli/Documents/code/golang/chaosblade/chaosblade/cli/main.go:28 +0x25

After debugging, I found the Result field of response is string, not int, which causes the panic
chaosblade_error

@MandssS MandssS added the type/bug Something isn't working label Jul 15, 2022
@tiny-x tiny-x mentioned this issue Jul 26, 2022
@tiny-x
Copy link
Member

tiny-x commented Nov 1, 2022

#763

@tiny-x tiny-x closed this as completed Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants