Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
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.
Version-Release number of selected component (if applicable):
Satellite 6.6
How reproducible:
100%
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.
Expected results:
All roles should be allocated based on User selection.
Additional info:
Hakon,
Happy to get a hotfix for you for this BZ, can you request via a support case as we have a specific process for tracking hotfixes that are driven by our support tool.
You can reach me directly via email with the case# if you need and we can help with the hotfix: mmccune
comment 0 was reproduced with sat 6.7 with tfm-rubygem-foreman_ansible-4.0.3.5-1
and change was verified with sat 6.8 snap 6 with tfm-rubygem-foreman_ansible-5.1.1-1
I played a bit with adding and removing of ansible roles to host, and with different on page settings. I did not found any other problem.
Verified.
*** Satellite 6.7.1 Hotfix Available ***
1) Download tfm-rubygem-foreman_ansible-4.0.3.5-2.HOTFIXRHBZ1766906.el7sat.noarch.rpm from this bugzilla to your Satellite
2) stop services:
satellite-maintain service stop
3) Install:
rpm -Uvh tfm-rubygem-foreman_ansible-4.0.3.5-2.HOTFIXRHBZ1766906.el7sat.noarch.rpm
4) restart:
satellite-maintain service start
5) resume operations
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.8 release), 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-2020:4366
Description of problem: 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. Version-Release number of selected component (if applicable): Satellite 6.6 How reproducible: 100% 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. Expected results: All roles should be allocated based on User selection. Additional info: