Bug 639402 - Fix repository re-sync so it does not delete uploaded packages
Summary: Fix repository re-sync so it does not delete uploaded packages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: John Matthews
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks: pulp-verified
TreeView+ depends on / blocked
 
Reported: 2010-10-01 16:33 UTC by John Matthews
Modified: 2011-08-16 13:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 13:59:21 UTC
Embargoed:


Attachments (Terms of Use)

Description John Matthews 2010-10-01 16:33:07 UTC
When a repository is re-synced, the packages which are present in pulp but do not exist on the repo source will be removed.  This creates a problem when we allow uploaded packages to be added to an existing repo.

Goal of this bug is to allow a repo to be create, say from a local source.
Upload a package to that repo.
Re-sync that repo, verify the uploaded the package is still present.

Comment 1 Pradeep Kilambi 2010-10-06 16:00:33 UTC
scoped for sprint 16

Comment 2 John Matthews 2010-10-20 14:58:22 UTC
Fixed with below commit on 10/8/10

http://git.fedorahosted.org/git/?p=pulp.git;a=commit;h=2c607491d1cfada701fd95c0236f25151285c666

Test for this might just be a verification of the code.

Test would be to sync a repo with a few packages.
Then upload a package.
Resync repo and verify uploaded package is present

Issue is that we dont allow uploaded packages to repos with feed.

Comment 3 Preethi Thomas 2010-10-27 19:25:34 UTC
moving to verified

<preethi> hey question. so we are not allowed to upload to a repo with the feed right?
<preethi> am looking at this bug
<preethi> https://bugzilla.redhat.com/show_bug.cgi?id=639402
<jmatthews> yes, as of now we can not do that, but we did structure the code so maybe in the future we can change it without much work

Comment 4 Preethi Thomas 2011-08-16 13:59:21 UTC
Closing with Community Release 15

pulp-0.0.223-4.


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