]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/snap_schedule: handle volume delete
authorMilind Changire <mchangir@redhat.com>
Thu, 11 Jan 2024 12:51:31 +0000 (18:21 +0530)
committerMilind Changire <mchangir@redhat.com>
Mon, 4 Nov 2024 13:15:10 +0000 (18:45 +0530)
commit4d2af0c57839418b135e2ef45778fde77e12199a
tree96fcbc8758e0ad4e93e14f90e6a351674ab87c1f
parent28887e258a27b8fcffd0af5e03de1eda5ead518f
mgr/snap_schedule: handle volume delete

Remove references to timers and db connection that refer to paths in the
deleted volume.

This is a best case effort and not 100% safe. There can be race
conditions where the db connection is closed while the module is
executing a query on the db while the volume itself is deleted.

Hopefully there won't be many tracebacks seen.

Fixes: https://tracker.ceph.com/issues/63999
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/pybind/mgr/snap_schedule/fs/schedule_client.py
src/pybind/mgr/snap_schedule/module.py