ip=$2
maskbits=$3
- [ -n "$CTDB_TEST_REAL_CLUSTER" ] && {
+ [ -n "$TEST_LOCAL_DAEMONS" ] || {
/sbin/ip addr add $ip/$maskbits dev $iface || {
echo "Failed to add $ip/$maskbits on dev $iface"
exit 1
iface=$1
ip=$2
maskbits=$3
- [ -n "$CTDB_TEST_REAL_CLUSTER" ] && {
+ [ -n "$TEST_LOCAL_DAEMONS" ] || {
/sbin/ip addr del $ip/$maskbits dev $iface || {
echo "Failed to del $ip on dev $iface"
exit 1
local node_ip=$(sed -n -e "$(($pnn + 1))p" "$CTDB_NODES")
local ctdb_options="--reclock=${TEST_VAR_DIR}/rec.lock --nlist $CTDB_NODES --nopublicipcheck --node-ip=${node_ip} --event-script-dir=${TEST_VAR_DIR}/events.d --logfile=${TEST_VAR_DIR}/daemon.${pnn}.log -d 3 --dbdir=${TEST_VAR_DIR}/test.db --dbdir-persistent=${TEST_VAR_DIR}/test.db/persistent --dbdir-state=${TEST_VAR_DIR}/test.db/state"
- if [ -z "$CTDB_TEST_REAL_CLUSTER" ]; then
+ if [ -n "$TEST_LOCAL_DAEMONS" ] ; then
ctdb_options="$ctdb_options --public-interface=lo"
fi
-e 's@[[:alpha:]]+\[@@g' \
-e 's@\]@@g')
-if [ -n "$CTDB_TEST_REAL_CLUSTER" ]; then
+if [ -z "$TEST_LOCAL_DAEMONS" ]; then
while read ip pnn ; do
try_command_on_node $pnn "ip addr show"
if [ "${out/inet ${ip}\/}" != "$out" ] ; then