qa: check replacement MDS is active in thrasher

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2017-01-25 16:30:55 -05:00
parent 19289725c8
commit 8f3e745344
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View 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: