Bug 754807

Summary: repo clone with filter is syncing packages in the filter as well
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: cperry, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 30   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:12:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Preethi Thomas 2011-11-17 19:26:46 UTC
Description of problem:
If the repo is cloned with blacklist filter the, packages doesn't seem to be getting filtered



[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                 	pulp                     
Name               	pulp                     
Repo URL           	https://preethi.usersys.redhat.com/pulp/repos/repos/pulp/pulp/testing/fedora-16/x86_64/
Feed URL           	http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-16/x86_64/
Feed Type          	remote                   
Content Type       	yum                      
Feed Certs         	CA:No   Cert:No
Consumer Certs     	CA:No   Cert:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	18                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[u'pulp-filter', u'pulp-filter1']
Groups             	None                     
Filters            	[]                       
Notes              	{}                       
Preserve Metadata  	False                    
Checksum Type      	sha256                   


Id                 	pulp-filter              
Name               	pulp-filter              
Repo URL           	https://preethi.usersys.redhat.com/pulp/repos/pulp-filter/
Feed URL           	file:///var/lib/pulp//repos/repos/pulp/pulp/testing/fedora-16/x86_64
Feed Type          	local                    
Content Type       	yum                      
Feed Certs         	CA:No   Cert:No
Consumer Certs     	CA:No   Cert:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	18                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	['blacklist']            
Notes              	{}                       
Preserve Metadata  	False                    
Checksum Type      	sha256                   

[root@preethi ~]# pulp-admin filter list
+------------------------------------------+
              Available Filters
+------------------------------------------+

Id           :               	blacklist                
Description  :               	blacklist                
Type         :               	blacklist                
Package List :               	['gofer', 'grinder']     

[root@preethi ~]# pulp-admin filter list
+------------------------------------------+
              Available Filters
+------------------------------------------+

Id           :               	blacklist                
Description  :               	blacklist                
Type         :               	blacklist                
Package List :               	['gofer', 'grinder']     


[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo content --id=pulp-filter
+------------------------------------------+
           Contents of pulp-filter
+------------------------------------------+

Packages in pulp-filter: 

gofer-package-0.59-1.fc16.noarch.rpm
m2crypto-0.21.1.pulp-5.fc16.x86_64.rpm
python-isodate-0.4.4-2.fc16.noarch.rpm
m2crypto-debuginfo-0.21.1.pulp-5.fc16.x86_64.rpm
pulp-cds-0.0.249-1.fc16.noarch.rpm
mod_wsgi-3.2-6.pulp.fc16.x86_64.rpm
mod_wsgi-debuginfo-3.2-6.pulp.fc16.x86_64.rpm
pulp-client-lib-0.0.249-1.fc16.noarch.rpm
pulp-admin-0.0.249-1.fc16.noarch.rpm
grinder-0.0.129-1.fc16.noarch.rpm
pulp-consumer-0.0.249-1.fc16.noarch.rpm
pulp-common-0.0.249-1.fc16.noarch.rpm
python-webpy-0.32-8.fc16.noarch.rpm
pulp-0.0.249-1.fc16.noarch.rpm
python-qpid-0.7.946106-1.fc16.noarch.rpm
python-rhsm-0.96.4-1.fc16.noarch.rpm
gofer-0.59-1.fc16.noarch.rpm
python-gofer-0.59-1.fc16.noarch.rpm

Errata in pulp-filter: 

 none

Files in pulp-filter: 

 none


Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.249-1.fc15.noarch

Comment 1 Sayli Karmarkar 2011-11-18 21:51:30 UTC
commit eb0d798a30216496f0b0ab2a0edd520c689c5e7f
Author: Sayli Karmarkar <skarmark>
Date:   Fri Nov 18 13:47:02 2011 -0800

    754807 - Added filter application step when importing packages as it is now separated from fetch_content while syncing a local repository

Comment 2 Jeff Ortel 2011-11-18 23:23:10 UTC
build: 0.251

Comment 3 Preethi Thomas 2011-11-21 13:10:11 UTC
[root@preethi ~]# pulp-admin filter list
+------------------------------------------+
              Available Filters
+------------------------------------------+

Id           :               	blacklist                
Description  :               	blacklist                
Type         :               	blacklist                
Package List :               	['gofer', 'grinder']     

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

[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                 	pulp                     
Name               	pulp                     
Repo URL           	https://preethi.usersys.redhat.com/pulp/repos/repos/pulp/pulp/testing/fedora-16/x86_64/
Feed URL           	http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-16/x86_64/
Feed Type          	remote                   
Content Type       	yum                      
Feed Certs         	CA:No   Cert:No
Consumer Certs     	CA:No   Cert:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	18                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[u'pulp-clone']          
Groups             	None                     
Filters            	[]                       
Notes              	{}                       
Preserve Metadata  	False                    
Checksum Type      	sha256                   


Id                 	pulp-clone               
Name               	pulp-clone               
Repo URL           	https://preethi.usersys.redhat.com/pulp/repos/pulp-clone/
Feed URL           	file:///var/lib/pulp//repos/repos/pulp/pulp/testing/fedora-16/x86_64
Feed Type          	local                    
Content Type       	yum                      
Feed Certs         	CA:No   Cert:No
Consumer Certs     	CA:No   Cert:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	15                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	['blacklist']            
Notes              	{}                       
Preserve Metadata  	False                    
Checksum Type      	sha256                   


[root@preethi ~]# pulp-admin repo content --id=pulp-clone
+------------------------------------------+
           Contents of pulp-clone
+------------------------------------------+

Packages in pulp-clone: 

m2crypto-debuginfo-0.21.1.pulp-5.fc16.x86_64.rpm
pulp-admin-0.0.251-1.fc16.noarch.rpm
pulp-common-0.0.251-1.fc16.noarch.rpm
mod_wsgi-debuginfo-3.2-6.pulp.fc16.x86_64.rpm
mod_wsgi-3.2-6.pulp.fc16.x86_64.rpm
pulp-cds-0.0.251-1.fc16.noarch.rpm
pulp-client-lib-0.0.251-1.fc16.noarch.rpm
pulp-consumer-0.0.251-1.fc16.noarch.rpm
python-gofer-0.60-1.fc16.noarch.rpm
pulp-0.0.251-1.fc16.noarch.rpm
python-webpy-0.32-8.fc16.noarch.rpm
m2crypto-0.21.1.pulp-5.fc16.x86_64.rpm
python-qpid-0.7.946106-1.fc16.noarch.rpm
python-rhsm-0.96.4-1.fc16.noarch.rpm
python-isodate-0.4.4-2.fc16.noarch.rpm

Errata in pulp-clone: 

 none

Files in pulp-clone: 

 none

[root@preethi ~]# rpm -q plp
package plp is not installed
[root@preethi ~]# rpm -q pulp
pulp-0.0.251-1.fc15.noarch

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