]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: update mds_pre_upgrade to no longer stop standbys 42578/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 30 Mar 2021 21:55:54 +0000 (14:55 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 16 Aug 2021 21:23:55 +0000 (14:23 -0700)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 2cd3494771b41216ad99a3bf462e2462b30254b6)

qa/tasks/mds_pre_upgrade.py

index a633964f6869ca0651719756d138648bd3870cf6..812d402edee454b51ef1855850969d2705b24b04 100644 (file)
@@ -3,7 +3,6 @@ Prepare MDS cluster for upgrade.
 """
 
 import logging
-import time
 
 from tasks.cephfs.filesystem import Filesystem
 
@@ -22,23 +21,7 @@ def task(ctx, config):
         'snap-upgrade task only accepts a dict for configuration'
 
     fs = Filesystem(ctx)
-    status = fs.getinfo()
-
+    fs.getinfo() # load name
     fs.set_allow_standby_replay(False)
     fs.set_max_mds(1)
     fs.reach_max_mds()
-
-    # Stop standbys now to minimize time rank 0 is down in subsequent:
-    # tasks:
-    # - ceph.stop: [mds.*]
-    rank0 = fs.get_rank(rank=0, status=status)
-    for daemon in ctx.daemons.iter_daemons_of_role('mds', fs.mon_manager.cluster):
-        if rank0['name'] != daemon.id_:
-            daemon.stop()
-
-    for i in range(1, 10):
-        time.sleep(5) # time for FSMap to update
-        status = fs.getinfo()
-        if len(list(status.get_standbys())) == 0:
-            break
-    assert(len(list(status.get_standbys())) == 0)