Bug 801113

Summary: CDS unassociated repos don't get cleaned up on sync
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: James Slagle <jslagle>
Component: CDSAssignee: mkovacik
Status: CLOSED ERRATA QA Contact: wes hayutin <whayutin>
Severity: urgent Docs Contact:
Priority: high    
Version: 2.1CC: achan, kbidarka, scressi, sghai, skarmark
Target Milestone: ---Keywords: Reopened, Triaged
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Deleting repositories from the Red Hat Update Agent (RHUA) did not remove the repository content from associated Content Delivery Servers. This update now correctly removes repository contents from Content Delivery Servers when those repositories are deleted on the RHUA.
Story Points: ---
Clone Of: 800525 Environment:
Last Closed: 2012-08-24 11:53:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 800525, 952912    
Bug Blocks:    
Attachments:
Description Flags
Verifying screen log none

Description James Slagle 2012-03-07 17:25:15 UTC
+++ This bug was initially created as a clone of Bug #800525 +++

Description of problem:

CDS unassociated repos don't get cleaned up upon CDS repo sync

Version-Release number of selected component (if applicable):

1.0

How reproducible:

Very reproducible

Steps to Reproduce:
1. pulp-admin -u admin -p admin cds associate_repo --repoid=puppet --hostname=pulpcds
2. pulp-admin -u admin -p admin cds  sync --hostname=pulpcds
3. cd /var/lib/pulp-cds/repos/repo/puppet/epel/6Server/x86_64
4. pulp-admin -u admin -p admin cds unassociate_repo --repoid=puppet --hostname=pulpcds
5. pulp-admin -u admin -p admin cds  sync --hostname=pulpcds
6. cd /var/lib/pulp-cds/repos/repo/puppet/epel/6Server/x86_64

Actual results:

unassociated repos in /var/lib/pulp still exist after cds repo sync

Expected results:

repos should be cleaned up, otherwise disk space on all CDSs increases forever for repos it doesn't control

Additional info:

Comment 1 James Slagle 2012-05-08 19:38:28 UTC
When Bug 802547 is implemented, this will get fixed as well.  Closing as a dupe.

*** This bug has been marked as a duplicate of bug 802547 ***

Comment 2 James Slagle 2012-06-12 01:38:40 UTC
QA:

Need to verify that after deleting a repository from rhui-manager, and doing a CDS sync, that the content is no longer available for clients to download.

Comment 3 mkovacik 2012-07-26 12:23:12 UTC
Created attachment 600498 [details]
Verifying screen log

Verified in RHEL-6.3-RHUI-2.1-20120719.0-Server-x86_64-DVD1.iso. See the attachment...

Comment 4 Athene Chan 2012-08-14 05:24:32 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Deleting repositories from the Red Hat Update Agent (RHUA) did not remove the repository content from associated Content Delivery Servers. This update now correctly removes repository contents from Content Delivery Servers when those repositories are deleted on the RHUA.

Comment 6 errata-xmlrpc 2012-08-24 11:53:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-1205.html