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.
1. Proposed title of this feature request
Allow ability to execute dry-run for any kind of ansible based remote execution jobs or insights remediation playbook when executing from Satellite
2. What is the nature and description of the request?
Customer relies on the Remote execution of Satellite so that they can run ansible roles\playbooks\commands on the target hosts. As satellite does not have check-only or dry-run option available, Customer will first need to test the playbook or locally and then only they can execute the same from satellite.
3. Why does the customer need this? (List the business requirements here)
Allows them to test before applying possibly disruptive configuration changes.
4. How would the customer like to achieve this? (List the functional requirements here)
A check box or drop down selection in the Job Invokation page to execute as a "dry-run" or "check-only" before they actually execute the playbook\job on the hosts to apply the changes.
A option for hammer as well to execute the job from command line with --chcek-only parameter.
5. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.
If --check is surfaced through the UI, a tester would create a plan from Ansible playbooks for Insights, then execute the playbook with the dry-run/check-only functionality. Or very simply any ansible based command and seperate ansible based job template execution can be tested with the with the dry-run/check-only functionality
6. Is there already an existing RFE upstream or in Red Hat Bugzilla?
similar upstream issue https://projects.theforeman.org/issues/27034
7. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?
No specific time requirement.
8. Is the sales team involved in this request and do they have any additional input?
NA
9. List any affected packages or components.
Satellite, Insights, Ansible, Remote execution, hammer Web UI
10. Would the customer be able to assist in testing this functionality if implemented?
Yes.
Verified on Satellite 6.11 - 16
Steps to Test:
1. Register a RHEL 7 host to Satellite 6.10 and assign an Ansible role.
2. In the Satellite webUI, navigate to Hosts > All Hosts > [hostname] > Edit > Parameters tab.
3. In the "Global Parameters" section, click the "Override" button in the "Actions" column for the "ansible_roles_check_mode" parameter.
4. In the "Host Parameters" section, change the value of the "Value" field from "false" to "true" for the "ansible_roles_check_mode" parameter.
5. Select the "Run Ansible roles" option.
Expected Results:
No changes are made when the Ansible role is run on the host
Actual Results:
No changes are made when the Ansible role is run on the host, and when viewing the config report for the Host, it is indicated that the host is in "check mode"
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.11 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-2022:5498