Bug 1776153
| Summary: | Job result as failure on successful playbook run | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Ondřej Pražák <oprazak> |
| Component: | Uncategorized | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED DUPLICATE | QA Contact: | Lukas Pramuk <lpramuk> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4 | CC: | inecas |
| Target Milestone: | Unspecified | ||
| 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-11-25 09:08:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Created from redmine issue https://projects.theforeman.org/issues/28313 *** This bug has been marked as a duplicate of bug 1776151 *** |
Even though playbook has no failed tasks, job is marked as failure. This is probably caused by the presence of 'runner_on_failed' event, even though the event should ignore_errors. <pre> /tmp/d20191120-17138-1133sp/artifacts/44a932bc-c17c-4615-9806-e5504deed8e7/job_events/20-b917601b-054d-4c5b-8806-597e16c97cff.json:{"event": "runner_on_failed", "uuid": "b917601b-054d-4c5b-8806-597e16c97cff", "stdout": "\u001b[0;31mfatal: [essie-boser.example.com]: FAILED! => {\"changed\": true, \"cmd\": \"test -f /etc/update-motd.d/99-footer\", \"delta\": \"0:00:00.015612\", \"end\": \"2019-11-20 08:07:32.057450\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2019-11-20 08:07:32.041838\", \"stderr\": \"\", \"stderr_lines\": [], \"stdout\": \"\", \"stdout_lines\": []}\u001b[0m\r\n\u001b[0;36m...ignoring\u001b[0m", "counter": 20, "pid": 43714, "created": "2019-11-20T08:07:34.838163", "end_line": 196, "runner_ident": "44a932bc-c17c-4615-9806-e5504deed8e7", "start_line": 194, "event_data": {"play_pattern": "all", "play": "all", "event_loop": null, "task_args": "", "uuid": "b917601b-054d-4c5b-8806-597e16c97cff", "remote_addr": "essie-boser.example.com", "res": {"stderr_lines": [], "changed": true, "end": "2019-11-20 08:07:32.057450", "_ansible_no_log": false, "stdout": "", "cmd": "test -f /etc/update-motd.d/99-footer", "start": "2019-11-20 08:07:32.041838", "delta": "0:00:00.015612", "stderr": "", "rc": 1, "invocation": {"module_args": {"creates": null, "executable": null, "_uses_shell": true, "strip_empty_ends": true, "_raw_params": "test -f /etc/update-motd.d/99-footer", "removes": null, "argv": null, "warn": true, "chdir": null, "stdin_add_newline": true, "stdin": null}}, "stdout_lines": [], "msg": "non-zero return code"}, "play_uuid": "b8ca3a6c-3cdc-e22d-694a-000000000006", "task_uuid": "b8ca3a6c-3cdc-e22d-694a-00000000000e", "task": "Check motd tail supported", "playbook_uuid": "2c8d01cc-c3c4-4a7a-b55a-2da53b921fb8", "playbook": "playbook.yml", "task_action": "command", "host": "essie-boser.example.com", "ignore_errors": true, "role": "adriagalin.motd", "task_path": "/etc/ansible/roles/adriagalin.motd/tasks/main.yml:27"}, "parent_uuid": "b8ca3a6c-3cdc-e22d-694a-00000000000e"} </pre>