summaryrefslogtreecommitdiffstats
path: root/src/test/cli/osdmaptool/upmap.t
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/test/cli/osdmaptool/upmap.t
parentInitial commit. (diff)
downloadceph-upstream/18.2.2.tar.xz
ceph-upstream/18.2.2.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/test/cli/osdmaptool/upmap.t37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/test/cli/osdmaptool/upmap.t b/src/test/cli/osdmaptool/upmap.t
new file mode 100644
index 000000000..b84fea28c
--- /dev/null
+++ b/src/test/cli/osdmaptool/upmap.t
@@ -0,0 +1,37 @@
+ $ osdmaptool --create-from-conf om -c $TESTDIR/ceph.conf.withracks --with-default-pool
+ osdmaptool: osdmap file 'om'
+ osdmaptool: writing epoch 1 to om
+ $ osdmaptool --osd_calc_pg_upmaps_aggressively=false om --mark-up-in --upmap-max 11 --upmap c --save
+ osdmaptool: osdmap file 'om'
+ marking all OSDs up and in
+ writing upmap command output to: c
+ checking for upmap cleanups
+ upmap, max-count 11, max deviation 5
+ pools rbd
+ prepared 11/11 changes
+ osdmaptool: writing epoch 3 to om
+ $ cat c
+ ceph osd pg-upmap-items 1.7 142 147
+ ceph osd pg-upmap-items 1.8 219 223
+ ceph osd pg-upmap-items 1.17 201 202 171 173
+ ceph osd pg-upmap-items 1.1a 201 202
+ ceph osd pg-upmap-items 1.1c 201 202
+ ceph osd pg-upmap-items 1.20 201 202
+ ceph osd pg-upmap-items 1.24 232 233
+ ceph osd pg-upmap-items 1.51 201 202
+ ceph osd pg-upmap-items 1.62 219 223
+ ceph osd pg-upmap-items 1.6f 219 223
+ $ osdmaptool --print om | grep pg_upmap_items
+ osdmaptool: osdmap file 'om'
+ pg_upmap_items 1.7 [142,147]
+ pg_upmap_items 1.8 [219,223]
+ pg_upmap_items 1.17 [201,202,171,173]
+ pg_upmap_items 1.1a [201,202]
+ pg_upmap_items 1.1c [201,202]
+ pg_upmap_items 1.20 [201,202]
+ pg_upmap_items 1.24 [232,233]
+ pg_upmap_items 1.51 [201,202]
+ pg_upmap_items 1.62 [219,223]
+ pg_upmap_items 1.6f [219,223]
+ $ rm -f om c
+