Bug 669802 - consumergroup list output should match that of consumer list
Summary: consumergroup list output should match that of consumer list
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: Sprint 21
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-01-14 20:27 UTC by Preethi Thomas
Modified: 2015-03-23 01:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-15 15:14:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-01-14 20:27:59 UTC
Description of problem:
[root@preethi ~]# rpm -q pulp
pulp-0.0.124-1.fc14.noarch


See consumergroup list does not show the subscribed repo as it does in consumer list.

root@preethi ~]# pulp-admin consumergroup list
+------------------------------------------+
      List of Available Consumer Groups
+------------------------------------------+

Id                 	mygroup                  
Description        	None                     
Consumer ids       	['preethi.usersys.redhat.com']
Additional info    	{}                       


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

Id                 	preethi.usersys.redhat.com
Description        	None                     
Subscribed Repos   	/pulp/api/consumers/preethi.usersys.redhat.com/repoids/
Additional info

Comment 1 Sayli Karmarkar 2011-02-21 21:43:59 UTC
Fixed to make presentation of key-value attributes same for both listing. 

$ sudo pulp-admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	consumer1                
Description        	None                     
Subscribed Repos   	[]                       
Additional info    	key2  :  value2,
 			key1  :  value1,

[skarmark@localhost ~]$ sudo pulp-admin consumergroup list
+------------------------------------------+
      List of Available Consumer Groups
+------------------------------------------+

Id                 	mygroup                  
Description        	None                     
Consumer ids       	[]                       
Additional info    	key2  :  value2,
 			key1  :  value1,

First part of the error is invalid though, as Subscribed Repos is not an attribute of a Consumer Group, by design. When we subscribe repos to a consumer group, that is considered a grouping operation which is performed on all the consumers belonging to that consumer group.

Comment 2 Jeff Ortel 2011-02-22 14:32:37 UTC
Build: 0.140

Comment 3 Preethi Thomas 2011-03-08 19:31:41 UTC
[root@nec-em8 upload]# rpm -q pulp
pulp-0.0.145-1


[root@nec-em8 upload]#  pulp-admin -u admin -p admin consumer list
+------------------------------------------+
            Consumer Information
+------------------------------------------+

Id                 	rhel5                    
Description        	None                     
Subscribed Repos   	[]                       
Additional info    	key3  :  value3,
 			key2  :  value2,
 			key1  :  value1,

[root@nec-em8 upload]# 
[root@nec-em8 upload]# 
[root@nec-em8 upload]# 
[root@nec-em8 upload]#  pulp-admin -u admin -p admin consumergroup list+------------------------------------------+
      List of Available Consumer Groups
+------------------------------------------+

Id                 	rhel5                    
Description        	None                     
Consumer ids       	[]                       
Additional info    	key3  :  value3,
 			key2  :  value2,
 			key1  :  value1,
 			key4  :  value4,

Comment 4 Preethi Thomas 2011-08-15 15:14:26 UTC
Closing with current community release

pulp-0.0.223


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