Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1404346 - [Scale] Full refresh taking a lot of time for RHV provider
[Scale] Full refresh taking a lot of time for RHV provider
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers (Show other bugs)
5.7.0
Unspecified Unspecified
medium Severity medium
: GA
: 5.9.0
Assigned To: Boriso
Ilanit Stein
rhev
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-12-13 11:04 EST by Ilanit Stein
Modified: 2018-03-01 08:08 EST (History)
5 users (show)

See Also:
Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-03-01 08:08:54 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0380 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 13:37:12 EST

  None (edit)
Description Ilanit Stein 2016-12-13 11:04:39 EST
Description of problem:
A full refresh takes a lot of time (for ~2200 VMs, it takes 17 minutes for a full refresh, when CFME appliance and RHV reside in the same geographical region).
Need to analyze what is taking most of the time, and check how this timing can be improved.

Version-Release number of selected component (if applicable):
CFME-5.7.0.14
RHV-4.0.5
Comment 2 Dave Johnson 2017-07-13 23:46:19 EDT
Please assess the importance of this issue and update the priority accordingly.  Somewhere it was missed in the bug triage process.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#priority for a reminder on each priority's definition.

If it's something like a tracker bug where it doesn't matter, please set it to Low/Low.
Comment 3 Ilanit Stein 2017-07-18 02:54:49 EDT
Clearing need info on me, as I am not suppose to set the priority, but the PM.
Comment 4 Oved Ourfali 2017-07-31 02:01:22 EDT
Ilanit, can you re-test with v4 enabled and with the latest changes from Boris?
Comment 5 Ilanit Stein 2017-08-14 08:15:07 EDT
Boris's change (Disk Preloading, async part) is yet merged.
Therefore, this cannot be tested yet.
Comment 6 Oved Ourfali 2017-08-31 07:23:24 EDT
Boris, this will be probably improved using the preloading disks + async requests. Please use this bug for the relevant PRs.
Comment 8 CFME Bot 2017-10-03 07:04:16 EDT
New commit detected on ManageIQ/manageiq-providers-ovirt/master:
https://github.com/ManageIQ/manageiq-providers-ovirt/commit/73726e9205146e4f6132960b383e25019e17dfe9

commit 73726e9205146e4f6132960b383e25019e17dfe9
Author:     Boris Odnopozov <bodnopoz@redhat.com>
AuthorDate: Tue Jul 25 16:32:43 2017 +0300
Commit:     Boris Odnopozov <bodnopoz@redhat.com>
CommitDate: Tue Oct 3 10:15:23 2017 +0300

    Make full refresh through OvirSDK use asynchronous calls to oVirt
    
    This should make the refresh significantly faster
    https://bugzilla.redhat.com/show_bug.cgi?id=1404346

 .../redhat/infra_manager/api_integration.rb        |    2 +
 .../redhat/infra_manager/futures_collector.rb      |  100 +
 .../infra_manager/inventory/strategies/v4.rb       |  156 +-
 config/settings.yml                                |    2 +
 .../redhat/infra_manager/futures_collector_spec.rb |  103 +
 .../infra_manager/inventory/strategies/v4_spec.rb  |   66 +-
 .../infra_manager/refresh/refresher_4_1_spec.rb    |   32 -
 .../refresh/refresher_4_async_spec.rb              |  655 ++
 spec/support/ovirt_sdk/connection_vcr.rb           |   46 +
 .../inventory/strategies/v4/collect_disks.yml      | 4046 +++++++++++++
 .../refresh/ovirt_sdk_refresh_recording.yml        | 6376 ++++++++++++++++++++
 11 files changed, 11490 insertions(+), 94 deletions(-)
 create mode 100644 app/models/manageiq/providers/redhat/infra_manager/futures_collector.rb
 create mode 100644 spec/models/manageiq/providers/redhat/infra_manager/futures_collector_spec.rb
 create mode 100644 spec/models/manageiq/providers/redhat/infra_manager/refresh/refresher_4_async_spec.rb
 create mode 100644 spec/support/ovirt_sdk/connection_vcr.rb
 create mode 100644 spec/vcr_cassettes/manageiq/providers/redhat/infra_manager/inventory/strategies/v4/collect_disks.yml
 create mode 100644 spec/vcr_cassettes/manageiq/providers/redhat/infra_manager/refresh/ovirt_sdk_refresh_recording.yml
Comment 9 Ilanit Stein 2017-12-25 07:15:12 EST
Full refresh was measured on CFME-5.9.0.14/RHV-4.2.1 Scale env(1800 VMs, 400 hosts).

CFME-5.9 Graph refresh On:  2 min 
CFME-5.9 Graph refresh Off:  3 min 
CFME-5.8: 4 min 

* Initial refresh takes in avg ~1 minute more, on CFME-5.8/5.9, as it includes more operation.

Moving bug to verified.
Comment 12 errata-xmlrpc 2018-03-01 08:08:54 EST
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, 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-2018:0380

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