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

Pumba fails when container is killed while running netem delay #175

Open
dipe3418 opened this issue Sep 11, 2020 · 0 comments
Open

Pumba fails when container is killed while running netem delay #175

dipe3418 opened this issue Sep 11, 2020 · 0 comments
Assignees

Comments

@dipe3418
Copy link

@alexei-led If one of the containers are killed while running the netem delay cmd, Pumba is throwing a fatal error message.

  • Running netem delay cmd using Pumba docker container:
    docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock gaiaadm/pumba --log-level=info netem --tc-image "gaiadocker/iproute2" --duration 60s delay --time 500 "re2:^test"

  • Kill container to simulate a failing health check in AWS ECS for example:
    docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock gaiaadm/pumba --random --log-level=info kill --signal=SIGKILL "re2:^test" INFO[0000] killing container dryrun=false id=28b884fc6bda47fab1dd771319a25642936865243cf4e84ae49c10324959543e name=/test_10 signal=SIGKILL

  • Pumba docker container stops with Fatal error msg
    WARN[0064] failed to delay network for container error="failed to stop netem: failed to start tc-container: Error response from daemon: No such container: 28b884fc6bda47fab1dd771319a25642936865243cf4e84ae49c10324959543e" FATA[0064] failed to delay packets for one or more containers: failed to stop netem: failed to start tc-container: Error response from daemon: No such container: 28b884fc6bda47fab1dd771319a25642936865243cf4e84ae49c10324959543e

Is there a way to keep Pumba running when one of the containers is killed?

@alexei-led alexei-led self-assigned this Sep 12, 2020
alexei-led added a commit that referenced this issue Sep 12, 2020
* fixing linter errors

* linter: using references for Container struct in many places

* fix build instructions #170

* can skip error in chaos command and continue on next interval tick #175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants