Bug 1981834 - Enable pagination for list of RHV VMs
Summary: Enable pagination for list of RHV VMs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: Inventory
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.1.0
Assignee: Jeff Ortel
QA Contact: mlehrer
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-13 13:59 UTC by Jeff Ortel
Modified: 2021-08-26 07:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-26 07:09:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor forklift-controller pull 311 0 None open Support very large oVirt instances. 2021-07-13 14:11:49 UTC
Red Hat Product Errata RHEA-2021:3278 0 None None None 2021-08-26 07:09:38 UTC

Description Jeff Ortel 2021-07-13 13:59:36 UTC
The RHV API cannot support listing all VMs at once when following sub-collections without significant impact to RHV. As a result, the inventory controller need to fetch VMs in pages.

Comment 2 Ilanit Stein 2021-08-08 13:03:47 UTC
@Jeff
Could you please provide verification steps?

Comment 3 Jeff Ortel 2021-08-09 12:50:55 UTC
VMs are loaded in pages of 500.
In the log you will see entries like this.
{"level":"info","ts":1628284414.6040213,"logger":"collector|ovirt","msg":"List VMs.","provider":"konveyor-forklift/rhv01","page":1}
{"level":"info","ts":1628284667.313123,"logger":"collector|ovirt","msg":"List VMs.","provider":"konveyor-forklift/rhv01","page":2}
{"level":"info","ts":1628284807.3989713,"logger":"collector|ovirt","msg":"List VMs.","provider":"konveyor-forklift/rhv01","page":3}

Comment 4 mlehrer 2021-08-16 12:15:32 UTC
Inventory Pod log:
{"level":"info","ts":1629115587.7876537,"logger":"collector|ovirt","msg":"List VMs.","provider":"openshift-mtv/rhv-red01-hasheni","page":3}
{"level":"info","ts":1629115656.2526665,"logger":"collector|ovirt","msg":"List VMs.","provider":"openshift-mtv/rhv-red01-hasheni","page":4}
{"level":"info","ts":1629115719.3605123,"logger":"collector|ovirt","msg":"List VMs.","provider":"openshift-mtv/rhv-red01-hasheni","page":5}

from: /var/log/httpd/ovirt-requests-log
[16/Aug/2021:08:05:04 -0400] 10.1.39.31 "Correlation-Id: b10336b7-60e6-443b-b4b9-84788b2b2289" "Duration: 65467526us" "GET /ovirt-engine/api/vms?follow=disk_attachments%2Chost_devices%2Csnapshots%2Cwatchdogs%2Ccdroms%2Cnics&max=500&search=page+2 HTTP/1.1" 238866

Moving to verified

Comment 7 errata-xmlrpc 2021-08-26 07:09:25 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 (Migration Toolkit for Virtualization 2.1.0), 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/RHEA-2021:3278


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