]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: filter out normal ceph services when processing service map
authorVenky Shankar <vshankar@redhat.com>
Sat, 8 Feb 2020 03:01:30 +0000 (22:01 -0500)
committerVenky Shankar <vshankar@redhat.com>
Tue, 18 Feb 2020 04:45:45 +0000 (23:45 -0500)
This is done is couple of places in ceph manager -- when culling
entries from service map and the other when dumping serice status.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/mgr/DaemonServer.cc

index 8bbac9651516dd09912abe20cf8e33d3573aa864..08b895bc1979fb91b6ee42c4d6085f06eed234da 100644 (file)
@@ -964,6 +964,10 @@ bool DaemonServer::_handle_command(
     // only include state from services that are in the persisted service map
     f->open_object_section("service_status");
     for (auto& [type, service] : pending_service_map.services) {
+      if (ServiceMap::is_normal_ceph_entity(type)) {
+        continue;
+      }
+
       f->open_object_section(type.c_str());
       for (auto& q : service.daemons) {
        f->open_object_section(q.first.c_str());
@@ -2741,6 +2745,10 @@ void DaemonServer::got_service_map()
   // cull missing daemons, populate new ones
   std::set<std::string> types;
   for (auto& [type, service] : pending_service_map.services) {
+    if (ServiceMap::is_normal_ceph_entity(type)) {
+      continue;
+    }
+
     types.insert(type);
 
     std::set<std::string> names;