Bug 760172 - consumer history logs the events as created/deleted vs registered/unregistered
Summary: consumer history logs the events as created/deleted vs registered/unregistered
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: James Slagle
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-05 15:18 UTC by Preethi Thomas
Modified: 2013-09-09 16:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:15:16 UTC


Attachments (Terms of Use)

Description Preethi Thomas 2011-12-05 15:18:29 UTC
Description of problem:

consumer history logs the events as created/deleted vs registered/unregistered

[root@pulpf15-client ~]# pulp-consumer -u admin -p admin consumer history
+------------------------------------------+
              Consumer History
+------------------------------------------+

Event Type            	Consumer Created         
Timestamp             	2011-12-05 15:15:49+00:00
Originator            	admin                    

Event Type            	Consumer Deleted         
Timestamp             	2011-12-05 14:55:50+00:00
Originator            	admin                    


pulp-admin: error: Option --id is required; please see --help
[root@preethi ~]# pulp-admin consumer history --id=pulp-client
+------------------------------------------+
              Consumer History
+------------------------------------------+

Event Type            	Consumer Created         
Timestamp             	2011-12-05 15:15:49+00:00
Originator            	admin                    

Event Type            	Consumer Deleted         
Timestamp             	2011-12-05 14:55:50+00:00
Originator            	admin                    



Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.254-1.fc15.noarch

Comment 1 James Slagle 2011-12-20 13:15:53 UTC
Updated these log messages, added a db migration for already logged messages as well.

Older clients before this commit are just going to see consumer_{registered|unregistered} instead of the more human readable strings b/c they don't have the updated constants.py file.  I think we can just write this off as a pre-V1 band-aid.

commit 92c923779cb619c8f529f50239ac03b6ad483dd0

Comment 2 Jeff Ortel 2012-01-04 21:48:36 UTC
build: 0.256

Comment 3 Preethi Thomas 2012-01-05 19:48:32 UTC
[root@preethi CDN]# rpm -q pulp
pulp-0.0.256-1.fc15.noarch
[root@preethi CDN]# 

verified
[root@preethi CDN]# pulp-admin consumer history --id=rhel6-client
+------------------------------------------+
              Consumer History
+------------------------------------------+

Event Type            	Consumer Registered      
Timestamp             	2012-01-05 19:37:34+00:00
Originator            	admin                    

Event Type            	Consumer Unregistered    
Timestamp             	2012-01-05 19:37:28+00:00
Originator            	admin                    

Event Type            	Consumer Registered      
Timestamp             	2012-01-05 19:36:54+00:00
Originator            	admin                    

[root@preethi CDN]# 

[root@katello-test ~]#  pulp-consumer -u admin -p admin consumer history
+------------------------------------------+
              Consumer History
+------------------------------------------+

Event Type            	Consumer Registered      
Timestamp             	2012-01-05 19:37:34+00:00
Originator            	admin                    

Event Type            	Consumer Unregistered    
Timestamp             	2012-01-05 19:37:28+00:00
Originator            	admin                    

Event Type            	Consumer Registered      
Timestamp             	2012-01-05 19:36:54+00:00
Originator            	admin                    

[root@katello-test ~]#

Comment 4 Preethi Thomas 2012-02-24 20:15:16 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:16:53 UTC
Pulp v1.0 is released.


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