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.

Bug 1776829

Summary: Job result as failure on successful playbook run
Product: Red Hat Satellite Reporter: Marek Hulan <mhulan>
Component: UncategorizedAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lukas Pramuk <lpramuk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: 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-26 14:56:42 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:

Description Marek Hulan 2019-11-26 13:23:07 UTC
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>

Comment 1 Marek Hulan 2019-11-26 13:23:12 UTC
Created from redmine issue https://projects.theforeman.org/issues/28313

Comment 4 Brad Buckingham 2019-11-26 14:56:42 UTC

*** This bug has been marked as a duplicate of bug 1776151 ***