Bug 1565903
Summary: | ansible_provisioning_callback snippet does not set executable permission for '/root/ansible_provisioning_call.sh' | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | vijsingh |
Component: | Ansible - Configuration Management | Assignee: | Marek Hulan <mhulan> |
Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3.0 | CC: | mhulan, oprazak, pcreech, vijsingh |
Target Milestone: | 6.5.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-05-14 12:37:00 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
vijsingh
2018-04-11 03:27:21 UTC
Quickly looking at that, it seems the chmod is there but can fail for some reason. My guess is that the ansible_tower_callback_script does not render \n at the end, could you please ask customer to "Preview" the template for some host, so we get rendered version on his environment? Thanks Created redmine issue https://projects.theforeman.org/issues/24981 from this bug Sent a fix upstream for review, the chmod needs to be added explicitly. Upstream bug assigned to mhulan Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24981 has been resolved. This issue is not Satellite 6.3 specific therefore omitting "[Satellite 6.3]" from BZ title One can expect this BZ to be cloned for other Satellite versions as well (depends on triage team) VERIFIED.
@satellite-6.5.0-5.beta.el7sat.noarch
foreman-1.20.1-1.el7sat.noarch
by following manual reproducer:
1) Provision RHEL6 host with Host Parameter "ansible_tower_provisioning = true"
2) At provisioned RHEL6 host check /root/ansible_provisioning_call.sh file perms
# ls -l /root/ansible_provisioning_call.sh
-rwxr-xr-x. 1 root root 171 Dec 11 17:57 /root/ansible_provisioning_call.sh
>>> ansible provisioning callback script has executable permission set
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, 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-2019:1222 |