]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix pool-quota related tests 17763/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 16 Sep 2017 02:04:56 +0000 (10:04 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 16 Sep 2017 05:50:18 +0000 (13:50 +0800)
https://github.com/ceph/ceph/pull/17371 introduces support of
per-pool space-full flag, which turns out to set both
full and full_no_quota flags now if a pool is currently running out
of quota.

Actually this test is fragile as long as we keep appending new flags
at pool granularity, but let's not bother with that complexity now.

Fixes: http://tracker.ceph.com/issues/21409
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
qa/workunits/rados/test_rados_tool.sh

index 8b89112b34766ceddc06bf9b051cf20fdd690ec9..47471823033493bb4c447dcb60fe965a2fcc38b5 100755 (executable)
@@ -346,7 +346,7 @@ test_rmobj() {
     $CEPH_TOOL osd pool set-quota $p max_objects 1
     V1=`mktemp fooattrXXXXXXX`
     $RADOS_TOOL put $OBJ $V1 -p $p
-    while ! $CEPH_TOOL osd dump | grep 'full max_objects'
+    while ! $CEPH_TOOL osd dump | grep 'full_no_quota max_objects'
     do
        sleep 2
     done