]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/snap_schedule: add debug log for missing or wrong path
authorMilind Changire <mchangir@redhat.com>
Tue, 29 Nov 2022 07:54:27 +0000 (13:24 +0530)
committerMilind Changire <mchangir@redhat.com>
Thu, 27 Apr 2023 08:53:21 +0000 (14:23 +0530)
commit103771d920c967caa57eb095d84f532306a97a25
tree1d3231b64908492ba275813e3e7e4341b6266c1f
parent75ec7d6692678e4cd7e96c7b92a3fbc4e45cec17
mgr/snap_schedule: add debug log for missing or wrong path

Bad paths cause a Traceback to be dumped in the logs and unloads the
module causing denial of service.

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

Conflicts:
src/pybind/mgr/snap_schedule/fs/schedule_client.py
- included minor code rearrangement to share db connection
  better between try/except/finally clauses
src/pybind/mgr/snap_schedule/fs/schedule_client.py