spiegel_podman/pkg/api/handlers/compat
Paul Holzinger 9e38b455e4
volume ls: fix race that caused it to fail
If volume ls was called while another volume was removed at the right
time it could have failed with "no such volume" as we did not ignore
such error during listing. As we list things and this no longer exists
the correct thing is to ignore the error and continue like we do with
containers, pods, etc...

This was pretty easy to reproduce with these two commands running in
different terminals:
while :; do bin/podman volume create test && bin/podman volume rm test || break; done
while :; do bin/podman volume ls || break ; done

I have a slight feeling that this might solve #23913 but I am not to
sure there so I am not adding a Fixes here.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 9a0c0b2eef)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-07 17:39:55 +01:00
..
auth.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
changes.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers.go Add ExposedPorts to Inspect's ContainerConfig 2024-10-01 07:54:52 -04:00
containers_archive.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_attach.go fix races in the HTTP attach API 2024-08-27 15:00:08 +02:00
containers_create.go Add --health-max-log-count, --health-max-log-size, --health-log-destination flags 2024-09-25 14:01:35 +02:00
containers_export.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_logs.go API: container logs flush status code 2024-11-01 18:54:13 +01:00
containers_pause.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_prune.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_restart.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_start.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_stats_freebsd.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_stats_linux.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_stop.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
containers_top.go Match output of Compat Top API to Docker 2024-09-17 11:34:22 -04:00
containers_unpause.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
events.go rework event code to improve API errors 2024-11-01 18:54:13 +01:00
exec.go Fix podman stop and podman run --rmi 2024-08-20 09:51:18 -04:00
images.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_build.go Fixes for vendoring Buildah 2024-10-02 18:38:38 +02:00
images_history.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_prune.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_push.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_remove.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_save.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_search.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images_tag.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
info.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
networks.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
ping.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
resize.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
secrets.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
system.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
types.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
unsupported.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
version.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
volumes.go volume ls: fix race that caused it to fail 2024-11-07 17:39:55 +01:00