Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
3e7c185bd4b2312f9801b8664fb175801c904871)
Conflicts:
PendingReleaseNotes
- drop already published release notes
src/mon/MonMap.cc
- change ceph::to_string to std::to_string
* MGR: progress module can now be turned on/off, using the commands:
``ceph progress on`` and ``ceph progress off``.
-14.2.13
--------
-
-* This release fixes a regression introduced in 14.2.12 which broke deployments
- that referred to MON hosts using DNS names instead of IP addresses in the
- ``mon_host`` parameter in ``/etc/ceph/ceph.conf``.
+* The structured output of ``ceph status`` or ``ceph -s`` is now more
+ concise, particularly the ``mgrmap`` and ``monmap`` sections, and the
+ structure of the ``osdmap`` section has been cleaned up.
f->close_section();
}
+void MonMap::dump_summary(Formatter *f) const
+{
+ f->dump_unsigned("epoch", epoch);
+ f->dump_string("min_mon_release_name", std::to_string(min_mon_release));
+ f->dump_unsigned("num_mons", ranks.size());
+}
+
+
// an ambiguous mon addr may be legacy or may be msgr2--we aren' sure.
// when that happens we need to try them both (unless we can
// reasonably infer from the port number which it is).
void print(ostream& out) const;
void print_summary(ostream& out) const;
void dump(ceph::Formatter *f) const;
+ void dump_summary(ceph::Formatter *f) const;
static void generate_test_instances(list<MonMap*>& o);
protected:
mono_clock::now() - quorum_since).count());
}
f->open_object_section("monmap");
- monmap->dump(f);
+ monmap->dump_summary(f);
f->close_section();
f->open_object_section("osdmap");
osdmon()->osdmap.print_summary(f, cout, string(12, ' '));