Bug 765815 - not able to add filters to repo using add_filters
Summary: not able to add filters to repo using add_filters
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-09 14:16 UTC by Preethi Thomas
Modified: 2015-03-23 01:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-09 17:37:30 UTC


Attachments (Terms of Use)

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.


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