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.
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_ansible/pull/318 added
Updated by Alexey Masolov almost 5 years ago
- Related to Bug #27678: Unable to remove last role from host or hostgroup added
Updated by Alexey Masolov almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_ansible|7a8e86ed2178cdfb9307bdb2c2c27321c6aa2a79.
Updated by Marek Hulán almost 5 years ago
- Fixed in Releases foreman_ansible 4.0.4 added