Bug 2228086 - [RFE] Support sending Email Alerts to multiple email addresses via alerts mgr module
Summary: [RFE] Support sending Email Alerts to multiple email addresses via alerts mgr...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 7.1
Assignee: Nizamudeen
QA Contact: Sayalee
Anjana Suparna Sriram
URL:
Whiteboard:
: 2228087 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-01 11:20 UTC by Pawan
Modified: 2023-08-10 05:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-7136 0 None None None 2023-08-01 11:22:10 UTC
Red Hat Issue Tracker RHCSDASH-1046 0 None None None 2023-08-10 05:13:45 UTC

Description Pawan 2023-08-01 11:20:21 UTC
Created attachment 1981063 [details]
attaching email screenshot.

Description of problem:
When alerts module is configured with multiple email addresses, the emails are directed to only the 1st email ID added.

logs upon addition of email addresses via 
cmd : ceph config set mgr mgr/alerts/smtp_destination "pdhiran, ngangadh"

2023-08-01 10:30:05,346 [Dummy-1] [DEBUG] [root]  mgr option interval = 10.0
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option smtp_host = smtp.corp.redhat.com
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option smtp_destination = pdhiran, ngangadh
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option smtp_port = 25
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option smtp_ssl = False
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option smtp_user =
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option smtp_password =
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option smtp_sender = ceph-iad2-c01-lab.mgr
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option smtp_from_name = EC 8+6 Argo testing cluster
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option log_level = debug
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option log_to_file = True
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option log_to_cluster = False
2023-08-01 10:30:05,347 [Dummy-1] [DEBUG] [root]  mgr option log_to_cluster_level = info


logs upon sending email via : "ceph alerts send"
2023-08-01 10:30:53,974 [Dummy-1] [DEBUG] [root] _send_alert_smtp
2023-08-01 10:30:53,974 [Dummy-1] [DEBUG] [root] message: From: EC 8+6 Argo testing cluster <ceph-iad2-c01-lab.mgr>
Subject: HEALTH_OK
To: pdhiran, ngangadh
Message-Id: <169088585397.2.617791068636758749.redhat.com>
Date: Tue, 01 Aug 2023 10:30:53 -0000

HEALTH_OK


=== Full health status ===

2023-08-01 10:30:53,995 [Dummy-1] [DEBUG] [root] Sent email to pdhiran, ngangadh


Config :

# ceph config dump | grep alerts
mgr                                            advanced  mgr/alerts/interval                    10
mgr                                            advanced  mgr/alerts/log_level                   debug
mgr                                            advanced  mgr/alerts/log_to_file                 true
mgr                                            advanced  mgr/alerts/smtp_destination            pdhiran, ngangadh
mgr                                            advanced  mgr/alerts/smtp_from_name              EC 8+6 Argo testing cluster
mgr                                            advanced  mgr/alerts/smtp_host                   smtp.corp.redhat.com
mgr                                            advanced  mgr/alerts/smtp_port                   25
mgr                                            advanced  mgr/alerts/smtp_sender                 ceph-iad2-c01-lab.mgr
mgr                                            advanced  mgr/alerts/smtp_ssl                    false


Version-Release number of selected component (if applicable):
ceph version 17.2.6-70.el9cp (fe62dcdbb2c6e05782a3e2b67d025b84ff5047cc) quincy (stable)

How reproducible:
Always

Steps to Reproduce:
1. Install RHCS cluster
2. Configure email alerts, adding multiple email IDs.
3. run command : "ceph alerts send". The email is only sent to the 1st email.

Actual results:
Email not sent to multiple email IDs and only sent to 1st one in list

Expected results:
email alerts sent to all email IDs added.

Additional info:

Comment 1 Pawan 2023-08-02 03:11:29 UTC
*** Bug 2228087 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.