Reviewed: https://review.opendev.org/708341 Committed: https://git.openstack.org/cgit/openstack/paunch/commit/?id=3006b547cbdc8ae979ffaed0268d5831a576546e Submitter: Zuul Branch: master
commit 3006b547cbdc8ae979ffaed0268d5831a576546e Author: Bogdan Dobrelya <email address hidden> Date: Tue Feb 18 12:10:57 2020 +0100
Fallback to a rm -f action for podman
There is a podman specific behavior that cannot be reproduced with docker:
$ docker run -itd --privileged --name=foo busybox sleep 1000 $ docker exec -it foo sh -c "sleep 180" $ kill -STOP <that process> $ docker stop foo $ docker rm foo
works w/o errors, while podman fails the latter step: Error: cannot remove container <id> has active exec sessions: container state improper
To make it consistent, add a fallback to re-try it with rm -f.
Related-bug: #1860004 Change-Id: Id387f624078ef874aa902656952582c9c54f3f2e Signed-off-by: Bogdan Dobrelya <email address hidden>
Reviewed: https:/ /review. opendev. org/708341 /git.openstack. org/cgit/ openstack/ paunch/ commit/ ?id=3006b547cbd c8ae979ffaed026 8d5831a576546e
Committed: https:/
Submitter: Zuul
Branch: master
commit 3006b547cbdc8ae 979ffaed0268d58 31a576546e
Author: Bogdan Dobrelya <email address hidden>
Date: Tue Feb 18 12:10:57 2020 +0100
Fallback to a rm -f action for podman
There is a podman specific behavior that cannot be reproduced with
docker:
$ docker run -itd --privileged --name=foo busybox sleep 1000
$ docker exec -it foo sh -c "sleep 180"
$ kill -STOP <that process>
$ docker stop foo
$ docker rm foo
works w/o errors, while podman fails the latter step:
Error: cannot remove container <id> has active exec sessions: container
state improper
To make it consistent, add a fallback to re-try it with rm -f.
Related-bug: #1860004 74aa90265695258 2c9c54f3f2e
Change-Id: Id387f624078ef8
Signed-off-by: Bogdan Dobrelya <email address hidden>