]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: improve log msgs when failing to enable mirroring on image 50837/head
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Thu, 2 Mar 2023 10:29:19 +0000 (15:59 +0530)
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Mon, 3 Apr 2023 06:53:21 +0000 (12:23 +0530)
commit267163bd47b0ba0922b7354c2d0bee85e8087fe2
tree6da35bdc57f2b7bd57e7336e695595e565869363
parent32bfaeca8a2984d8960ce47280d1a19e3300f70d
rbd: improve log msgs when failing to enable mirroring on image

Attempting to enable mirroring on an an image within a namespace bails
out without any useful msg.

$ rbd mirror image enable mi_pool/ns_0/big snapshot
2021-11-17T08:33:21.321+0000 7f4b36f9c2c0 -1 librbd::api::Mirror:
  image_enable: cannot enable mirroring in the current pool mirroring mode

Fixes: https://tracker.ceph.com/issues/58895
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
(cherry picked from commit 828a0dea2d40ba0c1aa0a9d4b211f0fabc854350)
src/librbd/api/Mirror.cc