Bug 669505

Summary: "Subscribed Repos" in `pulp-admin consumer list` isn't very useful
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: skarmark, tsanders
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:11 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 Jay Dobies 2011-01-13 20:10:02 UTC
$ pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	client1                  
Description        	None                     
Subscribed Repos   	/pulp/api/consumers/client1/repoids/
Additional info    	                         



We're not really doing much for the user by showing them a URL for "Subscribed Repos". Since we show the repo IDs in consumer info, we should either:
 a. remove the URL from the list output since we don't give them an easy way to retrieve it
 b. show the repo IDs in list as we do in info


For comparison, here is the `consumer info` output:

$ pulp-admin consumer info --id client1
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	client1                  
Description        	None                     
Subscribed Repos   	['repo1']                
Additional info    	{}

Comment 1 Jay Dobies 2011-01-13 20:23:59 UTC
*** Bug 646976 has been marked as a duplicate of this bug. ***

Comment 2 Sayli Karmarkar 2011-01-14 23:04:48 UTC
Fixed.
$ sudo pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	consumer1                
Description        	None                     
Subscribed Repos   	[u'example']             
Additional info    	usage  :  dev-workstation,
 			foo  :  bar2,
 			location  :  rdu,

Comment 3 Jay Dobies 2011-01-17 14:22:58 UTC
Fixed in 0.125.

Comment 4 Preethi Thomas 2011-01-18 20:36:31 UTC
verified

[root@preethi ~]# rpm -q pulp
pulp-0.0.129-1.fc14.noarch
[root@preethi ~]# pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	preethi.usersys.redhat.com
Description        	None                     
Subscribed Repos   	[]                       
Additional info    	                         

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

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

Id                 	preethi.usersys.redhat.com
Description        	None                     
Subscribed Repos   	['f14']                  
Additional info    	                         

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

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

Id                 	preethi.usersys.redhat.com
Description        	None                     
Subscribed Repos   	['f13', 'f14']           
Additional info

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.