From fd4b61890de2e65e7959edbcbb8b9506cab37cea Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 27 Jan 2017 12:54:39 -0500 Subject: [PATCH] qa: allow revived MDS to be up:active Signed-off-by: Patrick Donnelly --- qa/tasks/mds_thrash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/mds_thrash.py b/qa/tasks/mds_thrash.py index e6e5e08065f0e..da805ae320139 100644 --- a/qa/tasks/mds_thrash.py +++ b/qa/tasks/mds_thrash.py @@ -322,11 +322,11 @@ class MDSThrasher(Greenlet): raise RuntimeError('timeout waiting for MDS to revive') status = self.fs.status() info = status.get_mds(name) - if info and info['state'] in ('up:standby', 'up:standby-replay'): + if info and info['state'] in ('up:standby', 'up:standby-replay', 'up:active'): self.log('{label} reported in {state} state'.format(label=label, state=info['state'])) break self.log( - 'waiting till mds map indicates {label} is in standby or standby-replay'.format(label=label)) + 'waiting till mds map indicates {label} is in active, standby or standby-replay'.format(label=label)) time.sleep(2) for stat in stats: -- 2.39.5