Bug 765815

Summary: not able to add filters to repo using add_filters
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-09 17:37:30 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-12-09 14:16:17 UTC
Description of problem:
add_filters doesn't seem to be working


[root@preethi ~]# pulp-admin repo create --id=test1 --content_type=yum
Successfully created repository [ test1 ]

[root@preethi ~]# pulp-admin repo add_filters --id=test1 -f blacklist
error:  error: operation failed: PulpException: Filters can be added to repos with 'local' feed only


[root@preethi ~]# pulp-admin repo create --id=test2 
Successfully created repository [ test2 ]

[root@preethi ~]# pulp-admin repo add_filters --id=test2 -f blacklist
error:  error: operation failed: PulpException: Filters can be added to repos with 'local' feed only

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


Id                 	test1                    
Name               	test1                    
Repo URL           	https://preethi.usersys.redhat.com/pulp/repos/test1/
Feed URL           	None                     
Feed Type          	None                     
Content Type       	yum                      
Feed Certs         	CA:No   Cert:No
Consumer Certs     	CA:No   Cert:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	[]                       
Notes              	{}                       
Preserve Metadata  	False                    
Checksum Type      	sha256                   


Id                 	test2                    
Name               	test2                    
Repo URL           	https://preethi.usersys.redhat.com/pulp/repos/test2/
Feed URL           	None                     
Feed Type          	None                     
Content Type       	yum                      
Feed Certs         	CA:No   Cert:No
Consumer Certs     	CA:No   Cert:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	[]                       
Notes              	{}                       
Preserve Metadata  	False                    
Checksum Type      	sha256                   




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

Comment 1 Sayli Karmarkar 2011-12-09 17:37:30 UTC
Expected as the build is before commit for ability to filter manually uploaded content. In this case it should not allow adding filters to remote or feedless repos but allow it for 'local' repos.