ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14k stars 3.42k forks source link

Possible bug when job fails in tower with syntax error, no notification is generated #9245

Open weiminmei opened 3 years ago

weiminmei commented 3 years ago
ISSUE TYPE
SUMMARY

A job shows failed in AWX, but no notification was received for its failure.

ENVIRONMENT
STEPS TO REPRODUCE

Scheduled job runs, notification of job start is received. Job fails due to syntax error as indicated in GUI

EXPECTED RESULTS

Would have received notification of job failure through set up notification paths.

ACTUAL RESULTS

No notificaiton through any of configured notification templates.

ADDITIONAL INFORMATION

Screen Shot 2021-02-05 at 8 34 34 AM

Screen Shot 2021-02-05 at 8 33 55 AM

wenottingham commented 3 years ago

Hi -

AWX 11.2 is very old. We've fixed multiple issues surrounding notifications since then, including https://github.com/ansible/awx/pull/8403 and https://github.com/ansible/awx/pull/8221.

Can you try with a recent version (17.x) and let us know if this is solved there?

chrismeyersfsu commented 3 years ago

I suspect this issue is one of the cases here https://github.com/ansible/awx/issues/8771 and will be resolved when #8771 is fixed properly.

hjkatz commented 3 years ago

We're experiencing the exact same problem with AWX 17.0.1 running on Kubernetes with 3 Pods running awx-task containers.

Job's Notification toggles: image

Syntax error in the Job Output: image

There's nothing in the logs (and I mean that), I'll add them here just in case they're useful. logs.txt