Bug 754809 - filters can be added to repo clone with origin feed
Summary: filters can be added to repo clone with origin feed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 30
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-17 19:33 UTC by Preethi Thomas
Modified: 2015-03-23 01:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:14:46 UTC


Attachments (Terms of Use)

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.


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