spiegel_podman/pkg/api/handlers/libpod
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
..
containers.go set !remote build tags where needed 2024-08-19 11:41:28 +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_stats.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
generate.go Remove containers/common/pkg/config from pkg/util 2024-09-06 07:45:04 -04:00
healthcheck.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
images.go scp: add option types 2024-10-14 21:46:55 -04:00
images_pull.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
info.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
kube.go feat(libpod): support kube play tar content-type (#24015) 2024-09-27 15:40:55 +02:00
kube_test.go feat(libpod): support kube play tar content-type (#24015) 2024-09-27 15:40:55 +02:00
manifests.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
play.go set !remote build tags where needed 2024-08-19 11:41:28 +02:00
pods.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
swagger_spec.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
volumes.go volume ls: fix race that caused it to fail 2024-11-07 17:39:55 +01:00