]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: disable pg_autoscale for new pools in e2e tests 31396/head
authorKiefer Chang <kiefer.chang@suse.com>
Tue, 5 Nov 2019 04:56:07 +0000 (12:56 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Tue, 5 Nov 2019 10:38:29 +0000 (18:38 +0800)
The pg_autoscaler might interfere the editing pool e2e test, disable the
global config to avoid this problem.

Fixes: https://tracker.ceph.com/issues/42608
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
src/pybind/mgr/dashboard/run-frontend-e2e-tests.sh

index ad4c64f5b26bf1d7aaba11cb7333e34867eea47b..1d6c728b70eb94e237ebb1a0815cddb99d08bf0f 100755 (executable)
@@ -58,6 +58,13 @@ if [ "$BASE_URL" == "" ]; then
     # Set SSL verify to False
     ./bin/ceph dashboard set-rgw-api-ssl-verify False
 
+    # Disable PG autoscaling for new pools. This is a temporary workaround.
+    # e2e tests for pools should be adapted to remove this workaround after
+    # these issues are resolved:
+    # - https://tracker.ceph.com/issues/38227
+    # - https://tracker.ceph.com/issues/42638
+    ./bin/ceph config set global osd_pool_default_pg_autoscale_mode off
+
     BASE_URL=$(./bin/ceph mgr services | jq -r .dashboard)
 fi