Description of problem: Only 20 entries per call are retrieved from foreman (hosts, hostgroups, compute resources). The default api call to foreman returns the following details: $ curl -s -k -u admin:miFWnEsYMXD5iZPP http://node01:5000/api/v2/hostgroups | python -m json.tool { "page": 1, "per_page": 20, "results": [ { ... } ] } This seems to be common for other foreman resources fetched by ovirt-engine (except for Katello where pagination was implemented). Version-Release number of selected component (if applicable): master (but should exist since ovirt-foreman integration was introduced) How reproducible: 100% Steps to Reproduce: 1. Have satellite with over 20 host groups 2. Show the full list of host groups on RHV UI (hosts --> new host) Actual results: The list of hostgroups is limited to 20. Expected results: The entire list of hostgroups should be shown Additional info: Note for the develop that will fix the limited response size: https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java#L44 Calls to foreman are done without 'per_page=99999' to simulate unlimited page size (all entries in one call) therefore the queries/urls should be changed to include it, i.e.: http://node01:5000/api/v2/hostgroups?per_page=99999 and the response will reflect it: { "page": 1, "per_page": 99999, "results": [ { } ] }
Verified in ovirt-engine-4.3.0.2-0.1.el7.noarch
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/RHEA-2019:1085