Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman mount: ignore ErrLayerUnknown #24091

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Sep 27, 2024

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

Does this PR introduce a user-facing change?

None

@openshift-ci openshift-ci bot added release-note-none approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 27, 2024
@Luap99
Copy link
Member Author

Luap99 commented Sep 27, 2024

@edsantiago I hope this is the last mount race, although I have not tried reproducing for 1+ hours so I cannot be sure either.

Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

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 containers#23671

Signed-off-by: Paul Holzinger <[email protected]>
As shown in containers#23671 these functions can return the raw error without any
useful context to the user which makes it hard to understand where
things went wrong. Simply add some context to some error paths here.

Signed-off-by: Paul Holzinger <[email protected]>
@Luap99 Luap99 added the No New Tests Allow PR to proceed without adding regression tests label Sep 27, 2024
@edsantiago
Copy link
Member

Darn. I'm sorry. Seeing it just now in rawhide root

@Luap99
Copy link
Member Author

Luap99 commented Sep 27, 2024

Darn. I'm sorry. Seeing it just now in rawhide root

That failure seems totally unrelated to podman mount, there is a simple podman run there that is logging a warning.
creating cache file for layer is printed in c/storage in the zstd:chunked path AFAICT

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

openshift-ci bot commented Sep 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe, Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@giuseppe
Copy link
Member

Darn. I'm sorry. Seeing it just now in rawhide root

That failure seems totally unrelated to podman mount, there is a simple podman run there that is logging a warning. creating cache file for layer is printed in c/storage in the zstd:chunked path AFAICT

opened a PR to address it: containers/storage#2119

@mheon
Copy link
Member

mheon commented Sep 30, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 30, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 1f5ec67 into containers:main Sep 30, 2024
73 checks passed
@Luap99 Luap99 deleted the mount-race branch September 30, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. No New Tests Allow PR to proceed without adding regression tests release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman mount: yet another race: layer not known
4 participants