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

Bug 1880962

Summary: Upgrade of host is very slow after 4.4.2 upgrade
Product: [oVirt] ovirt-engine Reporter: Rik Theys <rik.theys>
Component: ovirt-host-deploy-ansibleAssignee: Dana <delfassy>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4.2CC: bugs, didi, mperina
Target Milestone: ovirt-4.4.3Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-11 06:41:27 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
host upgrade log none

Description Rik Theys 2020-09-21 09:40:40 UTC
Description of problem:
After upgrading the engine to 4.4.2, upgrading a host is very slow.
In the past an upgrade seems to run a 'yum update' and be done in a few minutes.
Now it seems to update individual packages and setting update_cache=True for _each_ invocation, which makes this take a very long time.

It would be much faster to only run the update_cache=True for the first package and not all of them.

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


How reproducible:


Steps to Reproduce:
1. Upgrade host
2. Check the logs
3.

Actual results:

update_cache=True is set for each update, which makes this very slow.

Expected results:

A fast upgrade like in previous versions.

Additional info:

Comment 1 RHEL Program Management 2020-09-21 09:53:06 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 2 Dana 2020-09-22 12:09:38 UTC
Please attach host upgrade log of a slow upgrade run

Comment 3 Rik Theys 2020-09-22 12:50:12 UTC
Created attachment 1715698 [details]
host upgrade log

Hi,

This is the ansible host upgrade log.

The "Install ovirt-host package if it isn't installed" tasks seems to be run multiple times.

The "ovirt-host-upgrade: Upgrade packages" task loops over all the updates and each invocation of the yum plugin has update_cache set to True, which slows things down and is not necessary for each package. As you can see from the log file, this took 3243 seconds!

Since the update_cache: yes is already set for the check that ovirt-host is installed, it should not be set in the Upgrade packages step. The chance of the repo changing between these two steps is very small.

Regards,
Rik

Comment 4 Petr Matyáš 2020-10-02 12:50:00 UTC
Verified on ovirt-engine-4.4.3.5-0.5.el8ev.noarch

Comment 5 Sandro Bonazzola 2020-11-11 06:41:27 UTC
This bugzilla is included in oVirt 4.4.3 release, published on November 10th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.3 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.