]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: change 'osd find' output to list all addrs
authorSage Weil <sage@redhat.com>
Wed, 30 May 2018 19:58:35 +0000 (14:58 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jun 2018 13:08:20 +0000 (08:08 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
PendingReleaseNotes
src/mon/OSDMonitor.cc

index 4ffdf12f8e16473c091951206abe6f3573a24d45..2761c198e7f4f9333aabecbef4e6651876354999 100644 (file)
@@ -14,3 +14,7 @@
 * If the cluster log is directed at syslog, the entries are now
   prefixed by both the string-form name and the rank-form name (e.g.,
   ``mgr.x mgr.12345 ...`` instead of just ``mgr.12345 ...``).
+
+* The JSON output of the ``osd find`` command has replaced the ``ip``
+  field with an ``addrs`` section to reflect that OSDs may bind to
+  multiple addresses.
index d544b8e007f9bbeaf6edd7f84687a482bcd9b48a..7a451604ff1c9a953787b622a5aa3f311eb7ffa6 100644 (file)
@@ -4501,7 +4501,7 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op)
     boost::scoped_ptr<Formatter> f(Formatter::create(format, "json-pretty", "json-pretty"));
     f->open_object_section("osd_location");
     f->dump_int("osd", osd);
-    f->dump_stream("ip") << osdmap.get_addr(osd);
+    f->dump_object("addrs", osdmap.get_addrs(osd));
     f->open_object_section("crush_location");
     map<string,string> loc = osdmap.crush->get_full_location(osd);
     for (map<string,string>::iterator p = loc.begin(); p != loc.end(); ++p)