From: Sage Weil Date: Wed, 15 Mar 2017 22:27:22 +0000 (-0400) Subject: test/cli/osdmaptool/remap.t: add --remap test X-Git-Tag: v12.0.2~280^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bd49dc086308d25bd88fe815995c2c5527200433;p=ceph.git test/cli/osdmaptool/remap.t: add --remap test Signed-off-by: Sage Weil --- diff --git a/src/test/cli/osdmaptool/remap.t b/src/test/cli/osdmaptool/remap.t new file mode 100644 index 000000000000..32841bccdf00 --- /dev/null +++ b/src/test/cli/osdmaptool/remap.t @@ -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