Bug 783485 - repo clone with filters should update repo metadata
Summary: repo clone with filters should update repo metadata
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 31
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-20 15:34 UTC by Pradeep Kilambi
Modified: 2013-09-09 16:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Pradeep Kilambi 2012-01-20 15:34:53 UTC
Description of problem:

Cloning a repo with filters, removes packages but leaves references to those in the metadata as clone reuses the parent metadata. Trigger a repo metadata update if a clone involves filters to keep the metadata in sync with filesystem + db.

Comment 1 Pradeep Kilambi 2012-01-23 20:25:40 UTC
commit 9cef1e0a13199ac06c79c89837bdbe3df25af313

Comment 2 Jeff Ortel 2012-01-23 22:22:23 UTC
build: 0.261

Comment 3 Preethi Thomas 2012-01-24 19:30:15 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.261-1.fc15.noarch
[root@preethi ~]# 

[root@preethi ~]# pulp-admin filter add_package --id=blacklist -p zsh
Successfully added packages to filter [ blacklist ]

[root@preethi ~]# pulp-admin repo clone --id=f15 --clone_id=f15-clone --feed=parent -f blacklist -F
Repository [f15] is being cloned as [f15-clone]
Clone: Finished
Item Details: 
Tree Files: 5/5
RPMs: 2934/2935


[root@f15-client ~]# yum repolist
Loaded plugins: pulp-profile-update
repo id                         repo name                                 status
f15-clone                       f15-clone                                 2,934
testing-fedora-pulp             Pulp Testing Builds                          20
updates                         Fedora 15 - x86_64 - Updates              8,929
repolist: 11,883
[root@f15-client ~]# yum list zsh
Loaded plugins: pulp-profile-update
Available Packages
zsh.x86_64                         4.3.15-1.fc15                         updates
[root@f15-client ~]#

Comment 4 Preethi Thomas 2012-02-24 20:16:57 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:18:04 UTC
Pulp v1.0 is released.


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