Bug 1059228 - [events] Incorrect mapping: DWH_STOPPED - History Service Started
Summary: [events] Incorrect mapping: DWH_STOPPED - History Service Started
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.4.0
Assignee: Eli Mesika
QA Contact: Petr Beňas
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-29 13:15 UTC by Jiri Belka
Modified: 2016-02-10 19:09 UTC (History)
11 users (show)

Fixed In Version: ovirt-3.4.0-beta3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-12 14:03:30 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 23890 0 None None None Never
oVirt gerrit 24086 0 None None None Never

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


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