ceph/qa/workunits/mon/osd.sh
Sage Weil 670a14827a qa: fix mon/osd.sh
It needs to be a valid osd id that we try to remove (that doesn't exist).

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-13 08:30:09 -08:00

25 lines
326 B
Bash
Executable File

#!/bin/sh -x
set -e
ua=`uuidgen`
ub=`uuidgen`
# shoudl get same id with same uuid
na=`ceph osd create $ua`
test $na -eq `ceph osd create $ua`
nb=`ceph osd create $ub`
test $nb -eq `ceph osd create $ub`
test $nb -ne $na
ceph osd rm $na
ceph osd rm $na
ceph osd rm $nb
ceph osd rm 1000
na2=`ceph osd create $ua`
echo OK