]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: remove should ignore mirror errors from older OSDs 9692/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 13 Jun 2016 19:29:43 +0000 (15:29 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 14 Jun 2016 11:29:42 +0000 (07:29 -0400)
Fixes: http://tracker.ceph.com/issues/16268
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 5a97a9b7ef238c4ceb16225a0b937f9a0cdbb2b6)

src/librbd/internal.cc

index a8e4dbff463066f655b0c438149ac44bd604939a..13682df4182ab9a05d96130ea64d3fa32a740448 100644 (file)
@@ -2174,7 +2174,7 @@ int mirror_image_disable_internal(ImageCtx *ictx, bool force,
 
       ldout(cct, 2) << "removing image from rbd_mirroring object..." << dendl;
       r = cls_client::mirror_image_remove(&io_ctx, id);
-      if (r < 0 && r != -ENOENT) {
+      if (r < 0 && r != -ENOENT && r != -EOPNOTSUPP) {
         lderr(cct) << "failed to remove image from mirroring directory: "
                    << cpp_strerror(r) << dendl;
         return r;