]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MgrMonitor: only induce mgr epoch shortly after mkfs 16356/head
authorSage Weil <sage@redhat.com>
Sun, 16 Jul 2017 18:47:44 +0000 (14:47 -0400)
committerSage Weil <sage@redhat.com>
Sun, 16 Jul 2017 18:47:44 +0000 (14:47 -0400)
For early clusters, if there isn't an active manager, we eventually want
to trigger a health warning by rolling over the mgrmap epoch.  We don't
want to do that if we have no active/available manager after that.  Fix
by checking ever_had_active_mgr here.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MgrMonitor.cc

index 52e1b0b29f2e67fc757ee7ff424bc4ddc4a9a86a..5857c5b8487e5f8206a5f574ebc3f27032c9b5cb 100644 (file)
@@ -490,6 +490,7 @@ void MgrMonitor::tick()
   }
 
   if (!pending_map.available &&
+      !ever_had_active_mgr &&
       should_warn_about_mgr_down() != HEALTH_OK) {
     dout(10) << " exceeded mon_mgr_mkfs_grace " << g_conf->mon_mgr_mkfs_grace
             << " seconds" << dendl;