]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "mon/MDSMonitor: add missing frozen checks" 39679/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 25 Feb 2021 00:31:11 +0000 (16:31 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 25 Feb 2021 00:31:17 +0000 (16:31 -0800)
The frozen check broke manual MDS failing in some tests.

This reverts commit 725a4b8b42f7cb03138cc1fa950b160abdd52125.

Fixes: https://tracker.ceph.com/issues/49464
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mon/MDSMonitor.cc

index 43ee0a3a473067e7d78c3045dfc152915b78c2f2..38c16d6304501f4033532f2ca7b1cb586a3ddad9 100644 (file)
@@ -1233,11 +1233,6 @@ bool MDSMonitor::fail_mds_gid(FSMap &fsmap, mds_gid_t gid)
   const auto& info = fsmap.get_info_gid(gid);
   dout(1) << "fail_mds_gid " << gid << " mds." << info.name << " role " << info.rank << dendl;
 
-  if (info.is_frozen()) {
-    dout(1) << "mds is frozen" << dendl;
-    return false;
-  }
-
   ceph_assert(mon.osdmon()->is_writeable());
 
   epoch_t blocklist_epoch = 0;
@@ -2000,10 +1995,7 @@ bool MDSMonitor::maybe_resize_cluster(FSMap &fsmap, fs_cluster_id_t fscid)
   } else if (in > max) {
     mds_rank_t target = in - 1;
     const auto &info = mds_map.get_info(target);
-    if (info.is_frozen()) {
-      dout(1) << "highest rank is frozen" << dendl;
-      return false;
-    } else if (mds_map.is_active(target)) {
+    if (mds_map.is_active(target)) {
       dout(1) << "stopping " << target << dendl;
       mon.clog->info() << "stopping " << info.human_name();
       auto f = [](auto& info) {