#!/bin/bash test_info() { cat </dev/null 2>&1" wait_until_get_src_socket "tcp" "${test_ip}:${test_port}" $nc_pid "nc" src_socket="$out" echo "Source socket is $src_socket" echo "Sleeping for MonitorInterval..." sleep_for $monitor_interval echo "Trying to determine NFS_TICKLE_SHARED_DIRECTORY..." f="/etc/sysconfig/nfs" try_command_on_node -v 0 "[ -r $f ] && sed -n -e s@^NFS_TICKLE_SHARED_DIRECTORY=@@p $f" || true nfs_tickle_shared_directory="${out:-/gpfs/.ctdb/nfs-tickles}" try_command_on_node $test_node hostname test_hostname=$out try_command_on_node -v 0 cat "${nfs_tickle_shared_directory}/$test_hostname/$test_ip" if [ "${out/${src_socket}/}" != "$out" ] ; then echo "GOOD: NFS connection tracked OK in tickles file." else echo "BAD: Socket not tracked in NFS tickles file:" testfailures=1 fi tcptickle_sniff_start $src_socket "${test_ip}:${test_port}" echo "Disabling node $test_node" try_command_on_node 1 $CTDB disable -n $test_node onnode 0 $CTDB_TEST_WRAPPER wait_until_node_has_status $test_node disabled tcptickle_sniff_wait_show