Comment 14 for bug 1860004

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to paunch (master)

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>