select_test_node_and_ips
+# $test_node and $test_ip set by select_test_node_and_ips()
+# shellcheck disable=SC2154
echo "Checking that node ${test_node} hosts ${test_ip}..."
test_node_has_test_ip
echo "Attempting to remove ${test_ip} from node ${test_node}."
-try_command_on_node $test_node $CTDB delip $test_ip
-try_command_on_node $test_node $CTDB ipreallocate
-wait_until_ips_are_on_node '!' $test_node $test_ip
+ctdb_onnode "$test_node" "delip ${test_ip}"
+ctdb_onnode "$test_node" "ipreallocate"
+wait_until_ips_are_on_node '!' "$test_node" "$test_ip"
echo "Waiting for ${test_ip} to disappear from node ${test_node}..."
wait_until 60/5 '!' test_node_has_test_ip