Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

tests: Retry rm'ing container #2047

Merged
merged 1 commit into from
Aug 10, 2022
Merged

tests: Retry rm'ing container #2047

merged 1 commit into from
Aug 10, 2022

Conversation

djgalloway
Copy link
Contributor

Example where this would be needed:

docker rm -f 4fcd7c2012b6
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
time="2022-08-09T17:22:11Z" level=error msg="container \"4fcd7c2012b63e6bf9bffd9b7d490d12f1d557ba924e889192ec858821019d91\" does not exist"

Error: cannot remove container 4fcd7c2012b63e6bf9bffd9b7d490d12f1d557ba924e889192ec858821019d91 as it could not be stopped: timed out waiting for file /tmp/podman-run-1111/libpod/tmp/exits/4fcd7c2012b63e6bf9bffd9b7d490d12f1d557ba924e889192ec858821019d91: internal libpod error
docker rm -f 4fcd7c2012b6
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
ERRO[0000] Joining network namespace for container 4fcd7c2012b63e6bf9bffd9b7d490d12f1d557ba924e889192ec858821019d91: error retrieving network namespace at /tmp/podman-run-1111/netns/netns-600d6718-1a5e-2fed-bf39-ad7048004be2: unknown FS magic on "/tmp/podman-run-1111/netns/netns-600d6718-1a5e-2fed-bf39-ad7048004be2": ef53
4fcd7c2012b63e6bf9bffd9b7d490d12f1d557ba924e889192ec858821019d91

See containers/podman#13227

This also makes the function fail fatally.

@djgalloway djgalloway changed the title tests: Try rm'ing container tests: Retry rm'ing container Aug 9, 2022
@djgalloway djgalloway requested a review from guits August 9, 2022 18:06
@djgalloway djgalloway force-pushed the retry branch 3 times, most recently from 3ab1063 to 1286280 Compare August 9, 2022 18:40
Example where this would be needed:
```
docker rm -f 4fcd7c2012b6
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
time="2022-08-09T17:22:11Z" level=error msg="container \"4fcd7c2012b63e6bf9bffd9b7d490d12f1d557ba924e889192ec858821019d91\" does not exist"

Error: cannot remove container 4fcd7c2012b63e6bf9bffd9b7d490d12f1d557ba924e889192ec858821019d91 as it could not be stopped: timed out waiting for file /tmp/podman-run-1111/libpod/tmp/exits/4fcd7c2012b63e6bf9bffd9b7d490d12f1d557ba924e889192ec858821019d91: internal libpod error
docker rm -f 4fcd7c2012b6
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
ERRO[0000] Joining network namespace for container 4fcd7c2012b63e6bf9bffd9b7d490d12f1d557ba924e889192ec858821019d91: error retrieving network namespace at /tmp/podman-run-1111/netns/netns-600d6718-1a5e-2fed-bf39-ad7048004be2: unknown FS magic on "/tmp/podman-run-1111/netns/netns-600d6718-1a5e-2fed-bf39-ad7048004be2": ef53
4fcd7c2012b63e6bf9bffd9b7d490d12f1d557ba924e889192ec858821019d91
```

See containers/podman#13227

This also makes the function fail fatally.

Signed-off-by: David Galloway <[email protected]>
@guits guits merged commit fd7d46f into main Aug 10, 2022
@guits guits deleted the retry branch August 10, 2022 07:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants