chaosblade icon indicating copy to clipboard operation
chaosblade copied to clipboard

The error information of the kubernetes experimental scene cannot be effectively revealed

Open xcaspar opened this issue 2 years ago • 0 comments

Issue Description

Type: bug report

Describe what happened (or what feature you want)

Use blade tool to create a k8s experiment. If an error is reported, the error message cannot be displayed. For example:

{"code":54000,"success":false,"error":"unexpected status, expected status: `create`, but the real status: `Error`, please wait!","result":"5e4d7cdd26012e65"}

But the detail of the experiment:

    "status": {
        "expStatuses": [
            {
                "action": "append",
                "error": "invalid parameter `chaosqademo-1-sg-dev-cba-group-1-17-66f7749fb4-wdhhf`, can not find pods",
                "scope": "container",
                "state": "Error",
                "success": false,
                "target": "file"
            }
        ],
        "phase": "Error"
    }

Describe what you expected to happen

{"code":54000,"success":false,"error":"invalid parameter `chaosqademo-1-sg-dev-cba-group-1-17-66f7749fb4-wdhhf`, can not find pods","result":"5e4d7cdd26012e65"}

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

Tell us your environment

Anything else we need to know?

xcaspar avatar Jun 27 '22 08:06 xcaspar