File: 025

package info (click to toggle)
sheepdog 0.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,364 kB
  • ctags: 3,951
  • sloc: ansic: 30,552; sh: 3,573; perl: 2,924; asm: 453; makefile: 391; python: 192
file content (44 lines) | stat: -rwxr-xr-x 1,062 bytes parent folder | download | duplicates (3)
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
#!/bin/bash

# Check for a recovery segfault in older versions

. ./common

VDI_NAME="test"
VDI_SIZE="20M"

echo "starting two sheep in the first zone"
for i in `seq 0 1`; do
    $SHEEP $STORE/$i -l level=debug -z 0 -p 700$i -c $DRIVER -y 127.0.0.1
done

echo "starting a sheep in the second zone"
for i in `seq 2 2`; do
    $SHEEP $STORE/$i -l level=debug -z 1 -p 700$i -c $DRIVER -y 127.0.0.1
done

_wait_for_sheep "3"

echo "formatting cluster"
_cluster_format -c 2

echo "creating vdi ${NAME}"
$DOG vdi create ${VDI_NAME} ${VDI_SIZE}

echo "filling ${VDI_NAME} with data"
$QEMU_IO -c "write 0 ${VDI_SIZE}" sheepdog:${VDI_NAME} | _filter_qemu_io

echo "reading back ${VDI_NAME} from second zone"
$QEMU_IO -c "read 0 1m" sheepdog:localhost:7002:${VDI_NAME} | _filter_qemu_io

echo "starting a sheep in the third zone"
for i in `seq 3 3`; do
    $SHEEP $STORE/$i -l level=debug -z 2 -p 700$i -c $DRIVER -y 127.0.0.1
done

_wait_for_sheep 4

echo "check that all sheep are alive"
for i in `seq 0 3`; do
    $DOG cluster info -p 700$i | _filter_cluster_info
done