]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cls/rbd: prevent image_status when mirror image is not created
authorArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Thu, 22 Jul 2021 14:37:47 +0000 (16:37 +0200)
committerArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Wed, 18 Aug 2021 16:52:41 +0000 (18:52 +0200)
commit416e25794af0252ec45b35c897c8cf2e91aca383
treee6b1249f88f483a41ffab434cdb9f18669c581ae
parente135403c736295b63fe1c8a861af40de302b8b57
cls/rbd: prevent image_status when mirror image is not created

This prevent image_status_set to succeed when there is no mirror image
yet. This solves some stale entries that were not removed in
rbd-mirror and prevent to add entries that would not be visible from the
rbd cli.

Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
src/cls/rbd/cls_rbd.cc