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.

Bug 1766906

Summary: Associating more than 10 Ansible roles to a Host only sets based on the per-page setting
Product: Red Hat Satellite Reporter: Nagoor Shaik <nshaik>
Component: HostsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: tstrych
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: ahumbe, amasolov, dleroux, egolov, hakon.gislason, inecas, kkinge, mhulan, mkalyat, mmccune, nikhjain, pghadge, snemeth, vdeshpan
Target Milestone: 6.8.0Keywords: Triaged, UserExperience
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_ansible-4.0.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1855202 1862236 (view as bug list) Environment:
Last Closed: 2020-10-27 12:59:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1855202    
Attachments:
Description Flags
tfm-rubygem-foreman_ansible-4.0.3.5-2.HOTFIXRHBZ1766906.el7sat.noarch.rpm none

Description Nagoor Shaik 2019-10-30 09:10:52 UTC
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:

Comment 5 Bryan Kearney 2019-12-13 09:03:49 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28463 has been resolved.

Comment 8 Dominik Matoulek 2020-06-10 11:56:24 UTC
*** Bug 1805303 has been marked as a duplicate of this bug. ***

Comment 9 Dominik Matoulek 2020-06-10 11:57:57 UTC
*** Bug 1807335 has been marked as a duplicate of this bug. ***

Comment 10 hakon.gislason 2020-06-15 17:02:12 UTC
Hi,
Any chance I can get a hotfix for this soon? This bug is impacting us every day, multiple times a day. Really frustrating.

Comment 11 Mike McCune 2020-06-19 18:06:52 UTC
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 12 tstrych 2020-07-03 13:00:50 UTC
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.

Comment 15 Mike McCune 2020-07-09 19:59:59 UTC
*** 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

Comment 16 Mike McCune 2020-07-09 20:00:17 UTC
Created attachment 1700486 [details]
tfm-rubygem-foreman_ansible-4.0.3.5-2.HOTFIXRHBZ1766906.el7sat.noarch.rpm

Comment 17 Brad Buckingham 2020-07-13 14:22:04 UTC
*** Bug 1855202 has been marked as a duplicate of this bug. ***

Comment 20 errata-xmlrpc 2020-10-27 12:59:24 UTC
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