{
"code": 54000,
"success": false,
"error": "illegal `path` parameter value: `/path-not-on-host`. it must be a directory",
"result": {
"error": "illegal `path` parameter value: `/path-not-on-host`. it must be a directory",
"statuses": [
{
"error": "illegal `path` parameter value: `/path-not-on-host`. it must be a directory",
"identifier": "default/11.140.167.216/chaos-test/chaos-test/180df34b3c94/docker",
"kind": "pod",
"state": "Error",
"success": false
}
],
"success": false,
"uid": "56f1e63091f5ac86"
}
}
and I checked path which I injected:
# kubectl exec -it chaos-test -- ls /
bin lib64 path-not-on-host sys
dev linuxrc proc tmp
etc media root usr
home mnt run var
lib opt sbin
Describe what you expected to happen
Inject succeefully and disk will be filled to 20%
How to reproduce it (as minimally and precisely as possible)
prepare kubernetes enviroment
install chaosblade-operator
create a pod with volume and the mount path have to be not same as host path
Issue Description
Type: bug report
Describe what happened (or what feature you want)
I try to create the
pod-disk fill
injection using url and it is created failed.and I checked path which I injected:
Describe what you expected to happen
Inject succeefully and disk will be filled to 20%
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
CentOS8 chaosblade-operator 1.7.2
Anything else we need to know?
I checked source code with 1.7.2. I found that
pod-disk fill
will check whether the path is a directory out of namespace. source code