]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix the potential delay of pg state change 17253/head
authorhuangjun <huangjun@xsky.com>
Fri, 25 Aug 2017 09:07:37 +0000 (17:07 +0800)
committerhuangjun <huangjun@xsky.com>
Fri, 25 Aug 2017 09:07:37 +0000 (17:07 +0800)
If start osd process first and then mark it in, the
pg state may remain all active+clean when doing
wait_for_clean() check, which may fail the next
osd_scrub_pgs() process.
So faster pg state change by marking osd in first.

Signed-off-by: huangjun <huangjun@xsky.com>
qa/tasks/lost_unfound.py
qa/tasks/rep_lost_unfound_delete.py

index 1cc588b401674e116336d15ba9e32dd7586756d6..64872743b25f7346af4c010e0182ce9b86dbf024 100644 (file)
@@ -169,8 +169,8 @@ def task(ctx, config):
         assert not err
 
     # see if osd.1 can cope
-    manager.revive_osd(1)
     manager.mark_in_osd(1)
+    manager.revive_osd(1)
     manager.wait_till_osd_is_up(1)
     manager.wait_for_clean()
     run.wait(procs)
index 4e5678d0858819d24124979b9c9e7ff0f55aa9c0..d24360083861f4349af19e714d16bc858ddf0cd6 100644 (file)
@@ -169,8 +169,8 @@ def task(ctx, config):
         assert err
 
     # see if osd.1 can cope
-    manager.revive_osd(1)
     manager.mark_in_osd(1)
+    manager.revive_osd(1)
     manager.wait_till_osd_is_up(1)
     manager.wait_for_clean()
     run.wait(procs)