]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/DaemonServer: log pgmap usage to cluster log
authorSage Weil <sage@redhat.com>
Tue, 23 May 2017 14:05:45 +0000 (10:05 -0400)
committerSage Weil <sage@redhat.com>
Fri, 2 Jun 2017 17:02:54 +0000 (13:02 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/DaemonServer.cc

index 7fe9208ab23b875624029cc902a561b5d477abcb..d061b204753668380954d483de2e1422108ddd9f 100644 (file)
@@ -829,6 +829,10 @@ void DaemonServer::send_report()
          pg_map.get_health(g_ceph_context, osdmap,
                            m->health_summary,
                            &m->health_detail);
+
+         if (osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) {
+           clog->info() << "pgmap v" << pg_map.version << ": " << pg_map;
+         }
        });
     });
   // TODO? We currently do not notify the PyModules