-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
libpod: cleanup default cache on system reset #22830
Conversation
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: containers#22825 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Do you know if there a reason that the blob cache is not located on the actual graphroot but rather hard coded to ~/.local/share/containers/cache? I am asking because this means that running e2e system reset tests (which should run isolated) will now nuke my local blob info cache. |
no idea why we picked that directory. @mtrmac do you think we should change it to be under |
The reason is that it has no direct relationship with the c/storage graph root. It is used, and beneficial, e.g. also for |
Should podman system reset then delete it or not in your opinion? |
I don’t have a strong opinion. You’re right to point out that the relationship is not that tight. OTOH, from time to time, the blob info cache is key in behavior decisions, and users who are unaware of it find it very hard to reproduce the unwanted behavior they are trying to report. In that sense, having |
Ack thanks, as it is just a cache and it is not like many user running podman system reset with non default location anyway I think it is fine then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[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 |
I do agree it’s not ideal if Podman tests affect things outside of the test perimeter. I’m tempted to say that should be changed in the tests, maybe by changing |
/lgtm |
Bump c/images to v5.29.5 as part of the a fix for https://issues.redhat.com/browse/ACCELFIX-267 "Podman system resets" containers#22830 Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
Closes: #22825