Bug #28463
closedAssociating more than 10 Ansible roles to a Host only sets based on the per-page setting
Description
Description:
Cloned from: https://bugzilla.redhat.com/show_bug.cgi?id=1766906
When associating more than per-page setting of Ansible Roles to a Host / HostGroup, it only associates the Roles based on the per-page setting listed on that page.
Steps to Reproduce:
1. Import 15 dummy roles into Satellite server # cd /etc/ansible/roles/ # for i in {1..15}; do ansible-galaxy init --offline ansible-test$i; done
2. Navigate to UI > Configure > Roles > Import from satellite-fqdn > Select all the ansible-test* roles to import.
3. Edit either a Host / Host Group and from Ansible Roles tab > under "Available Ansible Roles" section select per-page setting to 15 to show all the 15 Ansible roles that we imported. And also ensure that per-page setting under "Assigned Ansible Roles" is set to its default i.e. 10.
4. Associate all the 15 roles to the Host / HostGroup click Submit
5. Now re-edit the Host / HostGroup verify the Ansible Roles tab it only saves the number of Roles based on the per-page setting under "Assigned Ansible Roles" even though we allocated more than that in Step4.
Actual results:
Ansible Roles are save based on the per-page setting under "Assigned Ansible Roles" and not based on the Roles we associated.