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

Bug 1486135

Summary: Events in the UI does not appear as soon as the operation is completed
Product: [oVirt] ovirt-engine Reporter: RamaKasturi <knarra>
Component: Frontend.WebAdminAssignee: Sahina Bose <sabose>
Status: CLOSED DUPLICATE QA Contact: RamaKasturi <knarra>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.1.5.2CC: bugs, gshereme, knarra, mperina
Target Milestone: ovirt-4.1.6Flags: rule-engine: ovirt-4.1+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-06 14:30:25 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:
Attachments:
Description Flags
Events tab advanced view
none
Evens tab basic view none

Description RamaKasturi 2017-08-29 07:08:53 UTC
Description of problem:
I see that events in the UI are not appearing as soon as the operation is completed. Events are appearing very late in the UI.

Version-Release number of selected component (if applicable):
Red Hat Virtualization Manager Version: 4.1.5.2-0.1.el7

How reproducible:
Always

Steps to Reproduce:
1. Install HC setup with latest RHV bits.
2. Enable gfapi access
3. Perform any operation on any of the entities

Actual results:
I see that event related to that operations does not come once the operation is completed.

Expected results:
Events should appear in the events tab as soon as the operation is completed.

Additional info:

Comment 1 Sahina Bose 2017-08-29 07:47:15 UTC
Can you provide instances of the operation? 
What's the delay experienced for events appearing? Can you provide engine logs?

Comment 2 RamaKasturi 2017-08-29 08:57:42 UTC
I have created two new vms today morning and i do not see any events related to that. 

Last event which is seen in the UI is "VM applinuxvm was started by admin@internal-authz (Host: rhsqa-grafton3.lab.eng.blr.redhat.com)." and this was started yesterday @ 9.06:32 PM.


copied engine logs in the link below.

http://rhsqe-repo.lab.eng.blr.redhat.com/sosreports/HC/1486135/

Attaching screenshots for the events tab from both basic and advanced view.

Comment 3 RamaKasturi 2017-08-29 09:02:54 UTC
Created attachment 1319375 [details]
Events tab advanced view

Comment 4 RamaKasturi 2017-08-29 09:03:28 UTC
Created attachment 1319376 [details]
Evens tab basic view

Comment 5 Sahina Bose 2017-08-29 09:09:25 UTC
I see events in the engine.log:
2017-08-29 03:34:27,256-04 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-60) [478abb47] EVENT_ID: USER_ADD_VM(34), Correlation ID: 4184df82-fd6b-461a-b0e5-03b799bc259f, Job ID: df9df79f-2f40-41e4-8c67-74b19828b470, Call Stack: null, Custom Event ID: -1, Message: VM RHEL7.3_clone1 was created by admin@internal-authz.

2017-08-29 03:38:52,218-04 INFO  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-6-thread-33) [b6efbd00-86cf-48f9-a3e8-896a795a2949] EVENT_ID: USER_STARTED_VM(153), Correlation ID: b6efbd00-86cf-48f9-a3e8-896a795a2949, Job ID: b86e8c20-0937-48aa-b818-7f69c857933b, Call Stack: null, Custom Event ID: -1, Message: VM RHEL7.3_clone1 was started by admin@internal-authz (Host: rhsqa-grafton3.lab.eng.blr.redhat.com).

It looks like an issue in querying and displaying events?
Moving to infra team

Comment 6 Martin Perina 2017-09-06 14:19:08 UTC
Hmm, from the screen I can see that events are not sorted descending (latest event at the top), so it could be related to the BZ1478687 and BZ1486513. To confirm that could you please scroll down to the latest event and check if events are displayed within reasonable delay?

Comment 7 Greg Sheremeta 2017-09-06 14:30:25 UTC
This is a duplicate of Bug 1481144. We did fix it in 4.1.6.

*** This bug has been marked as a duplicate of bug 1481144 ***

Comment 8 RamaKasturi 2017-09-06 14:33:34 UTC
Oh, yeah. That is it. I can see when i scroll down.

Thanks Martin