Bug 674849

Summary: consumer delete does not validate against consumer names
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: ---   
Target Release: ---   
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:07:47 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-02-03 14:32:03 UTC
Description of problem:
[root@preethi ~]# rpm -q pulp
pulp-0.0.134-1.fc14.noarch
[root@preethi ~]# pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                      ppreethi                 
Description             None                     
Subscribed Repos        []                       
Additional info                 

[root@preethi ~]# pulp-client consumer delete --id=preethi
Successfully deleted consumer [preethi]

[root@preethi ~]# pulp-client consumer delete --id=preethi
Successfully deleted consumer [preethi]

Comment 1 Sayli Karmarkar 2011-02-04 07:10:28 UTC
$ sudo pulp-admin consumer delete --id=foo
error: operation failed: Consumer [foo] does not exist

Comment 2 Jay Dobies 2011-02-04 19:24:00 UTC
Fixed in 0.135.

Comment 3 Preethi Thomas 2011-02-07 19:34:09 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.135-1.fc14.noarch
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	client1                  
Description        	None                     
Subscribed Repos   	['f14']                  
Additional info    	                         

[root@preethi ~]# pulp-client consumer delete --id=preethi
error: operation failed: Consumer [preethi] does not exist

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.