Bug 1550553

Summary: [RFE] How to reclain space after migrating repo from immediate to on-demand policy
Product: Red Hat Satellite Reporter: Andrea Perotti <aperotti>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: aperotti, jentrena, mhrivnak, pcreech, ttereshc
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-21 23:23:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1399395    

Description Andrea Perotti 2018-03-01 12:51:38 UTC
Description of problem:
Customers using Satellite prior the introduction of On-Demand policy for repos are consuming a **lot** of space in mirroring not only metadata but also binary rpms on their satellites.

Migrating all the existing repos to On-Demand policy do not affect the previously downloaded content.

In order to get rid of the previously downloaded content, atm is needed to remove the repo synced into sat6. But this require to delete all the CVs making use of that repo.

Version-Release number of selected component (if applicable):
sat6.2.latest
sat6.3

How reproducible:
always

Steps to Reproduce:
1. sync a repo with immediate policy
2. (/var/lib/pulp/content/units/rpm start growning)
2. change the policy to on-demand

Actual results:
/var/lib/pulp/content/units/rpm stop growning but do not delete content not really needed anymore

Expected results:
free up space in: /var/lib/pulp/content/units/rpm

If all the needed bits are in place, this could be just a doc bug, if there are tech elements to be implemented, let's do it: that's the goal

Comment 2 pulp-infra@redhat.com 2018-03-01 15:32:42 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 3 pulp-infra@redhat.com 2018-03-01 15:32:45 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.