Bug 2166466

Summary: Unable to see all ansible roles available when editing a hostgroup and the "entries per page" is bigger than the number of available roles
Product: Red Hat Satellite Reporter: Joniel Pasqualetto <jpasqual>
Component: Ansible - Configuration ManagementAssignee: nalfassi
Status: CLOSED ERRATA QA Contact: addubey
Severity: medium Docs Contact:
Priority: high    
Version: 6.12.1CC: addubey, ahumbe, amiagarw, avnkumar, gtalreja, lstejska, nalfassi, pcreech, rlavi, shwsingh, smeyer, zhunting
Target Milestone: 6.14.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman_ansible-12.0.4, rubygem-foreman_ansible-10.4.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2242915 (view as bug list) Environment:
Last Closed: 2023-11-08 14:18:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joniel Pasqualetto 2023-02-01 21:57:39 UTC
Description of problem:

In a system with more than just a few roles imported (more than 10 should be enough), and the option entries per page set to a number bigger than the total of roles present on the system. 

Version-Release number of selected component (if applicable):

Satellite 6.12

How reproducible:

Always

Steps to Reproduce:
1. Identify the number of roles present on the system (let's say 29, like in my lab)
2. Set the entries per page to 30
~~~
hammer settings set --name entries_per_page --value 30
~~~
3. Go to a hostgroup -> Ansible roles. You'll see only a few roles (10) and no option to see a next page.

Actual results:

Only first 10 roles are shown when editing a hostgroup -> Ansible roles.

Expected results:

All roles should be available on the webUI and properly paginated.

Additional info:

If the entries per page is smaller than the number of roles, paginating is enabled, but only the first 10 roles are shown initially. When going to the second page and coming back to the first, then the "entries per page" is actually used.

I'm attaching some screenshots to illustrate the problem.

Comment 7 nalfassi 2023-05-08 15:07:36 UTC
Created redmine issue https://projects.theforeman.org/issues/36368 from this bug

Comment 8 Bryan Kearney 2023-06-05 12:02:54 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36368 has been resolved.

Comment 13 nalfassi 2023-08-08 11:28:40 UTC
*** Bug 2145258 has been marked as a duplicate of this bug. ***

Comment 21 errata-xmlrpc 2023-11-08 14:18:30 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 (Important: Satellite 6.14 security and bug fix update), 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-2023:6818

Comment 22 nalfassi 2023-11-28 11:54:09 UTC
*** Bug 2250910 has been marked as a duplicate of this bug. ***