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

store: use system.EnsureRemoveAll to rm container #1106

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

giuseppe
Copy link
Member

if the container deletion fails with the simple os.RemoveAll(path),
then attempt again using system.EnsureRemoveAll(path).

The difference is that system.EnsureRemoveAll(path) tries to umount
eventual mounts that are keeping the directory busy.

It might help with: containers/podman#11594

Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com

@rhatdan
Copy link
Member

rhatdan commented Jan 14, 2022

@umohnani8
Copy link
Member

LGTM

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM, I like the idea

@flouthoc
Copy link
Collaborator

LGTM , EnsureRemoveAll will do the replaced retries I guess.

@flouthoc
Copy link
Collaborator

/lgtm
/approve

@TomSweeneyRedHat
Copy link
Member

LGTM
but it looks like a rebase is neeeded

if the container deletion fails with the simple os.RemoveAll(path),
then attempt again using system.EnsureRemoveAll(path).

The difference is that system.EnsureRemoveAll(path) tries to umount
eventual mounts that are keeping the directory busy.

It might help with: containers/podman#11594

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe giuseppe force-pushed the attempt-to-solve-podman-11594 branch from cf3e777 to 3e69d9a Compare January 14, 2022 15:17
@giuseppe
Copy link
Member Author

rebased and pushed

@rhatdan
Copy link
Member

rhatdan commented Jan 14, 2022

Ignoring devicemapper flake.

@rhatdan rhatdan merged commit 8034dcc into containers:main Jan 14, 2022
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.

None yet

6 participants