awx icon indicating copy to clipboard operation
awx copied to clipboard

Add hostname for failure notifications

Open AlekseiSaff opened this issue 2 years ago • 4 comments

Please confirm the following

  • [X] I agree to follow this project's code of conduct.
  • [X] I have checked the current issues for duplicates.
  • [X] I understand that AWX is open source software provided for free and that I might not receive a timely response.

Feature Summary

Currently we are receiving notifications like:

Job #69971 'Deploy: SDS TASK' failed: https://awx.my.domain/#/jobs/playbook/69971

it's good to add hostnames where the failure has been occured

Select the relevant components

  • [ ] UI
  • [ ] API
  • [ ] Docs
  • [ ] Collection
  • [ ] CLI
  • [X] Other

AlekseiSaff avatar Jul 15 '22 08:07 AlekseiSaff

@AlekseiSaff can you clarify? Do you mean to include the execution node, or the hosts that are being automated against?

jbradberry avatar Jul 20 '22 15:07 jbradberry

Sorry for the confusion. Hosts where task was failed

On Wed, Jul 20, 2022, 23:36 Jeff Bradberry @.***> wrote:

@AlekseiSaff https://github.com/AlekseiSaff can you clarify? Do you mean to include the execution node, or the hosts that are being automated against?

— Reply to this email directly, view it on GitHub https://github.com/ansible/awx/issues/12524#issuecomment-1190439604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO7UL7B4JCFHTAMHHVDYWT3VVAMITANCNFSM53UZO5SA . You are receiving this because you were mentioned.Message ID: @.***>

AlekseiSaff avatar Jul 20 '22 15:07 AlekseiSaff

This doesnt seem like it would scale very well. What about scenarios where jobs talk to several thousand hosts?

shanemcd avatar Jul 20 '22 16:07 shanemcd

understood that, but it should be an option in message template like {{ job_friendly_name }} #{{ job.id }} '{{ job.name }}' {{ job.status }}: {{ url }} on hosts {{ failed.hosts }}

for some jobs it's really good to see where they were exactly failed from slack or email without going to AWX

On Thu, Jul 21, 2022 at 12:25 AM Shane McDonald @.***> wrote:

This doesnt seem like it would scale very well. What about scenarios where jobs talk to several thousand hosts?

— Reply to this email directly, view it on GitHub https://github.com/ansible/awx/issues/12524#issuecomment-1190493876, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO7UL7AGCJFZFEEYLTANSDDVVASARANCNFSM53UZO5SA . You are receiving this because you were mentioned.Message ID: @.***>

AlekseiSaff avatar Jul 21 '22 01:07 AlekseiSaff

{{ failed.hosts }} is not working. Getting error **Failed to update notifier. Field 'failed' unavailable. **

BlassArun avatar Nov 30 '22 02:11 BlassArun