]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/rbd_support: check whether mirroring is enabled
authorRamana Raja <rraja@redhat.com>
Tue, 6 May 2025 00:07:18 +0000 (20:07 -0400)
committerRamana Raja <rraja@redhat.com>
Mon, 16 Jun 2025 17:44:38 +0000 (13:44 -0400)
commitb3f1d2d183d330d80d4e539e3a038f30586a2de0
tree9b61147f2807e73ae414548f6be8b3169e043a2d
parent4c992e6c8555ba370717c11d9d8ead1a52f97968
pybind/mgr/rbd_support: check whether mirroring is enabled

... before fetching the mirroring mode of the image.

In the CreateSnapshotRequests class, which asynchronously issues mirror
snapshot creation requests, prevalidation includes checking that the
image is enabled for snapshot-based mirroring and is marked as primary.
Since mirroring mode can only be queried if mirroring is already
enabled, the code first fetches the image’s mirroring info to verify
that mirroring is enabled, and only then retrieves the mirroring mode.

Signed-off-by: Ramana Raja <rraja@redhat.com>
src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py