]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: allow revived MDS to be up:active
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 27 Jan 2017 17:54:39 +0000 (12:54 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 6 Feb 2017 19:07:13 +0000 (14:07 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/mds_thrash.py

index e6e5e08065f0e432be9f1b010927ebdc229c64e6..da805ae320139330b3e94f39672e6ed5b706bc6a 100644 (file)
@@ -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: