summaryrefslogtreecommitdiffstats
path: root/src/common/ceph_strings.cc
diff options
context:
space:
mode:
authorJoao Eduardo Luis <joao@suse.de>2017-05-31 10:55:36 +0200
committerJoao Eduardo Luis <joao@suse.de>2017-06-05 16:21:58 +0200
commit07c2350a4144ca07fd77045eee9efab3e63751d2 (patch)
tree536a9582bef7c2812259379994934d872b44f206 /src/common/ceph_strings.cc
parentmon/PaxosService: add force_immediate_propose mechanism (diff)
downloadceph-07c2350a4144ca07fd77045eee9efab3e63751d2.tar.xz
ceph-07c2350a4144ca07fd77045eee9efab3e63751d2.zip
mon: add `osd destroy`
This new command will remove a given osd's auth keys, along with any daemon-private and dm-crypt info contained in the config-key store, without actually removing the osd from crush. Instead of removing the osd from the osdmap, we mark it as `destroyed`, thus preventing competing, racing commands from recreating the osd. Signed-off-by: Joao Eduardo Luis <joao@suse.de>
Diffstat (limited to 'src/common/ceph_strings.cc')
-rw-r--r--src/common/ceph_strings.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/ceph_strings.cc b/src/common/ceph_strings.cc
index 422ccace661..ef3aa802761 100644
--- a/src/common/ceph_strings.cc
+++ b/src/common/ceph_strings.cc
@@ -44,9 +44,11 @@ const char *ceph_osd_state_name(int s)
return "nearfull";
case CEPH_OSD_BACKFILLFULL:
return "backfillfull";
+ case CEPH_OSD_DESTROYED:
+ return "destroyed";
default:
return "???";
- }
+ }
}
const char *ceph_release_name(int r)