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:
If an Ansible collection is installed on Satellite to /etc/ansible/collections, the roles from the collection are imported to Satellite, and roles from that collection are then assigned to a host, Satellite is unable to find those roles when Ansible roles are run on the host.
Version-Release number of selected component (if applicable):
Satellite 6.10, snap 9
tfm-rubygem-foreman_ansible-6.3.1-1.el7sat.noarch
tfm-rubygem-smart_proxy_ansible-3.1.0-1.el7sat.noarch
How reproducible:
100%
Steps to Reproduce:
1. Install an Ansible Collection to /etc/ansible/collections:
# ansible-galaxy collection install ericsysmin.system -p /etc/ansible/collections/
2. Import the roles from the collection on the Configure > Roles page of the Satellite webUI.
3. Register a host to Satellite and configure it for remote execution.
4. Assign one or more roles from the collection to the host.
5. Select the "Run Ansible roles" option from the Hosts > All Hosts > [hostname] page of the Satellite webUI.
Actual results:
The task appears to complete successfully, but the roles from the collection are not actually run. The following error appears in the Dynflow console entry for the task:
~~~
- output_type: stdout
output: "\r\nTASK [Apply roles] *************************************************************\n"
timestamp: 1626461088.7711945
- output_type: stdout
output: "\n"
timestamp: 1626461088.7712917
- output_type: stdout
output: "\n"
timestamp: 1626461088.771384
- output_type: stdout
output: "\n"
timestamp: 1626461088.7714665
- output_type: stdout
output: "\n"
timestamp: 1626461088.7716033
- output_type: stdout
output: 'ERROR! the role ''ericsysmin.system.chrony'' was not found in /tmp/d20210716-9401-1q84fq9/project/roles:/etc/ansible/roles:/usr/share/ansible/roles:/tmp/d20210716-9401-1q84fq9/project
~~~
Expected results:
Roles in an Ansible Collection installed to /etc/ansible/collections run successfully on hosts.
Additional info:
If the same collection is installed to /usr/share/ansible/collections and the roles from the collection are imported to Satellite, those roles run successfully after being assigned to a host.
Verified on Satellite 6.10, snap 14.
Steps to test:
1. Install an Ansible Collection to /etc/ansible/collections.
2. Import the roles from the collection on the Configure > Roles page of the Satellite webUI.
3. Register a host to Satellite and configure it for remote execution with the Global Registration Template.
4. Assign one or more roles from the collection to the host.
5. Select the "Run Ansible roles" option from the Hosts > All Hosts > [hostname] page of the Satellite webUI.
Expected results:
Roles in an Ansible Collection installed to /etc/ansible/collections run successfully on hosts.
Actual results:
Roles in an Ansible Collection installed to /etc/ansible/collections run successfully on hosts.
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 (Moderate: Satellite 6.10 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-2021:4702
Description of problem: If an Ansible collection is installed on Satellite to /etc/ansible/collections, the roles from the collection are imported to Satellite, and roles from that collection are then assigned to a host, Satellite is unable to find those roles when Ansible roles are run on the host. Version-Release number of selected component (if applicable): Satellite 6.10, snap 9 tfm-rubygem-foreman_ansible-6.3.1-1.el7sat.noarch tfm-rubygem-smart_proxy_ansible-3.1.0-1.el7sat.noarch How reproducible: 100% Steps to Reproduce: 1. Install an Ansible Collection to /etc/ansible/collections: # ansible-galaxy collection install ericsysmin.system -p /etc/ansible/collections/ 2. Import the roles from the collection on the Configure > Roles page of the Satellite webUI. 3. Register a host to Satellite and configure it for remote execution. 4. Assign one or more roles from the collection to the host. 5. Select the "Run Ansible roles" option from the Hosts > All Hosts > [hostname] page of the Satellite webUI. Actual results: The task appears to complete successfully, but the roles from the collection are not actually run. The following error appears in the Dynflow console entry for the task: ~~~ - output_type: stdout output: "\r\nTASK [Apply roles] *************************************************************\n" timestamp: 1626461088.7711945 - output_type: stdout output: "\n" timestamp: 1626461088.7712917 - output_type: stdout output: "\n" timestamp: 1626461088.771384 - output_type: stdout output: "\n" timestamp: 1626461088.7714665 - output_type: stdout output: "\n" timestamp: 1626461088.7716033 - output_type: stdout output: 'ERROR! the role ''ericsysmin.system.chrony'' was not found in /tmp/d20210716-9401-1q84fq9/project/roles:/etc/ansible/roles:/usr/share/ansible/roles:/tmp/d20210716-9401-1q84fq9/project ~~~ Expected results: Roles in an Ansible Collection installed to /etc/ansible/collections run successfully on hosts. Additional info: If the same collection is installed to /usr/share/ansible/collections and the roles from the collection are imported to Satellite, those roles run successfully after being assigned to a host.