Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Send Email Notification in V21.3.0 #14383

Open
5 of 11 tasks
ramachandra1234 opened this issue Aug 26, 2023 · 5 comments
Open
5 of 11 tasks

Unable to Send Email Notification in V21.3.0 #14383

ramachandra1234 opened this issue Aug 26, 2023 · 5 comments

Comments

@ramachandra1234
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

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 : [email protected]
Host : mail2.jcl.com
Sender e-mail : [email protected]
Port : 25

Thank you in advance.

Regards,
Ramachandra

AWX version

21.3.0

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

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
Copy link
Member

djyasin commented Aug 30, 2023

@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
Copy link
Author

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" [email protected]

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 : [email protected]
Host : mail2.jcl.com
Sender e-mail : [email protected]
Port : 25

  1. One of the playbook has the requirement to send an email with an attachment
    Example
  • name: resource details
    hosts: localhost
    user: root
    become: yes
    tasks:
    • name: Collect the resource details in columnwise and save it in xls format
      shell: /scripts/resourcecollection.sh > /tmp/resources/resources_details_$(date +%H%M_%d%b%y).xls

    • name: Send an email with the System Resource Details Attachment
      shell: echo "$(cat /scripts/SysRscSignature.txt)" | mail -s "System Resource Details" -a /tmp/resources/resources_details_$(date +%H%M_%d%b%y).xls [email protected]

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

Thank you,
Ramachandra

@fosterseth
Copy link
Member

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

@ramachandra1234
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants