]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/snap_schedule: catch all exceptions for cli
authorMilind Changire <mchangir@redhat.com>
Wed, 26 Apr 2023 07:04:10 +0000 (12:34 +0530)
committerMilind Changire <mchangir@redhat.com>
Wed, 14 Feb 2024 08:26:23 +0000 (13:56 +0530)
commit74438eaf7f0a8fc46899d419f458f57516a26b45
tree5beac55759041581c10e9151a9b071fd61a34e77
parent6355c775cc556e3e82fdfb2e6202ac4d2152af41
mgr/snap_schedule: catch all exceptions for cli

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

Fixes: https://tracker.ceph.com/issues/58195
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 651fb2e3b515c80e9dc4a24638c9d1a0d487c729)

Conflicts:
src/pybind/mgr/snap_schedule/module.py
- minor conflicts due to changed variable names
src/pybind/mgr/snap_schedule/module.py