Bug 1599979
| Summary: | Ansible job execution fails with OSError: Permission Denied | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | sbadhwar |
| Component: | Ansible | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED WORKSFORME | QA Contact: | Jan Hutař <jhutar> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4 | CC: | jhutar, mhulan, psuriset |
| Target Milestone: | Unspecified | 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-01-24 12:05:31 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: | |||
The remote execution works, you can see the output of ansible. It says there's some problem with the ansible input, could you provide what exactly you ran? I have not hit this during mine recent 6.5 experiemtns (which involved various ReX commands as well). |
Description of problem: When trying to run simple jobs like date, the execution fails with the following error: [WARNING]: Unable to set correct type for configuration entry: 2: DEFAULT_LOCAL_TMP 3: 4: PLAY [all] ********************************************************************* 5: 6: TASK [Gathering Facts] ********************************************************* 7: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 13] Permission denied: '~' 8: fatal: [172.19.27.232]: FAILED! => {"msg": "Unexpected failure during module execution.", "stdout": ""} 9: to retry, use: --limit @/tmp/d20180711-4213-1r03ea8/foreman-playbook-65ed813f-45f8-4c39-9f12-ac470e0cfa1b.retry 10: 11: PLAY RECAP ********************************************************************* 12: 172.19.27.232 : ok=0 changed=0 unreachable=0 failed=1 13: Exit status: 2 Version-Release number of selected component (if applicable): Satellite 6.4 Snap 10 How reproducible: Happening for all the runs Steps to Reproduce: 1. The hosts were directly registered to a capsule 2. A capsule was selected as Puppet Master under the hostgroup settings 3. Fallback proxy was set to true according to this solution: https://access.redhat.com/solutions/2981131 4. Scheduled a new job under the Ansible commands job template Actual results: The execution fails with the OSError: permission denied Expected results: Remote execution completes successfully Additional info: Foreman debug: http://debugs.theforeman.org/foreman-debug-0Oo5d.tar.xz