Bug 754809

Summary: filters can be added to repo clone with origin feed
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:14:46 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:33:42 UTC
Description of problem:
Repo clone with --feed=origin lets you add filters. Filters should only be added to local repos

[root@preethi ~]# pulp-admin repo clone --id=pulp --clone_id=pulp-filter1 -f blacklist --feed=origin -F
Repository [pulp] is being cloned as [pulp-filter1]
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-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                   


Id                 	pulp-filter1             
Name               	pulp-filter1             
Repo URL           	https://preethi.usersys.redhat.com/pulp/repos/pulp-filter1/
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             	[]                       
Groups             	None                     
Filters            	['blacklist']            
Notes              	{}                       
Preserve Metadata  	False                    
Checksum Type      	sha256                   



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

Comment 1 Sayli Karmarkar 2011-11-18 08:32:54 UTC
$ sudo pulp-admin repo clone --id test1 --clone_id test1-clone-origin --filter test-filter --feed origin -F 
error:  error: operation failed: Filters cannot be applied to clones with origin feed

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

Comment 3 Preethi Thomas 2011-11-21 12:56:48 UTC
[root@preethi ~]# pulp-admin repo clone --id=pulp --clone_id=pulp-clone --feed=origin -f blacklist -F
error:  error: operation failed: Filters cannot be applied to clones with origin feed
[root@preethi ~]# rpm -q pulp
pulp-0.0.251-1.fc15.noarch

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

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