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

Unable to Send Email Notification in V21.3.0 #14383

Open ramachandra1234 opened 1 year ago

ramachandra1234 commented 1 year ago

Please confirm the following

Bug Summary

Dears,

I have installed AWX version 21.3.0 on microk8s in rhel8.

Created a Email Notification, when testing the Notification getting this error

Also, not receiving any emails when the mail sent through adhoc command, but mail received when sent in command line in AWX server.

Providing the following details for reference

Name : Test Notification
Description : Test Organization : Test_Org (created this organization) Type : Email User Name : Not entered Password : Not entered Recipient list : rn1@jcl.com Host : mail2.jcl.com Sender e-mail : root@lenltrain1d01.jcl.com Port : 25

Thank you in advance.

Regards, Ramachandra

AWX version

21.3.0

Select the relevant components

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

RHEL8.6

Web browser

Chrome

Steps to reproduce

If the steps provided in the installation procedure would be very helpful

Expected results

Suppose to send an email notification when the template started, succeeded or failed

Also, have a playbook has the requirement to send an email with an attachment where mail agent is not installed in the awx-demo-task container to send an email with an attachment

Actual results

Unable to send an email notification when template started or failed

Also, unable to send an email with an attachment as per our requirement where getting mail is not found

Additional information

Danger alert:Test-Notification [Errno 113] No route to host

djyasin commented 1 year ago

@ramachandra1234 We would like to gather a little bit more information from you. You stated ".... but mail received when sent in command line in AWX server." Could you please provide us with the specific command you ran to test this?

Thank you for your time!

ramachandra1234 commented 1 year ago

Hi Lila Yasin,

Thank you for your time.

Able to receive the email with the following command when I ran in awx server

echo "Test" | mail -s "Test Mail" rn1@jcl.com

In Version 21.1, I've struggling for below 2 issues.

  1. Unable to send an Email Notification for the Template status, example Success, failure or completed

I've used the following parameters in Version17, able to receive an email notification when a Template started or failed, etc where not receiving an email notification in version 21.1 for the same below parameters

Name : Test Notification Description : Test Organization : Test_Org (created this organization) Type : Email User Name : Not entered Password : Not entered Recipient list : rn1@jcl.com Host : mail2.jcl.com Sender e-mail : root@lenltrain1d01.jcl.com Port : 25

  1. One of the playbook has the requirement to send an email with an attachment Example

Not receiving an email after this template (playbook) executed via awx_web

Thank you, Ramachandra

fosterseth commented 1 year ago

in your opening post you mention you see No route to host where are you seeing this message?

ramachandra1234 commented 1 year ago

I'm seeing "113 No route to host" error when testing the email notification template, in my case the template name is "Test_Notification" when I tested this template, getting "No route to host", attaching the screenshots for reference.

Your help will be highly appreciated.

AWX_Email_Notification_Template_Testing AWX_Email_Notification_Template
ramachandra1234 commented 12 months ago

Hello team,

Could someone please assist on this issue?

This issue i,e,. sending an email notification is pending in my organization

Thank you so much if this issue is addressed