Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 783485

Summary: repo clone with filters should update repo metadata
Product: [Retired] Pulp Reporter: Pradeep Kilambi <pkilambi>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: cstpierr
Target Milestone: ---   
Target Release: Sprint 31   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.