Bug 669802

Summary: consumergroup list output should match that of consumer list
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: cperry, jconnor, jortel, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 21   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-15 15:14:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 647488    

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