Story #5926
closedAs a user, I can clear out downloaded files from on_demand repos
0%
Description
A repository using on_demand will store artifacts locally when they are requested, but there really isn't a way to have pulp delete the locally stored files and free disk space if they are unlikely to be used again.
In the case of something like RHEL repositories, older packages and errata are unlikely to ever be needed again. You may have had dozens of kernels downloaded in your repository over the years, but going forward, only the newest one is likely to be needed. Being able to clear out on_demand content from a repository would allow the user to gain back that space.
After being 'cleaned', i would expect any content that is requested through the content app to download it as if it had never been downloaded before. Essentially the cleaning would take it back to its pre-downloaded state.
Related issues
Updated by ttereshc almost 5 years ago
To state the obvious (just not to forget to document it): URLs from which content has been downloaded might not be valid anymore, so there is no guarantee that after a cleanup content will be available.
Updated by bmbouter almost 5 years ago
This feature seems very useful, but how can we handle shared content across many repos? Since Pulp de-duplicates content across repositories, removing it from the filesystem from one repo will remove it from any repo that contains that Artifact. This seems like a side effect that would make Pulp feel unreliable.
My thinking on it is that we can't think of this as a repository-level operation and accept "side effects", so maybe we should revision the request as a system-level space reclamation feature? What do you think?
Updated by jsherril@redhat.com almost 5 years ago
I think a system wide space reclamation operation makes sense, and would solve our use cases.
Updated by daviddavis almost 5 years ago
- Tracker changed from Issue to Story
- Subject changed from support clearing out downloaded files from on_demand repos to As a user, I can clear out downloaded files from on_demand repos
- % Done set to 0
Updated by ggainey over 4 years ago
- Tags Katello added
- Tags deleted (
Katello-P3)
Updated by ipanova@redhat.com over 3 years ago
- Status changed from NEW to CLOSED - DUPLICATE
Closing in favor of https://pulp.plan.io/issues/8459
Updated by ttereshc over 3 years ago
- Is duplicate of Story #8459: As a user I want to reclaim disk space for a list of repositories added