Bug 669372

Summary: Consumer group key-value pairs not displayed when viewing a consumer
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
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:06:29 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 14:13:23 UTC
Snippets from e-mail:

"Take the scenario where a consumer has no key-value pairs but its group does. When we do a `pulp-admin consumer list` or `pulp-admin consumer info`, it shows the consumer as having no key-value pairs. But using `pulp-admin consumer get_keyvalues` shows the ones from the group.

IMO, this is a bug, but I'm curious what others think. We're showing inconsistent information, or we need to make it very clear that the `consumer info` case isn't taking into account consumer group info."


"+1

We should show the inherited group keyvalues both places.  Maybe we should make it clear which are group level attributes, and which ones are consumer level"

Comment 1 Sayli Karmarkar 2011-01-14 19:23:25 UTC
Fixed. Consumer group key-value pairs inherited by a consumer are now displayed when viewing a consumer.

Comment 2 Jay Dobies 2011-01-14 20:08:12 UTC
Fixed in build 0.124.

Comment 3 Preethi Thomas 2011-01-14 21:15:54 UTC
Fails_qa

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


Consumer info still doesn't show the key value info



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

Id                 	mygroup                  
Description        	None                     
Consumer ids       	['preethi.usersys.redhat.com']
Additional info    	{'city': 'Raleigh', 'location': 'rdu'}


[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    	city  :  Raleigh,
 			location  :  rdu,

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

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

[root@preethi ~]# pulp-admin consumer info --help
Usage: pulp-admin <options> consumer info <options>

Options:
  -h, --help      show this help message and exit
  --id=ID         consumer identifier eg: foo.example.com
  --show-profile  show package profile information associated with this
                  consumer
[root@preethi ~]# pulp-admin consumer info --id=preethi.usersys.redhat.com
+------------------------------------------+
            Consumer Information
+------------------------------------------+

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

Comment 4 Sayli Karmarkar 2011-01-14 21:43:31 UTC
Forgot to make changes to "consumer info" similar to "consumer list". Updated consumer info to show inherited key-value attributes as well.

Comment 5 Jay Dobies 2011-01-17 14:22:57 UTC
Fixed in 0.125.

Comment 6 Preethi Thomas 2011-01-18 20:46:55 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.129-1.fc14.noarch


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

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


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

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

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

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

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.