]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: check replacement MDS is active in thrasher
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 25 Jan 2017 21:30:55 +0000 (16:30 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 6 Feb 2017 19:07:12 +0000 (14:07 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/mds_thrash.py

index 854505428c8cc3a79a1b1ffcca8e98e6660993ab..c9f25451da0c3339a1c348408995fbc3f09ddd24 100644 (file)
@@ -175,7 +175,7 @@ class MDSThrasher(Greenlet):
             if rank is not None:
                 try:
                     info = status.get_rank(self.fs.id, rank)
-                    if info['gid'] != gid:
+                    if info['gid'] != gid and "up:active" == info['state']:
                         self.log('mds.{name} has gained rank={rank}, replacing gid={gid}'.format(name = info['name'], rank = rank, gid = gid))
                         return status, info['name']
                 except: