Project

Profile

Help

Story #5926

As a user, I can clear out downloaded files from on_demand repos

Added by jsherril@redhat.com about 2 months ago. Updated about 2 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello-P3
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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.

History

#2 Updated by ttereshc about 2 months 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.

#3 Updated by bmbouter about 2 months 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?

#4 Updated by jsherril@redhat.com about 2 months ago

I think a system wide space reclamation operation makes sense, and would solve our use cases.

#5 Updated by daviddavis about 2 months 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

#6 Updated by daviddavis about 2 months ago

  • Tags Katello-P3 added

Please register to edit this issue

Also available in: Atom PDF