]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/DaemonServer: log pgmap usage to cluster log 26105/head
authorNeha Ojha <nojha@redhat.com>
Thu, 24 Jan 2019 03:25:12 +0000 (19:25 -0800)
committerNeha Ojha <nojha@redhat.com>
Thu, 24 Jan 2019 03:25:12 +0000 (19:25 -0800)
- change default of mon_cluster_log_file_level to debug
- log to clog->debug()

Fixes: https://tracker.ceph.com/issues/37886
Signed-off-by: Neha Ojha <nojha@redhat.com>
src/common/options.cc
src/mgr/DaemonServer.cc

index 71bb8ff1c6b7f4d5eb39fb261c1d9c143d5d98a8..d783d6f01f10b66b196defff2d5447a798ba98b9 100644 (file)
@@ -664,7 +664,7 @@ std::vector<Option> get_global_options() {
     .set_long_description("This can either be a simple file name to receive all messages, or a list of key/value pairs where the key is the log channel and the value is the filename, which may include $cluster and $channel metavariables"),
 
     Option("mon_cluster_log_file_level", Option::TYPE_STR, Option::LEVEL_ADVANCED)
-    .set_default("info")
+    .set_default("debug")
     .add_service("mon")
     .set_description("Lowest level to include is cluster log file")
     .add_see_also("mon_cluster_log_file"),
index d9636ff914ce86bba86c5784c279557b92a20c4c..3289efaf0d49ba1de54be218e73bcff4a0917f7c 100644 (file)
@@ -2220,6 +2220,9 @@ void DaemonServer::send_report()
          jf.dump_object("health_checks", m->health_checks);
          jf.flush(*_dout);
          *_dout << dendl;
+          if (osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) {
+              clog->debug() << "pgmap v" << pg_map.version << ": " << pg_map;
+          }
        });
     });