Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1059228

Summary: [events] Incorrect mapping: DWH_STOPPED - History Service Started
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engineAssignee: Eli Mesika <emesika>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Beňas <pbenas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: aberezin, acathrow, bazulay, emesika, gklein, iheim, lpeer, pbenas, pstehlik, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-3.4.0-beta3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-12 14:03:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Belka 2014-01-29 13:15:09 UTC
Description of problem:

In Users -> $user -> Event Notifier (Admin Portal) one can assign an event for notification.

Under DW Events there is:
- History Service Started
- History Service Error

Assigning 'History Service Started' is in fact 'DWH_STOPPED'.

engine=# select * from event_subscriber ;
            subscriber_id             | event_up_name | method_id |  method_address   | tag_name 
--------------------------------------+---------------+-----------+-------------------+----------
 fdfc627c-d875-11e0-90f0-83df133b58cc | DWH_STOPPED   |         0 | jbelka | 
(1 row)

$ grep "DWH" LocalizedEnums.properties 
EventNotificationEntity___DWH=Data Warehouse Events:
AuditLogType___DWH_STOPPED=History Service Started
AuditLogType___DWH_STARTED=History Service Stopped
AuditLogType___DWH_ERROR=History Service Error

LocalizedEnums.properties contains switched "mapping" for DWH_STOPPED and DWH_STARTED.

Version-Release number of selected component (if applicable):
* ovirt-engine-backend-3.4.0-0.2.master.20140112020439.git9ad8529.el6.noarch
* 3.3 as well
* 3.2 as well

How reproducible:
100%

Steps to Reproduce:
1. assign 'History Service Started' to an user for notification
2. check DB for subscribers (select * from event_subscriber)
3.

Actual results:
...Started... is STOPPED in fact

Expected results:
start is start, stop is stop

Additional info:

Comment 1 Sandro Bonazzola 2014-02-19 12:26:26 UTC
This bug is referenced in ovirt-engine-3.4.0-beta3 logs. Moving to ON_QA

Comment 2 Petr Beňas 2014-02-20 14:36:05 UTC
Verified in ovirt-engine-3.4.0-0.11.beta3.el6.noarch.

Comment 3 Itamar Heim 2014-06-12 14:03:30 UTC
Closing as part of 3.4.0