-
Notifications
You must be signed in to change notification settings - Fork 195
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
Pumba Stress is not working as expected #223
Comments
@rantidev please provide more details about your runtime environment: OS, docker host, version, where you run pumba and target containers, etc. - everything that will help to reproduce the issue. |
Hi,
Debug output:
|
@toky0 thank you. I will try to reproduce in a similar environment |
Any update on this error? |
Not yet. I think it's related to Linux distribution you are using and the cgroups package. Can you try to run it on Ubuntu or Redhat LTS version? |
having the same issue. The container I am trying to attack is a The same happened when trying on all images, nginx, redis and mongo. host container
DEBU[0000] using names names="[mongo2]"
DEBU[0000] stress testing all matching containers
DEBU[0000] listing matching containers duration=1m40s labels="[]" limit=0 names="[mongo2]" pattern= random=false stressors="[--cpu 4 --timeout 60s]"
DEBU[0000] listing containers
DEBU[0000] found container id=f54882f0956ea3370fb6354a209958f2de24bc34ad50c5b0857f8fb9bf2dd9d1 name=/determined_matsumoto
DEBU[0000] found container id=8ebc9117123c826d16fd7da93a9321adbb1208b7ce61e8da6605fe96ed5cd952 name=/mongo1
DEBU[0000] found container id=bdab893f99b2fa035ee875507b7f29f2c388c6d89fc955d0c435b00ed3d914b1 name=/mongo2
DEBU[0000] found container id=245f6cfedc64ca6246f1ca2df8d3d6864a65cb8295d88f082e0af4374c506200 name=/databases-redis-1
DEBU[0000] found container id=dd144691c31f263d47bd16419b7423621e189f0da5cd3e87a4589623198e7322 name=/databases-rabbitmq-1
DEBU[0000] found container id=2089d2846ba5ca090b4797e6f386ac38262b3601841daa64dc49b439d70860b4 name=/databases-nginx-1
DEBU[0000] stress testing container for duration container=bdab893f99b2fa035ee875507b7f29f2c388c6d89fc955d0c435b00ed3d914b1 duration=1m40s pull image=true stress-ng image="alexeiled/stress-ng:latest-ubuntu" stressors="[--cpu 4 --timeout 60s]"
INFO[0000] stress testing container dryrun=false duration=1m40s id=bdab893f99b2fa035ee875507b7f29f2c388c6d89fc955d0c435b00ed3d914b1 image="alexeiled/stress-ng:latest-ubuntu" name=/mongo2 pull=true stressors="[--cpu 4 --timeout 60s]"
DEBU[0000] executing stress-ng command image="alexeiled/stress-ng:latest-ubuntu" pull=true stressors="[--cpu 4 --timeout 60s]" target=bdab893f99b2fa035ee875507b7f29f2c388c6d89fc955d0c435b00ed3d914b1
DEBU[0000] pulling stress-ng image image="alexeiled/stress-ng:latest-ubuntu"
DEBU[0002] &{Pulling from alexeiled/stress-ng {0 0}}
DEBU[0002] &{Digest: sha256:6c2f6a6997aeb0dc7f7299e556f67cbb7ca1b40398ef32bbeea50b90fc020ae3 {0 0}}
DEBU[0002] &{Status: Image is up to date for alexeiled/stress-ng:latest-ubuntu {0 0}}
DEBU[0002] creating stress-ng container image="alexeiled/stress-ng:latest-ubuntu"
DEBU[0002] stress-ng container created, starting it id=ee20b6df8d73267ad46d7bd25d1d23cdf72c5d90415e9080865185c98f656be1
FATA[0003] error running stress command: error running chaos command: one or more stress test failed: stress-ng failed with error: stress-ng exited with error: /cgroups can't be listed: Cgroup is not mounted
)cgroup controller and pathparsing failed
|
Hello Team ,
I was using pumba to inject cpu stress in docker containers and it was working perfectly fine.
curl --unix-socket /var/run/docker.sock -H "Content-Type: application/json"
-d '{"Image": "gaiaadm/pumba","HostConfig": {
"Binds": [
"/var/run/docker.sock:/var/run/docker.sock"
]
}, "Cmd": ["--log-level=info", "stress" ,"--duration=1m", "re2:^pg_"]}'
-X POST http://localhost/v1.37/containers/create
However when I use the above command now to stress the docker container getting below error :
docker logs -f 5ffef0aa421354a5c94f375c90da8fcb1fff33355277ad1dbd409429fe77bbae
time="2022-12-02T08:31:07Z" level=info msg="stress testing container" dryrun=false duration=1m0s id=e49e026eb5512be937945800216403d185bf2756c9f7e8dcc8ccab21961aaa75 image="alexeiled/stress-ng:latest-ubuntu" name=/pg_container pull=true stressors="[--cpu 4 --timeout 60s]"
time="2022-12-02T08:31:11Z" level=fatal msg="error running stress command: error running chaos command: one or more stress test failed: stress-ng failed with error: stress-ng exited with error: \x02\x00\x00\x00\x00\x00\x00/cgroups can't be listed: Cgroup is not mounted\n\x02\x00\x00\x00\x00\x00\x00)cgroup controller and pathparsing failed\n"
The text was updated successfully, but these errors were encountered: