]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/mgr/balancer.sh: adapt test
authorNeha Ojha <nojha@redhat.com>
Wed, 8 Apr 2020 23:21:04 +0000 (23:21 +0000)
committerNeha Ojha <nojha@redhat.com>
Tue, 14 Apr 2020 00:05:02 +0000 (00:05 +0000)
Now that the balancer is on by default the test needs these changes.

Signed-off-by: Neha Ojha <nojha@redhat.com>
qa/standalone/mgr/balancer.sh

index 28db7038588e6637ace1ea8f6486e479b5629931..2d7b2f35dc1067a821d03dbb3373a18620fa37ce 100755 (executable)
@@ -49,12 +49,11 @@ function TEST_balancer() {
     wait_for_clean || return 1
 
     ceph pg dump pgs
-    ceph osd set-require-min-compat-client luminous
     ceph balancer status || return 1
     eval MODE=$(ceph balancer status | jq '.mode')
-    test $MODE = "none" || return 1
+    test $MODE = "upmap" || return 1
     ACTIVE=$(ceph balancer status | jq '.active')
-    test $ACTIVE = "false" || return 1
+    test $ACTIVE = "true" || return 1
 
     ceph balancer ls || return 1
     PLANS=$(ceph balancer ls)
@@ -80,6 +79,7 @@ function TEST_balancer() {
     ceph balancer status || return 1
     eval MODE=$(ceph balancer status | jq '.mode')
     test $MODE = "crush-compat" || return 1
+    ceph balancer off || return 1
     ! ceph balancer optimize plan_crush $TEST_POOL1 || return 1
     ceph balancer status || return 1
     eval RESULT=$(ceph balancer status | jq '.optimize_result')