diff options
author | Sage Weil <sage@inktank.com> | 2013-07-17 18:17:29 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-07-17 18:18:51 -0700 |
commit | 2e216b547481bb52f44eb99102b2ae9ef07efa4d (patch) | |
tree | f6bc18e3e4f3624dae0aea11b0a5e09c9667903a | |
parent | b41f1ba48563d1d3fd17c2f62d10103b5d63f305 (diff) | |
download | ceph-2e216b547481bb52f44eb99102b2ae9ef07efa4d.tar.gz |
qa/workunits/cephtool/test.sh: test 'osd create <uuid>'
Make sure it gives us back the same id.
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
-rwxr-xr-x | qa/workunits/cephtool/test.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index a26adcdd2aa..d759d675276 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -172,6 +172,13 @@ done id=`ceph osd create` ceph osd lost $id --yes-i-really-mean-it ceph osd rm $id + +uuid=`uuidgen` +id=`ceph osd create $uuid` +id2=`ceph osd create $uuid` +[ "$id" = "$id2" ] +ceph osd rm $id + ceph osd ls ceph osd lspools | grep data ceph osd map data foo | grep 'pool.*data.*object.*foo.*pg.*up.*acting' |