Project

General

Profile

Bug #28463

Associating more than 10 Ansible roles to a Host only sets based on the per-page setting

Added by Alexey Masolov over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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.


Related issues

Related to Ansible - Bug #27678: Unable to remove last role from host or hostgroupClosed

Associated revisions

Revision 7a8e86ed (diff)
Added by Alexey Masolov over 3 years ago

Fixes #28463 - Fix missing roles in the assigned roles list (#318)

  • Fixes #28463 - Fix missing roles in the assigned roles list
  • Fixes #28463 - Fix missing roles in the assigned roles list

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/318 added

#2 Updated by Alexey Masolov over 3 years ago

  • Related to Bug #27678: Unable to remove last role from host or hostgroup added

#3 Updated by Alexey Masolov over 3 years ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Marek Hulán over 3 years ago

  • Fixed in Releases foreman_ansible 4.0.4 added

Also available in: Atom PDF