Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1878145

Summary: ceph-mgr alerts module fails to send email: ALERTS_SMTP_ERROR
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Pawan <pdhiran>
Component: Ceph-Mgr PluginsAssignee: Neha Ojha <nojha>
Status: CLOSED ERRATA QA Contact: Pawan <pdhiran>
Severity: high Docs Contact: Amrita <asakthiv>
Priority: high    
Version: 4.1CC: asakthiv, branto, ceph-eng-bugs, ceph-qe-bugs, gmeno, gsitlani, lithomas, nojha, vereddy
Target Milestone: ---   
Target Release: 4.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
.The alerts module of Ceph manager works as expected with no health warnings Previously, Ceph manager would override some module specific config options with default values resulting in the failure of the module with `ALERTS_SMTP_ERROR unable to send alert email` as it continued to use the default value `smtp_ssl=true`. With this release, the default value handling of the Ceph manager is fixed and the alerts module works as expected with no health warnings.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-12 14:57:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1890121    
Attachments:
Description Flags
ceph logs for alerts none

Description Pawan 2020-09-11 13:17:30 UTC
Created attachment 1714560 [details]
ceph logs for alerts

Description of problem:
ceph-mgr alerts module fails to send email: ALERTS_SMTP_ERROR unable to send alert email

Command ceph -s shows health warning:
# ceph -s
  cluster:
    id:     d14fc394-17bb-4694-99b2-49adc67bed4e
    health: HEALTH_WARN
            unable to send alert email

Version-Release number of selected component (if applicable):
ceph version 14.2.8-107.el7cp

How reproducible:


Steps to Reproduce:
Configure and enable alerts module :
# ceph config set mgr mgr/alerts/interval 5
# ceph mgr module enable alerts
# ceph alerts send
# ceph -s

Actual results:
email alerts are not being sent

Expected results:
Email alerts should be sent successfully

Additional info:

Comment 11 errata-xmlrpc 2021-01-12 14:57:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Red Hat Ceph Storage 4.2 Security and Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:0081