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

detect podman file-system corruption #16362

Closed
idleroamer opened this issue Oct 31, 2022 · 8 comments
Closed

detect podman file-system corruption #16362

idleroamer opened this issue Oct 31, 2022 · 8 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@idleroamer
Copy link
Contributor

idleroamer commented Oct 31, 2022

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind feature

The embedded environment should guarantee the sanity of podman file-system under all circumstances as there is no way to have end-users fix issues manually. Even with the latest podman 4.2, it is still possible to run into such corruptions with a sudden power loss or a forced termination.
I'd like to ask if there is any way to detect improper podman termination or podman kills. So that one can resort to drastic measures like podman system prune -a.
specifically such problem is still reproducible just by killing podman pull halfway.
WARN[0000] Failed to determine if an image is a manifest list: locating item named "manifest" for image with ID "2b7c1336a711be4ec1e5eb43b693770a8aa602d66257f1e11e1f941a41e257c1" (consider removing the image to resolve the issue): file does not exist, ignoring the error
ERRO[0000] Image 2b7c1336a711 exists in local storage but may be corrupted (remove the image to resolve the issue): locating item named "manifest" for image with ID "2b7c1336a711be4ec1e5eb43b693770a8aa602d66257f1e11e1f941a41e257c1" (consider removing the image to resolve the issue): file does not exist Error: 2b7c1336a711: image not known container running with code: 125
Some refs:
#8743
#8005
containers/storage#1136

Steps to reproduce the issue:
I can't reproduce the issue in a reliable manner, but running a script which pulls images and kills the podman in different points in time should reproduce the issue after a few iteration.

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)

Yes

@openshift-ci openshift-ci bot added the kind/feature Categorizes issue or PR as related to a new feature. label Oct 31, 2022
@github-actions
Copy link

github-actions bot commented Dec 1, 2022

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Dec 3, 2022

@mheon @baude Thoughts?

@mheon
Copy link
Member

mheon commented Dec 5, 2022

This seems like more of a c/storage or libimage issue? I don't see why we'd do this at the Podman level, and not either Libimage or c/storage so Podman isn't the only thing that benefits from it? CC @nalind @vrothberg

@vrothberg
Copy link
Member

Yes, it's more a libimage/storage issue. But we tackled such issues over the course of the years, so it would helpful to know which version of Podman @idleroamer is using.

@idleroamer
Copy link
Contributor Author

idleroamer commented Dec 8, 2022

Hi folks, thanks a lot for great job on podman.

The above error in original ticket description I could reproduce in podman 4.2 by killing the podman pull halfway.

@vrothberg
Copy link
Member

Does a subsequent pull work?

@vrothberg
Copy link
Member

Friendly ping @idleroamer

@idleroamer
Copy link
Contributor Author

Sorry for late response but for some reason, I can't reproduce the issue anymore. Nevertheless I observed podman filesystem corruption when the system powers-off in the middle of container creation. I will try to come up with a reproducible scenario and more insights, till then I am fine to close this ticket.

@rhatdan rhatdan closed this as completed Dec 16, 2022
@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 Sep 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

4 participants