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

Bug 1525968

Summary: [GUI] - each event in host Events list appears 10 times.
Product: [oVirt] ovirt-engine Reporter: Kobi Hakimi <khakimi>
Component: Frontend.WebAdminAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: awels, bugs, gshereme, khakimi, lsvaty, mperina
Target Milestone: ovirt-4.2.1Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.1   
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: 2018-02-12 11:55:44 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
Same host event 10 times
none
works for me none

Description Kobi Hakimi 2017-12-14 14:06:32 UTC
Created attachment 1368007 [details]
Same host event 10 times

Description of problem:
[GUI] - each event in host Events list appears 10 times.

Version-Release number of selected component (if applicable):
Software Version:4.2.0.2-0.1.el7

How reproducible:
100%

Steps to Reproduce:
1. Open the Hosts page and move host to maintenance/activate.
2. Open the Events tab.

Actual results:
You can see the same line 10 times.

Expected results:
One line per event

Additional info:
see attached snapshot

Comment 1 Greg Sheremeta 2017-12-14 15:27:08 UTC
Works for me on latest ovirt master (git 4265064)

Was this a fresh install or an upgrade?

Comment 2 Greg Sheremeta 2017-12-14 15:27:34 UTC
Created attachment 1368054 [details]
works for me

Comment 3 Kobi Hakimi 2017-12-14 22:21:04 UTC
(In reply to Greg Sheremeta from comment #1)
> Works for me on latest ovirt master (git 4265064)
> 
> Was this a fresh install or an upgrade?

It was on a fresh installation of latest rhv 4.2.0-11 
if you want you can take a look at the engine:
https://hosted-engine-02.scl.lab.tlv.redhat.com/ovirt-engine

the same issue appears in other qe env:
https://jenkins-vm-03.qa.lab.tlv.redhat.com

Comment 4 Oved Ourfali 2017-12-15 13:28:45 UTC
What happens when querying for host events in the API?
Other objects?

Comment 5 Greg Sheremeta 2017-12-15 13:36:20 UTC
>>> events = api.events.list(query='host=host_mixed_1')
>>> for e in events:
...     print(e.get_description())
... 
Status of host host_mixed_1 was set to Up.
VDSM host_mixed_1 command HSMGetAllTasksStatusesVDS failed: Recovering from crash or Initializing
VDSM host_mixed_1 command SpmStatusVDS failed: Recovering from crash or Initializing


Seems fine in the database. It could be a UI problem, or a problem with the query we use.

Comment 6 Yaniv Kaul 2017-12-17 11:53:24 UTC
severity?

Comment 7 Kobi Hakimi 2017-12-17 12:06:06 UTC
(In reply to Yaniv Kaul from comment #6)
> severity?
It looks bad:
medium-high

Comment 8 Oved Ourfali 2017-12-19 06:48:58 UTC
Alexander, can you take a look?

Comment 9 Alexander Wels 2017-12-19 14:05:16 UTC
So I looked into this, and the problem is in the backend. The result set on the backend contains multiple copies of the same row. The UI doesn't do anything but display the data.

Comment 10 Lucie Leistnerova 2018-01-15 16:29:29 UTC
Adding host to maintenance shows only one event, other actions also. So it seems ok in my environment. Feel free to reopen if it happens again.

verified in ovirt-engine-webadmin-portal-4.2.1.1-0.1.el7.noarch

Comment 11 Sandro Bonazzola 2018-02-12 11:55:44 UTC
This bugzilla is included in oVirt 4.2.1 release, published on Feb 12th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.1 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.