]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/cli/osdmaptool/remap.t: add --remap test
authorSage Weil <sage@redhat.com>
Wed, 15 Mar 2017 22:27:22 +0000 (18:27 -0400)
committerSage Weil <sage@redhat.com>
Tue, 28 Mar 2017 14:12:09 +0000 (10:12 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/cli/osdmaptool/remap.t [new file with mode: 0644]

diff --git a/src/test/cli/osdmaptool/remap.t b/src/test/cli/osdmaptool/remap.t
new file mode 100644 (file)
index 0000000..32841bc
--- /dev/null
@@ -0,0 +1,23 @@
+  $ osdmaptool --create-from-conf om -c $TESTDIR/ceph.conf.withracks
+  osdmaptool: osdmap file 'om'
+  osdmaptool: writing epoch 1 to om
+  $ osdmaptool om --mark-up-in --remap-max 11 --remap c
+  osdmaptool: osdmap file 'om'
+  marking all OSDs up and in
+  writing remap command output to: c
+  checking for remap cleanups
+  remap, max-count 11, max deviation 0.01
+  osdmaptool: writing epoch 3 to om
+  $ cat c
+  ceph osd pg-remap-items 0.3 54 52 156 155
+  ceph osd pg-remap-items 0.1b 158 155 231 227 143 142
+  ceph osd pg-remap-items 0.22 168 163 54 52 136 135
+  ceph osd pg-remap-items 0.2e 87 86 54 52
+  ceph osd pg-remap-items 0.6f 69 65 54 52 157 155
+  ceph osd pg-remap-items 0.12b 54 52 226 227
+  ceph osd pg-remap-items 0.13f 54 52 96 95 43 46
+  ceph osd pg-remap-items 0.151 36 42 54 52
+  ceph osd pg-remap-items 0.185 60 61 54 52
+  ceph osd pg-remap-items 0.1e3 54 52
+  ceph osd pg-remap-items 0.272 54 52
+  $ rm -f om c