summaryrefslogtreecommitdiffstats
path: root/src/test/cli-integration/balancer/misplaced.t
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/test/cli-integration/balancer/misplaced.t
parentInitial commit. (diff)
downloadceph-upstream.tar.xz
ceph-upstream.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/cli-integration/balancer/misplaced.t')
-rw-r--r--src/test/cli-integration/balancer/misplaced.t28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/test/cli-integration/balancer/misplaced.t b/src/test/cli-integration/balancer/misplaced.t
new file mode 100644
index 00000000..5ab21ff7
--- /dev/null
+++ b/src/test/cli-integration/balancer/misplaced.t
@@ -0,0 +1,28 @@
+ $ 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