]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: improve log msgs when failing to enable mirroring on image
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Thu, 2 Mar 2023 10:29:19 +0000 (15:59 +0530)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 6 Apr 2023 15:07:24 +0000 (17:07 +0200)
commit86e61e7eccda8f1aebb282a6a7d77303ec89f7b9
tree39860194685162913c1135c5a7a7ec27d4bbd838
parentd1955187a5479deb045a2ce2a407dc586d9ce565
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