]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: include misc osd config info in metadata sent to the mon
authorSage Weil <sage@inktank.com>
Mon, 25 Nov 2013 18:16:39 +0000 (10:16 -0800)
committerSage Weil <sage@inktank.com>
Sat, 30 Nov 2013 06:26:59 +0000 (22:26 -0800)
addr info, pathnames.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc

index bd79df6c5b4b970ad2978c88c2999275f79371de..dce9c299c8bfab2067f5ccdd82ac90bf80e6a8b8 100644 (file)
@@ -3576,6 +3576,14 @@ void OSD::_collect_metadata(map<string,string> *pm)
 {
   (*pm)["ceph_version"] = pretty_version_to_str();
 
+  // config info
+  (*pm)["osd_data"] = dev_path;
+  (*pm)["osd_journal"] = journal_path;
+  (*pm)["front_addr"] = stringify(client_messenger->get_myaddr());
+  (*pm)["back_addr"] = stringify(cluster_messenger->get_myaddr());
+  (*pm)["hb_front_addr"] = stringify(hb_front_server_messenger->get_myaddr());
+  (*pm)["hb_back_addr"] = stringify(hb_back_server_messenger->get_myaddr());
+
   // kernel info
   struct utsname u;
   int r = uname(&u);