Skip to content

container: always check if mountpoint is mounted#20299

Merged
openshift-ci[bot] merged 2 commits intocontainers:mainfrom
giuseppe:fix-flake-ENOENT
Oct 9, 2023
Merged

container: always check if mountpoint is mounted#20299
openshift-ci[bot] merged 2 commits intocontainers:mainfrom
giuseppe:fix-flake-ENOENT

Conversation

@giuseppe
Copy link
Copy Markdown
Member

@giuseppe giuseppe commented Oct 7, 2023

when running as a service, the c.state.Mounted flag could get out of sync if the container is cleaned up through the cleanup process.

To avoid this, always check if the mountpoint is really present before skipping the mount.

Closes: #17042

Does this PR introduce a user-facing change?

fix a race condition where a container restarted by the Podman daemon doesn't mount its storage

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Oct 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe

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

The pull request process is described here

Details 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 7, 2023
@packit-as-a-service
Copy link
Copy Markdown

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

@edsantiago
Copy link
Copy Markdown
Member

Thank you for persevering on this! Please don't lose your weekend over it, though.

@giuseppe giuseppe marked this pull request as draft October 8, 2023 08:18
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 8, 2023
@giuseppe giuseppe marked this pull request as ready for review October 8, 2023 20:06
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 8, 2023
@edsantiago
Copy link
Copy Markdown
Member

I keep seeing re-pushes but I don't see any difference in the new push. I think you're missing something?

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe
Copy link
Copy Markdown
Member Author

giuseppe commented Oct 9, 2023

I keep seeing re-pushes but I don't see any difference in the new push. I think you're missing something?

I wanted to test the PR better since it is a flake. I am analyzing the integration tests failures now

when running as a service, the c.state.Mounted flag could get out of
sync if the container is cleaned up through the cleanup process.

To avoid this, always check if the mountpoint is really present before
skipping the mount.

[NO NEW TESTS NEEDED]

Closes: containers#17042

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@mheon
Copy link
Copy Markdown
Member

mheon commented Oct 9, 2023

Code LGTM

@mheon
Copy link
Copy Markdown
Member

mheon commented Oct 9, 2023

I think we can ignore the RPM failures?

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Oct 9, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 9, 2023
@openshift-ci openshift-ci bot merged commit 8615b16 into containers:main Oct 9, 2023
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Jan 8, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

executable file /catatonit [et al] not found in $PATH: No such file or directory

4 participants