Bug 1849894

Summary: [GSS] ceph-mgr alerts module fails on setting interval
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Karun Josy <kjosy>
Component: Ceph-Mgr PluginsAssignee: Neha Ojha <nojha>
Status: CLOSED ERRATA QA Contact: Pawan <pdhiran>
Severity: high Docs Contact: Aron Gunn <agunn>
Priority: medium    
Version: 4.1CC: agunn, ceph-eng-bugs, ceph-qe-bugs, gsitlani, mzink, nojha, pdhiran, tserlin, vereddy
Target Milestone: z2   
Target Release: 4.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-14.2.8-100.el8cp, ceph-14.2.8-100.el7cp Doc Type: Bug Fix
Doc Text:
.Ceph Manager crashes when setting the alerts interval There was a code bug in the alerts module for Ceph Manager, which was causing the Ceph Manager to crash. With this release, this code bug was fixed, and you can set the alerts interval without the Ceph Manager crashing.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-30 17:25:42 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: 1816167    

Description Karun Josy 2020-06-23 06:51:21 UTC
* Description of problem:

Followed the upstream document [1] to configure and enable alert module.
But when trying to send, it fails with error :
---
# ceph alerts send
Error EIO: Module 'alerts' has experienced an error and cannot handle commands: %d format: a number is required, not str
---

[1] https://docs.ceph.com/docs/master/mgr/alerts/

* Version-Release number of selected component (if applicable):
ceph version 14.2.8-59.el8cp

* How reproducible:
Always

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


* Actual results:
Cannot send email alerts

* Expected results:
alerts send should work

Comment 15 errata-xmlrpc 2020-09-30 17:25:42 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 (Red Hat Ceph Storage 4.1 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/RHBA-2020:4144