]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/cephtool/test.sh: test reweight-by-x commands
authorSage Weil <sage@redhat.com>
Wed, 2 Mar 2016 22:34:48 +0000 (17:34 -0500)
committerSage Weil <sage@redhat.com>
Thu, 10 Mar 2016 13:30:47 +0000 (08:30 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 28b33a5b57e3f898808bd8ccc5e314667f84912a)

qa/workunits/cephtool/test.sh

index 67cd3648e9b78c36c5bd1f6cb56fb969b0c3b2c4..a508e0f3077d5135a8362ae876c2f14bc84841d3 100755 (executable)
@@ -1403,8 +1403,12 @@ function test_mon_osd_misc()
   set -e
 
   ceph osd reweight-by-utilization 110
+  ceph osd reweight-by-utilization 110 .5
+  ceph osd test-reweight-by-utilization 110 .5 --no-increasing
   ceph osd reweight-by-pg 110
+  ceph osd test-reweight-by-pg 110 .5
   ceph osd reweight-by-pg 110 rbd
+  ceph osd reweight-by-pg 110 .5 rbd
   expect_false ceph osd reweight-by-pg 110 boguspoolasdfasdfasdf
 }