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 /gpfs/.ctdb/nfs-tickles/$test_hostname/$test_ip
+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."
# CTDB faster than it takes us to wait for netstat to register the
# connection and then use onnode below to ask CTDB about it.
-try_command_on_node -v 0 ctdb gettickles $test_ip
+try_command_on_node -v 0 ctdb gettickles $test_ip -n $test_node
if [ "${out/SRC: ${src_socket} /}" != "$out" ] ; then
echo "GOOD: CIFS connection tracked OK by CTDB."
tcptickle_sniff_start $src_socket "${test_ip}:${test_port}"
-echo "Disabling node $test_node"
+echo "Disabling node $test_node"r
try_command_on_node 1 $CTDB disable -n $test_node
onnode 0 $CTDB_TEST_WRAPPER wait_until_node_has_status $test_node disabled
arp -d $test_ip >/dev/null 2>&1 || true
echo "SSHing to ${test_ip} and running hostname..."
-original_hostname=$(ssh $test_ip hostname)
+original_hostname=$(ssh -o "StrictHostKeyChecking no" $test_ip hostname)
[ $? -eq 0 ]
echo "Hostname is: ${original_hostname}"
gratarp_sniff_wait_show
echo "SSHing to ${test_ip} and running hostname (again)..."
-new_hostname=$(ssh $test_ip hostname)
+new_hostname=$(ssh -o "StrictHostKeyChecking no" $test_ip hostname)
[ $? -eq 0 ]
echo "Hostname is: ${new_hostname}"