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

oci: Improve testing of overlay cleanup #1678

Merged

Conversation

preminger
Copy link
Contributor

Description of the Pull Request (PR):

In working on #1659 and #1671 , it emerged that in some scenarios (esp. when running as root), our cleanup of overlay mounts was incomplete. Importantly, that cleanup process intentionally logs errors and proceeds (rather than erroring out), in order to clean up as much as possible even under error conditions; but that means that we can't rely simply on exit codes to detect problems in the cleanup of overlay mounts.

This PR adds an e2e test specifically dedicated to detecting such problems, by running an OCI-mode container as root, and comparing the number of current mounts before & after the run.

@preminger preminger marked this pull request as ready for review May 12, 2023 16:12
@preminger preminger force-pushed the improve-oci-overlay-teardown-testing branch from 0b59292 to 03bda57 Compare May 12, 2023 16:15
@preminger preminger requested a review from dtrudg May 12, 2023 16:24
Copy link
Member

@dtrudg dtrudg left a comment

Choose a reason for hiding this comment

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

LGTM. Comments are tiny nit-picks... you can leave them as-is, or amend the commit and merge (don't need a re-review).

e2e/actions/oci.go Outdated Show resolved Hide resolved
e2e/actions/oci.go Outdated Show resolved Hide resolved
@preminger preminger force-pushed the improve-oci-overlay-teardown-testing branch from 3c786e3 to 5861d54 Compare May 12, 2023 16:34
@preminger preminger merged commit cd6fa5c into sylabs:main May 12, 2023
edytuk pushed a commit to vzokay/apptainer that referenced this pull request Jun 28, 2023
(sylabs/singularity#1678)

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
edytuk pushed a commit to vzokay/apptainer that referenced this pull request Jul 4, 2023
(sylabs/singularity#1678)

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
edytuk pushed a commit to vzokay/apptainer that referenced this pull request Jul 11, 2023
(sylabs/singularity#1678)

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
edytuk pushed a commit to vzokay/apptainer that referenced this pull request Jul 21, 2023
(sylabs/singularity#1678)

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
edytuk pushed a commit to vzokay/apptainer that referenced this pull request Jul 24, 2023
(sylabs/singularity#1678)

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants