]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Fail upon flush_pg_stats timeout 20548/head
authorDavid Zafman <dzafman@redhat.com>
Mon, 29 Jan 2018 19:06:52 +0000 (11:06 -0800)
committerDavid Zafman <dzafman@redhat.com>
Thu, 22 Feb 2018 21:10:16 +0000 (13:10 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/ceph-helpers.sh

index f50dd4618224548f92053b44bbabf1261a7e1e0b..d7d4db579be58e2a1a37c6af8cfba16a0f00d79b 100755 (executable)
@@ -1398,7 +1398,7 @@ function wait_for_clean() {
     local -a delays=($(get_timeout_delays $TIMEOUT .1))
     local -i loop=0
 
-    flush_pg_stats
+    flush_pg_stats || return 1
     while test $(get_num_pgs) == 0 ; do
        sleep 1
     done
@@ -1829,7 +1829,7 @@ function test_flush_pg_stats()
     run_osd $dir 0 || return 1
     create_rbd_pool || return 1
     rados -p rbd put obj /etc/group
-    flush_pg_stats
+    flush_pg_stats || return 1
     local jq_filter='.pools | .[] | select(.name == "rbd") | .stats'
     raw_bytes_used=`ceph df detail --format=json | jq "$jq_filter.raw_bytes_used"`
     bytes_used=`ceph df detail --format=json | jq "$jq_filter.bytes_used"`