From ba346bf4321b2fcc48f4922625b424a554f20a16 Mon Sep 17 00:00:00 2001 From: Guang Yang Date: Thu, 3 Dec 2015 02:16:52 +0000 Subject: [PATCH] qa: add a test for the recovery_priority/recovery_op_priority pool settings. Signed-off-by: Guang Yang --- qa/workunits/cephtool/test.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index b33f1bec4374..9ab04d6a49a2 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1407,6 +1407,18 @@ function test_mon_osd_pool_set() ceph osd pool set $TEST_POOL_GETSET deep_scrub_interval 0 expect_false "ceph osd pool get $TEST_POOL_GETSET deep_scrub_interval | grep '.'" + expect_false "ceph osd pool get $TEST_POOL_GETSET recovery_priority | grep '.'" + ceph osd pool set $TEST_POOL_GETSET recovery_priority 5 + ceph osd pool get $TEST_POOL_GETSET recovery_priority | grep 'recovery_priority: 5' + ceph osd pool set $TEST_POOL_GETSET recovery_priority 0 + expect_false "ceph osd pool get $TEST_POOL_GETSET recovery_priority | grep '.'" + + expect_false "ceph osd pool get $TEST_POOL_GETSET recovery_op_priority | grep '.'" + ceph osd pool set $TEST_POOL_GETSET recovery_op_priority 5 + ceph osd pool get $TEST_POOL_GETSET recovery_op_priority | grep 'recovery_op_priority: 5' + ceph osd pool set $TEST_POOL_GETSET recovery_op_priority 0 + expect_false "ceph osd pool get $TEST_POOL_GETSET recovery_op_priority | grep '.'" + ceph osd pool set $TEST_POOL_GETSET nopgchange 1 expect_false ceph osd pool set $TEST_POOL_GETSET pg_num 10 expect_false ceph osd pool set $TEST_POOL_GETSET pgp_num 10 -- 2.47.3