summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2024-09-27 14:46:59 +0200
committerPaul Holzinger <pholzing@redhat.com>2024-09-27 15:15:22 +0200
commit5c3019e0288830e77ac19ad330ab77a2277be4ae (patch)
tree288068e9ec082d420a7673c779b81d27a66e04ea
parent87dcf9d9d22afaeccdcbe0aebb7f21ef9d38dd31 (diff)
podman mount: ignore ErrLayerUnknown
When we check for a storage container mount we normally expect a ErrContainerUnknown when it does not exists. However during we check if it is actually mounted we also can get ErrLayerUnknown when the contianer was removed between the Container and Mount checks as they do not happen under the same lock. Fixes #23671 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
-rw-r--r--pkg/domain/infra/abi/containers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go
index 6c9a82099..d2f99a26f 100644
--- a/pkg/domain/infra/abi/containers.go
+++ b/pkg/domain/infra/abi/containers.go
@@ -1418,7 +1418,7 @@ func (ic *ContainerEngine) ContainerMount(ctx context.Context, nameOrIDs []strin
// This can only happen in a narrow race because we first create the storage
// container and then the libpod container so the StorageContainers() call
// above would need to happen in that interval.
- if errors.Is(err, types.ErrContainerUnknown) || errors.Is(err, define.ErrCtrExists) {
+ if errors.Is(err, types.ErrContainerUnknown) || errors.Is(err, types.ErrLayerUnknown) || errors.Is(err, define.ErrCtrExists) {
continue
}
return nil, err