From 4d01b2c96e0ea1122225c30da21bc39c40e15c0e Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Thu, 17 Jan 2019 11:16:44 -0800 Subject: [PATCH] cli: dump osd-fsid as part of osd find Dumps the osd-fsid uuid as part of the `osd find ` command. Currently this uuid is only available as part of `osd dump` but ceph-ansible has a use case to interrogate a single osd without needing the entire osdmap dump. Signed-off-by: Noah Watkins --- src/mon/OSDMonitor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 585927cbc68..0359653f08c 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -4814,6 +4814,7 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op) f->open_object_section("osd_location"); f->dump_int("osd", osd); f->dump_object("addrs", osdmap.get_addrs(osd)); + f->dump_stream("osd_fsid") << osdmap.get_uuid(osd); // try to identify host, pod/container name, etc. map m;