]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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, 12 Jan 2022 09:03:38 +0000 (10:03 +0100)
commit8b563dd29496c2cceae3ec99781468496a44b8ca
tree496c344036605b4c02957a7707944ab3a1f487a1
parentf096cf5fab86e8748dab5c0c03c9b73c3d996e5f
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>
(cherry picked from commit 416e25794af0252ec45b35c897c8cf2e91aca383)
src/cls/rbd/cls_rbd.cc