Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 58 lines (43 sloc) 0.926 kb
#!/bin/bash
# Test master node killing and master transfer
seq=`basename $0`
echo "QA output created by $seq"
here=`pwd`
tmp=/tmp/$$
status=1 # failure is the default!
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
_cleanup
for i in 0 1; do
_start_sheep $i
sleep 1
done
# start Sheepdog with two nodes
$COLLIE cluster format
# kill the master node
_kill_sheep 0
sleep 1
# start another sheep
_start_sheep 2
sleep 1
# kill all sheeps
for i in 1 2; do
_kill_sheep $i
sleep 1
done
for i in 0 1 2; do
_start_sheep $i
sleep 1
done
echo check whether Sheepdog is running with only one node
$COLLIE cluster info -p 7002 | _filter_cluster_info
# add the other nodes
for i in 0 1; do
_start_sheep $i
sleep 1
done
echo check whether all nodes have the same cluster info
for i in 0 1 2; do
$COLLIE cluster info -p 700$i | _filter_cluster_info
done
Jump to Line
Something went wrong with that request. Please try again.