Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / workunits / mon / osd.sh
1 #!/bin/sh -x
2
3 set -e
4
5 ua=`uuidgen`
6 ub=`uuidgen`
7
8 # shoudl get same id with same uuid
9 na=`ceph osd create $ua`
10 test $na -eq `ceph osd create $ua`
11
12 nb=`ceph osd create $ub`
13 test $nb -eq `ceph osd create $ub`
14 test $nb -ne $na
15
16 ceph osd rm $na
17 ceph osd rm $na
18 ceph osd rm $nb
19 ceph osd rm 1000
20
21 na2=`ceph osd create $ua`
22
23 echo OK
24