Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1079208 - [notifier] Inconsistency of console event messages
Summary: [notifier] Inconsistency of console event messages
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.5.0
Assignee: Mooli Tayer
QA Contact: Jiri Belka
Whiteboard: infra
Depends On:
Blocks: rhev3.5beta 1156165
TreeView+ depends on / blocked
Reported: 2014-03-21 08:41 UTC by Jiri Belka
Modified: 2016-02-10 19:36 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-02-17 17:11:59 UTC
oVirt Team: Infra
Target Upstream Version:

Attachments (Terms of Use)
notifier.log (deleted)
2014-03-21 08:41 UTC, Jiri Belka
no flags Details

System ID Priority Status Summary Last Updated
oVirt gerrit 26456 None None None Never

Description Jiri Belka 2014-03-21 08:41:48 UTC
Created attachment 877161 [details]

Description of problem:
See inconsistence between following two event messages:

2014-03-21 09:31:19,339 INFO  [org.ovirt.engine.core.notifier.transport.smtp.Smtp] Send email to []
 [alertMessage (, [user admin initiated console session for VM fff]]
2014-03-21 09:31:19,339 DEBUG [org.ovirt.engine.core.notifier.transport.smtp.Smtp] body:
 [Time:2014-03-21 09:30:57.907
Message:user admin initiated console session for VM fff
User Name: admin
VM Name: fff
Host Name: dell-r210ii-03
Template Name: Blank
Data Center Name: Default
2014-03-21 09:31:19,583 INFO  [org.ovirt.engine.core.notifier.transport.smtp.Smtp] Send email to []
 [alertMessage (, [User admin@internal is connected to VM fff.]]
2014-03-21 09:31:19,583 DEBUG [org.ovirt.engine.core.notifier.transport.smtp.Smtp] body:
 [Time:2014-03-21 09:31:10.251
Message:User admin@internal is connected to VM fff.
User Name: admin@internal
VM Name: fff
Host Name: dell-r210ii-03
Template Name: Blank

'User admin@internal' vs 'user admin'...

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. register a subscriber for 'VM console connected' and 'VM console is initiated'
2. check mails

Actual results:
inconsistency of format

Expected results:
same format

Additional info:
i doubt there's a use for 'VM console is initiated' event message... :-)

Comment 1 Mooli Tayer 2014-04-06 11:34:48 UTC
So we have two events here:
VM_SET_TICKET, called from SetVmTicketCommand
VM_CONSOLE_CONNECTED, called from VdsEventListener.processOnClientIpChange

VM_SET_TICKET represents the normal flow where user name comes from a command. 
in VM_CONSOLE_CONNECTED (and VM_CONSOLE_DISCONNECTED) since there is no command
the username is retrieved explicitly using vmDynamic.getConsoleCurrentUserName()
that returns username@domain.
This method is used (in events context) only for these two events
(cosole connect & disconnect)
so I will add code to remove the '@internal' locally.

Comment 2 Jiri Belka 2014-06-13 12:29:10 UTC
ok, ovirt-engine-tools-3.5.0-0.0.master.20140605145557.git3ddd2de.el6.noarch

 [alertMessage (, [user admin initiated console session for VM test]]
 [alertMessage (, [User admin is connected to VM test.]]

Comment 3 Eyal Edri 2015-02-17 17:11:59 UTC
rhev 3.5.0 was released. closing.

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