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
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)
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)
The list of hostgroups is limited to 20.
The entire list of hostgroups should be shown
Note for the develop that will fix the limited response size:
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.:
and the response will reflect it:
Verified in ovirt-engine-18.104.22.168-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.