Bug 1212825 - Race condition in docker/podman stop
Summary: Race condition in docker/podman stop
Status: IN_PROGRESS
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP3
Classification: SUSE Linux Enterprise Server
Component: Containers (show other bugs)
Version: SLES15SP3Maint-Upd
Hardware: Other Other
: P5 - None : Normal
Target Milestone: unspecified
Assignee: Danish Prakash
QA Contact: E-mail List
URL: https://openqa.suse.de/tests/11383574...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-28 19:43 UTC by Ricardo Branco
Modified: 2024-05-22 10:49 UTC (History)
5 users (show)

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---
dcermak: needinfo? (rbranco)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Branco 2023-06-28 19:43:49 UTC
Details in upstream bug:
https://github.com/containers/podman/issues/19038

## Observation

openQA test in scenario sle-15-SP3-EC2-CHOST-BYOS-Updates-x86_64-publiccloud_containers@64bit fails in
[podman_network_cni](https://openqa.suse.de/tests/11383574/modules/podman_network_cni/steps/142)

## Test suite description
The base test suite is used for job templates defined in YAML documents. It has no settings of its own.


## Reproducible

Fails since (at least) Build [20230618-1](https://openqa.suse.de/tests/11383574) (current job)


## Expected result

Last good: [20230617-1](https://openqa.suse.de/tests/11378055) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.suse.de/tests/latest?arch=x86_64&distri=sle&flavor=EC2-CHOST-BYOS-Updates&machine=64bit&test=publiccloud_containers&version=15-SP3)
Comment 1 Dan Čermák 2023-09-26 09:49:46 UTC
I would suggest to change the code from `xargs podman stop` to `xargs podman rm -f` as that will circumvent the inherent TOCTU. Sadly, we were not able to find a way how to fix this inherent podman issue.
Comment 2 Felix Niederwanger 2024-03-27 12:31:42 UTC
Update: We see the same issue with docker on 15-SP4 now: https://openqa.suse.de/tests/13886270#step/docker/133

> docker stop CONTAINER
> docker ps
> ... shows the CONTAINER still in status UP
Comment 3 Felix Niederwanger 2024-05-22 10:49:53 UTC
For the record: We see this issue also on 15-SP6: https://openqa.suse.de/tests/14413815#step/docker/176