Bug 1478687

Summary: [UI] - Events in the engine appear in reverse order
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: Frontend.WebAdminAssignee: Alexander Wels <awels>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bcholler, bmcclain, bugs, emesika, gianluca.cecchi, gshereme, lveyde, mkalinin, mperina, oourfali, pmatyas
Target Milestone: ovirt-4.1.6Keywords: Regression
Target Release: rule-engine: ovirt-4.1+
rule-engine: ovirt-4.2+
rule-engine: blocker+
Hardware: x86_64   
OS: Linux   
Fixed In Version: ovirt-engine- Doc Type: Bug Fix
Doc Text:
Cause: A regression bug caused system events to be sorted chronologically, earliest events at the top. Fix: Events are now properly sorted, latest at the top.
Story Points: ---
Clone Of:
: 1486513 (view as bug list) Environment:
Last Closed: 2017-09-19 10:03:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1486513    

Description Michael Burman 2017-08-06 06:08:00 UTC
Description of problem:
[UI] - Events tab doesn't refreshed or updated with any latest changes done on the system.

It looks like the main Events tab and the Notification events tab stopped from being updated with latest changes done on the system.

I'm performing actions and i don't see any events reported or added to the events tab.

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

How reproducible:
Seems to be always on latest master.

Steps to Reproduce:
1. Perform changes in the engine - run VM, migrate, save networks on host, stop VM and so on..

Actual results:
No events added to the event tab.

Expected results:
Should work as expected

Comment 1 Red Hat Bugzilla Rules Engine 2017-08-07 19:02:35 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Michael Burman 2017-08-16 05:26:48 UTC
4.1.5-4 version affected by this bug as well.
Event log isn't being refreshed in real time. There is a long delay between the action that was currently done and between what is being displayed in the event log.

Comment 3 Michael Burman 2017-08-16 05:34:17 UTC
Just to be clear, when i say delay, it's a 6-7 days delay!
Raising severity as it's affecting the admin work and he has no clue if operation has been succeeded in real time.
This bug should be fixed for 4.1.5 as well.

Comment 4 Gianluca Cecchi 2017-08-28 08:11:10 UTC
I confirm after updating from 4.1.3 to 4.1.5, now events tab, both in main view and in detailed views (eg select VM and then its events), events appear in reversed order: newer at bottom.

Comment 5 Greg Sheremeta 2017-08-28 13:22:14 UTC
This appears to be something wrong with the query. We haven't changed any UI code in 4.1.z related to events.

Comment 6 Greg Sheremeta 2017-08-28 13:30:43 UTC
*** Bug 1478334 has been marked as a duplicate of this bug. ***

Comment 7 Oved Ourfali 2017-08-29 15:48:15 UTC
Vojtech did some changes around it in bug 1445235.
One patch was pushed to 4.1.5, and another to 4.1.6.
But, 4.1.5 has a change in behavior that's for sure.

Comment 8 Greg Sheremeta 2017-08-30 13:55:27 UTC
Yes, I was incorrect in Comment 5.

Comment 9 Oved Ourfali 2017-08-30 16:22:22 UTC
*** Bug 1486513 has been marked as a duplicate of this bug. ***

Comment 10 Marina Kalinin 2017-08-30 21:37:24 UTC
Note, this also affects the bottom window events, which you cannot sort manually by clicking on the column.

Comment 11 samuel macko 2017-09-01 11:19:25 UTC
Verified in Red Hat Virtualization Manager Version:

 1. Create new VM
 2. Run VM
 3. Create snapshot of VM
 4. Power off VM
 5. Remove VM

 VM ... was created by ...
 Network Interface ... was plugged to VM ...
 Interface ... was added to VM ...
 Add-Disk operation of ... was initiated on VM ...
 The disk ... was successfully added to VM ...
 VM ... was started by ...
 VM ... started on Host ...
 Snapshot 'snap-test' creation for VM '...' was ...
 The disk 'snapshot_memory' was successfully added.
 The disk 'snapshot_metadata' was successfully added.
 Snapshot 'snap-test' creation for VM '...' has been completed.
 VM ... powered off by ...
 VM ... is down. 
 VM ... was successfully removed.

Comment 12 samuel macko 2017-09-01 11:53:57 UTC
Updated title.

Correct bug for events order is https://bugzilla.redhat.com/show_bug.cgi?id=1481144

This bug is regarding refresh of events tab.

Comment 13 Michael Burman 2017-09-01 13:42:59 UTC
Samuel , this bug shouldn't be verified as it failedQA on

Note that this report and BZ 1481144 are the same bug and you shouldn't have change it's summary. Thi sis the same issue and Greg mentioned in comment#8 in BZ 1481144

Comment 14 Michael Burman 2017-09-01 13:51:06 UTC
The issue still exist on

Comment 15 Oved Ourfali 2017-09-01 13:58:17 UTC
I don't think it was part of the build.
Was it?

Comment 16 Greg Sheremeta 2017-09-01 15:23:38 UTC
Correct, it'll be in the next 4.1.6 build.

Comment 17 Petr Matyáš 2017-09-08 10:06:16 UTC
Verified on ovirt-engine-