From: Ilya Dryomov Date: Mon, 16 Jun 2025 20:46:38 +0000 (+0200) Subject: librbd: allow group remove when group mirroring isn't supported X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ed57eed779efdb313933f29fa6bd817157e968da;p=ceph-ci.git librbd: allow group remove when group mirroring isn't supported Ignore a potential EOPNOTSUPP error from Mirror::group_disable() in Group::remove() -- this would come up if the client side (including rbd CLI) is upgraded before the OSDs. The same is done for standalone images in RemoveRequest::handle_disable_mirror(). Signed-off-by: Ilya Dryomov --- diff --git a/src/librbd/api/Group.cc b/src/librbd/api/Group.cc index 1eb36cac39a..02ecc66a521 100644 --- a/src/librbd/api/Group.cc +++ b/src/librbd/api/Group.cc @@ -378,7 +378,7 @@ int Group::remove(librados::IoCtx& io_ctx, const char *group_name) } r = Mirror::group_disable(io_ctx, group_name, false); - if (r < 0) { + if (r < 0 && r != -EOPNOTSUPP) { lderr(cct) << "failed to disable mirroring: " << cpp_strerror(r) << dendl; return r; }