Project

General

Profile

Actions

Bug #28463

closed

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

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

Status:
Closed
Priority:
Normal
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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 1 (0 open1 closed)

Related to Ansible - Bug #27678: Unable to remove last role from host or hostgroupClosedActions
Actions #1

Updated by The Foreman Bot over 4 years ago

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

Updated by Alexey Masolov over 4 years ago

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

Updated by Alexey Masolov over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Marek Hulán over 4 years ago

  • Fixed in Releases foreman_ansible 4.0.4 added
Actions

Also available in: Atom PDF