From 25eaf0a662cf5e112355a79c5d6428a73a63b7de Mon Sep 17 00:00:00 2001 From: Pan Liu Date: Sun, 26 Feb 2017 08:22:17 +0800 Subject: [PATCH] rbd: allow users to remove rbd image when Ceph cluster becomes full. Signed-off-by: Pan Liu --- src/tools/rbd/action/Remove.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/rbd/action/Remove.cc b/src/tools/rbd/action/Remove.cc index 9b2c4eb5bab..b407534252b 100644 --- a/src/tools/rbd/action/Remove.cc +++ b/src/tools/rbd/action/Remove.cc @@ -53,6 +53,8 @@ int execute(const po::variables_map &vm) { return r; } + io_ctx.set_osdmap_full_try(); + librbd::RBD rbd; r = do_delete(rbd, io_ctx, image_name.c_str(), vm[at::NO_PROGRESS].as());