summaryrefslogtreecommitdiffstats
path: root/src/ceph/qa/workunits/mon/osd.sh
blob: 75bf220f6bcdfff7101cca86fca81a6ea0df0cf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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