Bug 1687845
| Summary: | Multiple notification for one time host activation | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Shivraj <shipatil> |
| Component: | ovirt-engine | Assignee: | rszwajko |
| Status: | CLOSED ERRATA | QA Contact: | Ivana Saranova <isaranov> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.2.8-3 | CC: | delfassy, emarcus, lleistne, lsvaty, michal.skrivanek, mkalinin, mperina, pnovotny, rhodain, sgratch |
| Target Milestone: | ovirt-4.5.0 | Keywords: | ZStream |
| Target Release: | 4.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-4.5.0 | Doc Type: | Bug Fix |
| Doc Text: |
Previously, displaying notifications for hosts activated from maintenance mode was done when the actual job activation "end time" was after the last displayed notification. But if there was a time difference between server and the browser, the job "end time" could be in the future.
In this release, notifications rely only on the server time, and the job's "end time" is no longer compared to local browser time. As a result, only one "Finish activating host" notification appears.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-05-26 16:22:26 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: | |
| Embargoed: | |||
|
Description
Shivraj
2019-03-12 13:30:55 UTC
I'm almost sure we are not created mutliple audit log events for signle activation, so it seems to me like UI code issue. sync2jira sync2jira I have set https://github.com/oVirt/ovirt-engine/blob/7002b8bf78c44e7b5ea60896306905812e47430d/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/AuditLogType.java#L1664 to true so that messages will be logged in the db even when the host's status is unassigned (https://github.com/oVirt/ovirt-engine/blob/e84e4831d7dc679e1e7969fbffa559715a43524b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InitVdsOnUpCommand.java#L414) The last message in the db related to host deploy is- log_type_name | VDS_DETECTED message | Status of host node01 was set to Up. and it appears once, so it looks like this can be an issue with multiple queries of the job in the UI part As mentioned above we were not able to reproduce the issue, where single event is store multiple times in audit_log table. Also the raised multiple notification about "Finished Activating Host" is not part of audit_log, but it's a result of quering status of a job. So the problem is somewhere in GWT code which is quering jobs and displaying those notifications. Those notification popups were introduced by UX team, so Sharon could you please take over the bug? This seems a regression after BZ [1]. The fix provided there added explicitly an exception for activating host from maintenance mode. To prevent displaying multiple notifications a timestamp was used. However it seems that in some cases the time resolution is too low - check my comment [2] for details. The general rule seems to work well for all other types of notifications. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1471082 [2] https://gerrit.ovirt.org/c/ovirt-engine/+/82714/5/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/overlay/TasksPresenterWidget.java#74 Problem is triggered by time difference between client and server. Steps to re-create: 1. adjust clock on the client - move it back to be 2 min earlier then server clock 2. move host to maintenance 3. activate the host Result: notifications are being displayed for ca 2 min Steps 1: 1. Put the host in maintenance mode. 2. Activate the host in maintenance mode. Steps 2: 1. adjust clock on the client - move it back to be 2 min earlier then server clock 2. move host to maintenance 3. activate the host Results: I was not able to reproduce the issue with either duplicate events or prolonged notifications. Verified in: ovirt-engine-4.5.0.2-0.7.el8ev.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: RHV Manager (ovirt-engine) [ovirt-4.5.0] security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:4711 |