Bug 1992570
| Summary: | Only Ansible config jobs should run in check mode | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Ondřej Pražák <oprazak> |
| Component: | Ansible - Configuration Management | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | Sam Bible <sbible> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.10.0 | CC: | ehelms, oezr, osousa |
| Target Milestone: | 6.11.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | tfm-rubygem-foreman_ansible-6.3.4, tfm-rubygem-foreman_ansible_core-4.2.1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-07-05 14:29:34 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: | |||
|
Description
Ondřej Pražák
2021-08-11 10:41:45 UTC
Connecting redmine issue https://projects.theforeman.org/issues/33218 from this bug Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/33218 has been resolved. Failed QA on Satellite 6.10, snap 20 (tfm-rubygem-foreman_ansible-6.3.4-1.el7sat.noarch, tfm-rubygem-smart_proxy_ansible-3.1.1-1.el7sat.noarch). 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. 6. When the job completes, navigate back to Hosts > All Hosts > [hostname] and select the "Schedule Remote Job" option. 7. Select the "Ansible Packages" job category and the "Package Action - Ansible Default" job template, set the state to "present," enter a package that is not currently installed on the host in the "name" field, then click the "Submit" button. Expected Results: No changes are made when the Ansible role is run on the host, but the Ansible Packages job successfully installs the package. Actual Results: No changes are made by either the Ansible role or the Ansible Packages job, although the Ansible Packages job reports that it completed successfully. After changing the value of the "ansible_roles_check_mode" parameter back to false, re-running the Ansible Packages job successfully installs the package. 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. 6. When the job completes, navigate back to Hosts > All Hosts > [hostname] and select the "Schedule Remote Job" option. 7. Select the "Ansible Packages" job category and the "Package Action - Ansible Default" job template, set the state to "present," enter a package that is not currently installed on the host in the "name" field, then click the "Submit" button. Expected Results: No changes are made when the Ansible role is run on the host, but the Ansible Packages job successfully installs the package. Actual Results: No changes are made when the Ansible role is run on the host, but the Ansible Packages job successfully installs the package. 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 |