From: Patrick Donnelly Date: Wed, 25 Jan 2017 21:30:55 +0000 (-0500) Subject: qa: check replacement MDS is active in thrasher X-Git-Tag: v12.0.1~155^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8f3e7453445a396c2958e577edbe58ad136a960e;p=ceph.git qa: check replacement MDS is active in thrasher Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/mds_thrash.py b/qa/tasks/mds_thrash.py index 854505428c8c..c9f25451da0c 100644 --- a/qa/tasks/mds_thrash.py +++ b/qa/tasks/mds_thrash.py @@ -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: