Bug 760172

Summary: consumer history logs the events as created/deleted vs registered/unregistered
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: James Slagle <jslagle>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:15:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.