]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/osd/osd-mark-down: create pool to get updated osdmap faster 19947/head
authorhuangjun <huangjun@xsky.com>
Mon, 9 Oct 2017 14:05:21 +0000 (22:05 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 15 Jan 2018 03:10:14 +0000 (11:10 +0800)
Mon send osdmap to random osds after we mark osd down, the down osd
may use more than $sleep time to get updated osdmap if there is no
osd ping between osds. So create pool after setup cluster.

Signed-off-by: huangjun <huangjun@xsky.com>
(cherry picked from commit ee618a38a9ed06b3ea4d02e46cdeae6afb376b82)

qa/standalone/osd/osd-markdown.sh

index b3c800c081dc6a12a09b33cd6f494a984c18e4c8..6a28a305caaf8cc9ceed9eb8ec7f7cf6f0eace25 100755 (executable)
@@ -59,6 +59,9 @@ function TEST_markdown_exceed_maxdown_count() {
     run_osd $dir 0 || return 1
     run_osd $dir 1 || return 1
     run_osd $dir 2 || return 1
+
+    create_rbd_pool || return 1
+
     # 3+1 times within 300s, osd should stay dead on the 4th time
     local count=3
     local sleeptime=10
@@ -80,6 +83,8 @@ function TEST_markdown_boot() {
     run_osd $dir 1 || return 1
     run_osd $dir 2 || return 1
 
+    create_rbd_pool || return 1
+
     # 3 times within 120s, should stay up
     local count=3
     local sleeptime=10
@@ -102,6 +107,7 @@ function TEST_markdown_boot_exceed_time() {
     run_osd $dir 1 || return 1
     run_osd $dir 2 || return 1
 
+    create_rbd_pool || return 1
 
     # 3+1 times, but over 40s, > 20s, so should stay up
     local count=3