Bug 2227810

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: Ranjini M N <rmandyam>
Priority: unspecified    
Version: 5.3CC: ceph-eng-bugs, cephqe-warriors, hyelloji, rmandyam, sostapov, tserlin, vshankar
Target Milestone: ---   
Target Release: 5.3z6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.10-225.el8cp Doc Type: Bug Fix
Doc Text:
.The modules capture all exceptions to stay operational 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:
: 2227812 2227813 (view as bug list) Environment:
Last Closed: 2024-02-08 16:50:04 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: 2258797    

Description Milind Changire 2023-07-31 14:53:06 UTC
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:

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

Comment 2 Venky Shankar 2023-08-09 13:50:09 UTC
Milind, please post an MR.

Comment 3 Scott Ostapovicz 2023-08-17 14:14:20 UTC
Retargeted to 5.3 z6 as this issue was not completed in the 5.3 z5 window.

Comment 11 sumr 2024-01-03 10:56:17 UTC
Verified BZ as per QA Test plan on ceph build  16.2.10-225.el8cp.

Logs - http://magna002.ceph.redhat.com/ceph-qe-logs/suma/bz_verify/bz_2227810_verification.log

FYI : Issues seen during fix verification have been raised as BZs - 2256583,2256573

Comment 16 errata-xmlrpc 2024-02-08 16:50:04 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 (Moderate: Red Hat Ceph Storage 5.3 Security 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-2024:0745