Bug 801113 - CDS unassociated repos don't get cleaned up on sync
Summary: CDS unassociated repos don't get cleaned up on sync
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: CDS
Version: 2.1
Hardware: i386
OS: Linux
high
urgent
Target Milestone: ---
: ---
Assignee: mkovacik
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On: 800525 952912
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-07 17:25 UTC by James Slagle
Modified: 2013-04-17 01:03 UTC (History)
5 users (show)

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.
Clone Of: 800525
Environment:
Last Closed: 2012-08-24 11:53:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Verifying screen log (14.75 KB, text/plain)
2012-07-26 12:23 UTC, mkovacik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:1205 0 normal SHIPPED_LIVE RHUI 2.1 Enhancement Update 2012-08-24 15:52:31 UTC

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


Note You need to log in before you can comment on or make changes to this bug.