]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: improve log msgs when failing to enable mirroring on image 50836/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:44:22 +0000 (12:14 +0530)
commit4e6e01c50c1ae6bd5bcd0cbe806360197de54a63
tree4ce0e05da348c3646035df35b97bc83ded40d71a
parent5ddb9498083bdfaa6a98c79de31a6e9ce735cdbb
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