Bug 835209 - ovirt-engine-backend: some tasks related events are not translated properly [TEXT]
Summary: ovirt-engine-backend: some tasks related events are not translated properly [...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Oved Ourfali
QA Contact: Tomas Dosek
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-25 19:23 UTC by Oded Ramraz
Modified: 2016-02-10 19:03 UTC (History)
9 users (show)

Fixed In Version: si11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 20:01:34 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Oded Ramraz 2012-06-25 19:23:06 UTC
Description of problem:

Some tasks related events are not translated properly , e.g when attaching tag to VM i see the following message under tasks: "AttachVmsToTag" ( why is it task BTW? )



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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Itamar Heim 2012-06-26 09:27:03 UTC
also when adding a disk:
"Adding Disk DiskName"

Comment 2 Oded Ramraz 2012-06-26 15:09:59 UTC
"Failed to restart VM 33-4 on Host VdsName"

Comment 3 Oded Ramraz 2012-06-28 20:36:58 UTC
"Add-Disk operation of 'dd' was initiated on VM VmName by vdcadmin."

Comment 4 Oved Ourfali 2012-07-08 11:33:33 UTC
I took a look, and there are many tag/bookmark operations that are monitored (i.e. appear in the tasks tab).

Should I remove them all? Don't seem to be very relevant to be monitored as tasks.

Comment 5 Oved Ourfali 2012-07-08 12:18:14 UTC
Need info regarding the messages as well (in addition to my previous comment on monitoring the task).

1. "Failed to restart VM 33-4 on Host VdsName"
2. "Add-Disk operation of 'dd' was initiated on VM VmName by vdcadmin."

Message #1 can be caused due to the host being null in the code, and that might happen if it wasn't set at all. Can we remove the VdsName from this message?
If not, we need to switch to two message, one when the host is null, and one when it isn't. A log can help here to see how you got to this situation.

Message #2 - it is simple. We use the same code when adding a disk to a VM, and when adding it independently. In the former the log is correct, however in the latter no VM is involved, so the VM is null. Should we split it to two different messages, or using the message "Add-Disk operation of 'dd' was initiated by vdcadmin" enough?

Comment 6 Miki Kenneth 2012-07-09 09:52:10 UTC
Message 1:
this is a corner case - it is suffiecent to change the VdsName to <null>.

Message 2:
Split is required. The VmName is important for the Advance View of the Events TAB.
It is used for auditing mechanism.

Comment 10 Tomas Dosek 2012-07-31 08:52:50 UTC
Verified - si12 - All message types mentioned above are properly translated.


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