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:
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.
Please attach host upgrade log of a slow upgrade run
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
Verified on ovirt-engine-4.4.3.5-0.5.el8ev.noarch
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.