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 - Associating more than 10 Ansible roles to a Host only sets based on the per-page setting
Summary: Associating more than 10 Ansible roles to a Host only sets based on the per-p...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts
Version: 6.6.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: 6.8.0
Assignee: satellite6-bugs
QA Contact: tstrych
URL:
Whiteboard:
: 1805303 1807335 1855202 (view as bug list)
Depends On:
Blocks: 1855202
TreeView+ depends on / blocked
 
Reported: 2019-10-30 09:10 UTC by Nagoor Shaik
Modified: 2024-06-13 22:17 UTC (History)
14 users (show)

Fixed In Version: tfm-rubygem-foreman_ansible-4.0.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1855202 1862236 (view as bug list)
Environment:
Last Closed: 2020-10-27 12:59:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tfm-rubygem-foreman_ansible-4.0.3.5-2.HOTFIXRHBZ1766906.el7sat.noarch.rpm (1.94 MB, application/x-rpm)
2020-07-09 20:00 UTC, Mike McCune
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 28463 0 Normal Closed Associating more than 10 Ansible roles to a Host only sets based on the per-page setting 2020-12-09 12:22:21 UTC
Red Hat Knowledge Base (Solution) 4629381 0 None None None 2019-12-03 12:59:50 UTC
Red Hat Knowledge Base (Solution) 4863341 0 None None None 2020-06-10 11:56:23 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 12:59:38 UTC

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


Note You need to log in before you can comment on or make changes to this bug.