mirror of
https://github.com/ceph/ceph
synced 2025-02-08 03:18:12 +00:00
osdmaptool: fix cli tests
From c22c84a88c
.
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
082e7c9eed
commit
1ee112fa2e
@ -3,6 +3,7 @@
|
||||
osdmaptool: writing epoch 1 to myosdmap
|
||||
|
||||
$ ORIG_FSID="$(osdmaptool --print myosdmap|grep ^fsid)"
|
||||
osdmaptool: osdmap file 'myosdmap'
|
||||
|
||||
$ osdmaptool --createsimple 3 myosdmap
|
||||
osdmaptool: osdmap file 'myosdmap'
|
||||
@ -27,6 +28,7 @@
|
||||
|
||||
|
||||
$ NEW_FSID="$(osdmaptool --print myosdmap|grep ^fsid)"
|
||||
osdmaptool: osdmap file 'myosdmap'
|
||||
$ [ "$ORIG_FSID" = "$NEW_FSID" ]
|
||||
|
||||
$ osdmaptool --createsimple 1 --clobber myosdmap
|
||||
@ -49,6 +51,7 @@
|
||||
|
||||
|
||||
$ NEW_FSID="$(osdmaptool --print myosdmap|grep ^fsid)"
|
||||
osdmaptool: osdmap file 'myosdmap'
|
||||
#TODO --clobber should probably set new fsid, remove the [1]
|
||||
$ [ "$ORIG_FSID" != "$NEW_FSID" ]
|
||||
[1]
|
||||
|
@ -1,4 +1,5 @@
|
||||
$ osdmaptool --create-from-conf om -c $TESTDIR/ceph.conf.withracks > /dev/null
|
||||
osdmaptool: osdmap file 'om'
|
||||
$ osdmaptool --test-map-pg 0.0 om
|
||||
osdmaptool: osdmap file 'om'
|
||||
parsed '0.0' -> 0.0
|
||||
|
Loading…
Reference in New Issue
Block a user