Bug 672687

Summary: consumer bind doesn't check if the repo is actually existing or not.
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: 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 20   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:06:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 647488    

Description Preethi Thomas 2011-01-25 20:51:28 UTC
Description of problem:

[root@preethi ~]# rpm -q pulp
pulp-0.0.131-1.fc14.noarch


Try to bind a consumer to a repo that does not exists


[root@preethi ~]# pulp-admin consumer bind --id=preethi.usersys.redhat.com --repoid=test
Successfully subscribed consumer [preethi.usersys.redhat.com] to repo [test]

[root@preethi ~]# pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	preethi.usersys.redhat.com
Description        	None                     
Subscribed Repos   	['test', 'f14', 'f14-update']
Additional info    	state  :  nc,
 			location  :  rdu,


Id                 	10.16.79.205             
Description        	None                     
Subscribed Repos   	['f14-update']           
Additional info    	state  :  nc,            

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

Id                 	f14                      
Name               	f14                      
FeedURL            	http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/
FeedType           	yum                      
Arch               	x86_64                   
Sync Schedule      	None                     
Packages           	2766                     
Files              	0                        
Distributions      	ks-f14-x86_64            
Publish            	True                     
Clones             	[]                       
Groups             	None                     


Id                 	f14-update               
Name               	f14-updates              
FeedURL            	http://ftp.linux.ncsu.edu/pub/fedora/linux//updates/14/x86_64/
FeedType           	yum                      
Arch               	noarch                   
Sync Schedule      	None                     
Packages           	5553                     
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     


Id                 	f13                      
Name               	f13                      
FeedURL            	http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/
FeedType           	yum                      
Arch               	x86_64                   
Sync Schedule      	None                     
Packages           	3102                     
Files              	0                        
Distributions      	ks-f13-x86_64            
Publish            	True                     
Clones             	[]                       
Groups             	None

Comment 1 Sayli Karmarkar 2011-01-29 00:19:19 UTC
Fixed

Comment 2 Jay Dobies 2011-02-02 20:07:05 UTC
Fixed in 0.134.

Comment 3 Preethi Thomas 2011-02-03 18:09:52 UTC
verified

[root@preethi ~]# pulp-admin consumer bind --repoid=test --id=preethi
error: operation failed: Repo [test] does not exist
[root@preethi ~]# rpm -q pulp
pulp-0.0.134-1.fc14.noarch

Comment 4 Preethi Thomas 2011-08-16 12:06:33 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:20:38 UTC
Closing with Community Release 15

pulp-0.0.223-4.