Bug 2227813

Summary: mgr/snap_schedule: catch all exceptions to avoid crashing module
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Milind Changire <mchangir>
Component: CephFSAssignee: Milind Changire <mchangir>
Status: CLOSED ERRATA QA Contact: sumr
Severity: medium Docs Contact: Disha Walvekar <dwalveka>
Priority: unspecified    
Version: 5.3CC: amk, ceph-eng-bugs, cephqe-warriors, dwalveka, hyelloji, tserlin, vshankar
Target Milestone: ---Keywords: Rebase
Target Release: 7.0z2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-18.2.0-172.el9cp Doc Type: Bug Fix
Doc Text:
Previously, the modules would crash when unknown or unexpected exceptions were not captured at the time of development, leading to module crash and loss of functionality. With this fix, the module captures all exceptions. The resulting traceback is also dumped to the console or the log file to report unexpected events. As a result, the module continues to stay operational, providing a better user experience.
Story Points: ---
Clone Of: 2227810
: 2264836 (view as bug list) Environment:
Last Closed: 2024-05-07 12:09:52 UTC Type: ---
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: 2270485    

Description Milind Changire 2023-07-31 14:59:57 UTC
+++ This bug was initially created as a clone of Bug #2227810 +++

Description of problem:
Any unknown exception causes the module to be unloaded and unresponsive.
So, it'll be ideal to catch all exceptions and report them at the command-line instead of crashing with a traceback.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from RHEL Program Management on 2023-07-31 20:23:15 IST ---

Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 1 RHEL Program Management 2023-07-31 15:00:08 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 15 Amarnath 2024-04-16 05:53:56 UTC
Hi Milind,

Could you please confirm if this BZ needs to be added to the 7.0z2 release notes? If so, please provide the doc type and the doc text.

Regards,
Amarnath

Comment 17 errata-xmlrpc 2024-05-07 12:09:52 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 7.0 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-2024:2743