]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cli: dump osd-fsid as part of osd find <id> 26015/head
authorNoah Watkins <noahwatkins@gmail.com>
Thu, 17 Jan 2019 19:16:44 +0000 (11:16 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Thu, 17 Jan 2019 19:16:44 +0000 (11:16 -0800)
Dumps the osd-fsid uuid as part of the `osd find <id>` 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 <noahwatkins@gmail.com>
src/mon/OSDMonitor.cc

index 585927cbc684c5b2e85e0cd7c57cc33215793daf..0359653f08cb3e2ba53df5a67586dbcfc6e6f31b 100644 (file)
@@ -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<string,string> m;