Bug 2040474

Summary: [RFE] Add progress tracking for Cluster Upgrade
Product: Red Hat Enterprise Virtualization Manager Reporter: Scott Dickerson <sdickers>
Component: ovirt-engineAssignee: Scott Dickerson <sdickers>
Status: CLOSED ERRATA QA Contact: Ivana Saranova <isaranov>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5.0CC: emarcus, rszwajko, sgratch
Target Milestone: ovirt-4.5.0Keywords: FutureFeature, ZStream
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.5.0 ovirt-engine-ui-extensions-1.3.2-1 ovirt-ansible-collection-2.0.2-1 ovirt-engine-api-model-4.5.8-0 Doc Type: Enhancement
Doc Text:
The Administration Portal cluster upgrade interface has been improved to provide better error messaging and status and progress indications.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-26 16:23: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 Scott Dickerson 2022-01-13 18:47:53 UTC
Following up BZ1750426, enhance the cluster_upgrade ansible role to track the percent complete progress of the operation.  Logging percent complete via events allows easy access to the status of the long running progress.

Requirements:

- Log progress as a percent complete indication along with a report of what step is currently running.

- Log to events so it is easy to check on over time.

- Ensure the same correlation id is used across all related events to make it easy to see all the event together.

- Add a progress bar to the "Update Status" column of the Cluster grid in the Admin Portal that displays the percent complete.  This will replace the static text "Upgrade in progress".

Comment 2 Scott Dickerson 2022-02-15 22:03:32 UTC
> 
> Requirements:
> 
> - Log progress as a percent complete indication along with a report of what
> step is currently running.
> 
> - Log to events so it is easy to check on over time.
> 
> - Ensure the same correlation id is used across all related events to make
> it easy to see all the event together.
> 

These 3 requirements are complete.  When https://github.com/oVirt/ovirt-engine-ui-extensions/pull/25
is merged, the correlation id will tie all of the event together.

> 
> - Add a progress bar to the "Update Status" column of the Cluster grid in
> the Admin Portal that displays the percent complete.  This will replace the
> static text "Upgrade in progress".
> 

This work is currently in progress in the ovirt-engine-ui-extensions and ovirt-engine/webadmin projects.

Comment 5 Sandro Bonazzola 2022-03-29 16:16:40 UTC
We are past 4.5.0 feature freeze, please re-target.

Comment 6 Sharon Gratch 2022-03-29 17:09:08 UTC
(In reply to Sandro Bonazzola from comment #5)
> We are past 4.5.0 feature freeze, please re-target.

All is merged for 4.5.

Comment 9 Ivana Saranova 2022-05-04 15:34:07 UTC
Steps:
1) Have hosts to be upgraded
2) Login to webadmin, go to clusters
3) Click on upgrade and follow the steps (select multiple hosts)
4) Run the upgrade and follow the log, events and clusters table row

Results:
Upgrade modal log works as intended and contains progress logger that works as intended. Events are logged along the whole process. Events in the events tab are also logged properly and have a correlation_id which is accessible from the upgrade modal (clicking on the show in events button), which makes it easier to filter out unnecessary events. The cluster table contains a column called Upgrade status that has a progress bar in case the upgrade is happening and is tracking the progress correctly.

Hosts were upgraded and cluster upgrade finished successfully.

Verified in:
ovirt-ansible-collection-2.0.3-1.el8ev.noarch
ovirt-engine-ui-extensions-1.3.3-1.el8ev.noarch
ovirt-engine-4.5.0.6-0.7.el8ev.noarch

Comment 14 errata-xmlrpc 2022-05-26 16:23:26 UTC
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