]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: fix failure for osd-scrub-snap.sh 6890/head
authorNing Yao <zay11022@gmail.com>
Thu, 10 Dec 2015 07:36:33 +0000 (15:36 +0800)
committerLoic Dachary <ldachary@redhat.com>
Thu, 10 Dec 2015 16:34:32 +0000 (17:34 +0100)
Reason to get a false negative only one osd, when calling kill_daemons
$dir KILL osd, which means kill -9 shutdown() would not be called to
notify monitor so that it remain active+clean and osd up until monitor
got a mon_report timeout.  Thus wait_for_clean lose it function and when
we call ceph pg scrub, we got an EAGAIN error and monitor will ignore
the scrub message because of osd not up

Signed-off-by: Ning Yao <zay11022@gmail.com>
src/test/osd/osd-scrub-snaps.sh

index 7c1a587ccb917bb1c5d4b43bbb9a7f21ddb64f56..bf59570b9f51893fcb3cee60ae12ebe95f52e93d 100755 (executable)
@@ -92,8 +92,7 @@ function TEST_scrub_snaps() {
     rados -p $poolname rm obj4
     rados -p $poolname rm obj2
 
-    kill_daemons $dir KILL osd || return 1
-    sleep 5
+    kill_daemons $dir TERM osd || return 1
 
     # Don't need to ceph_objectstore_tool function because osd stopped