]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/dashboard: fetch image's mirror mode 64100/head
authorRamana Raja <rraja@redhat.com>
Tue, 13 May 2025 16:37:52 +0000 (12:37 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 23 Jun 2025 07:36:07 +0000 (09:36 +0200)
commitc0334858d1a71f22b86d4badcfc86a46294f795f
tree2419cca923bd65e618601e561fe11c6bd42a8505
parent017a3847f560838333a083878929d02a1bb26232
pybind/mgr/dashboard: fetch image's mirror mode

... only if the image is not disabled for mirroring.

If the image is disabled for mirroring, fetching the image's
mirroring mode is invalid. So validate that the image is not disabled
for mirroring before fetching the mirroring mode.

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 0a705115337d11231c21209c056c6c588c1bc8eb)
src/pybind/mgr/dashboard/controllers/rbd.py
src/pybind/mgr/dashboard/controllers/rbd_mirroring.py
src/pybind/mgr/dashboard/services/rbd.py