From: Sage Weil Date: Thu, 18 Jul 2013 01:17:29 +0000 (-0700) Subject: qa/workunits/cephtool/test.sh: test 'osd create ' X-Git-Tag: v0.67-rc1~38 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2e216b547481bb52f44eb99102b2ae9ef07efa4d;p=ceph.git qa/workunits/cephtool/test.sh: test 'osd create ' Make sure it gives us back the same id. Signed-off-by: Sage Weil Reviewed-by: Dan Mick --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index a26adcdd2aa2f..d759d675276ed 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'