From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- src/test/cli-integration/balancer/misplaced.t | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/test/cli-integration/balancer/misplaced.t (limited to 'src/test/cli-integration/balancer') diff --git a/src/test/cli-integration/balancer/misplaced.t b/src/test/cli-integration/balancer/misplaced.t new file mode 100644 index 000000000..050cceb64 --- /dev/null +++ b/src/test/cli-integration/balancer/misplaced.t @@ -0,0 +1,30 @@ + $ ceph balancer off + $ ceph balancer mode none + $ ceph osd pool create balancer_opt 128 + pool 'balancer_opt' created + $ ceph osd pool application enable balancer_opt rados + enabled application 'rados' on pool 'balancer_opt' + $ rados bench -p balancer_opt 50 write --no-cleanup > /dev/null + $ ceph balancer on + $ ceph balancer mode crush-compat + $ ceph balancer ls + [] + $ ceph config set osd.* target_max_misplaced_ratio .07 + $ ceph balancer eval + current cluster score [0-9]*\.?[0-9]+.* (re) +# Turn off active balancer to use manual commands + $ ceph balancer off + $ ceph balancer optimize test_plan balancer_opt + $ ceph balancer ls + [ + "test_plan" + ] + $ ceph balancer execute test_plan + $ ceph balancer eval + current cluster score [0-9]*\.?[0-9]+.* (re) +# Plan is gone after execution ? + $ ceph balancer execute test_plan + Error ENOENT: plan test_plan not found + [2] + $ ceph osd pool rm balancer_opt balancer_opt --yes-i-really-really-mean-it + pool 'balancer_opt' removed -- cgit v1.2.3