]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/snap_schedule: catch all exceptions for cli 52753/head
authorMilind Changire <mchangir@redhat.com>
Wed, 26 Apr 2023 07:04:10 +0000 (12:34 +0530)
committerMilind Changire <mchangir@redhat.com>
Wed, 2 Aug 2023 06:38:18 +0000 (12:08 +0530)
commitecef0eed1e25d04ce5794be197d6e9564717cf7c
treeb5f3c3602dd2d7bbc1878741dc6fcc132e49cb09
parent8bdc2eecc07dfe11224ff23a8efa73cb8e033019
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)
src/pybind/mgr/snap_schedule/module.py