Bug 1880962 - Upgrade of host is very slow after 4.4.2 upgrade
Summary: Upgrade of host is very slow after 4.4.2 upgrade
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: ovirt-host-deploy-ansible
Version: 4.4.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.4.3
: ---
Assignee: Dana
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-21 09:40 UTC by Rik Theys
Modified: 2020-11-11 06:44 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-11-11 06:41:27 UTC
oVirt Team: Infra
Embargoed:
pm-rhel: ovirt-4.4+


Attachments (Terms of Use)
host upgrade log (1.17 MB, text/plain)
2020-09-22 12:50 UTC, Rik Theys
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 111419 0 master MERGED engine: remove update cache for each item when upgrading packages 2020-11-15 08:56:01 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.