blob: 559ac524d7009880c758a68bf24662202dacf8eb (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#!/usr/bin/env bash
set -ex
BDIR=`pwd`
p=$1
echo path $p
test ! -d $p
mkdir $p
strings bin/ceph-osd | grep "^$p/%s__%d.%x"
v=`git describe | cut -c 2-`
echo version $v
echo 'binaries look ok, vstarting'
echo
MON=3 MDS=3 OSD=5 MDS=3 MGR=2 RGW=1 ../src/vstart.sh -x -n -l --bluestore -e
export PATH=bin:$PATH
# do some work to generate a hopefully braod set of object instances
echo 'starting some background work'
../qa/workunits/rados/test.sh &
../qa/workunits/rbd/test_librbd.sh &
../qa/workunits/libcephfs/test.sh &
../qa/workunits/rgw/run-s3tests.sh &
ceph-syn --syn makedirs 3 3 3 &
echo 'waiting a bit'
sleep 10
echo 'triggering some recovery'
kill -9 `cat out/osd.0.pid`
sleep 10
ceph osd out 0
sleep 10
init-ceph start osd.0
ceph osd in 0
sleep 5
echo 'triggering mds work'
bin/ceph mds fail 0
echo 'waiting for worker to join (and ignoring errors)'
wait || true
echo 'importing'
../src/test/encoding/import.sh $p $v ../ceph-object-corpus/archive
for d in ../ceph-object-corpus/archive/$v/objects/*
do
echo prune $d
../ceph-object-corpus/bin/prune.sh $d 25
done
echo 'done'
|