diff --git a/PendingReleaseNotes b/PendingReleaseNotes index 386f792bf57..d06c2492071 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -110,6 +110,9 @@ unlabeled perf counters may become labeled in future releases and as such will no longer be emitted by the `perf dump` and `perf schema` commands. +* `ceph mgr dump` command now outputs `last_failure_osd_epoch` and + `active_clients` fields at the top level. Previously, these fields were + output under `always_on_modules` field. >=17.2.1 diff --git a/src/mon/MgrMap.h b/src/mon/MgrMap.h index 5342fc51fc3..c06a691b04a 100644 --- a/src/mon/MgrMap.h +++ b/src/mon/MgrMap.h @@ -514,13 +514,13 @@ public: } f->close_section(); } + f->close_section(); // always_on_modules f->dump_int("last_failure_osd_epoch", last_failure_osd_epoch); f->open_array_section("active_clients"); for (const auto &c : clients) { f->dump_object("client", c); } - f->close_section(); - f->close_section(); + f->close_section(); // active_clients } static void generate_test_instances(std::list &l) {