Bug 669372 - Consumer group key-value pairs not displayed when viewing a consumer
Summary: Consumer group key-value pairs not displayed when viewing a consumer
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-01-13 14:13 UTC by Jay Dobies
Modified: 2015-03-23 01:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:06:29 UTC
Embargoed:


Attachments (Terms of Use)

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.


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