From: Martin Schwenke Date: Thu, 28 Nov 2019 03:00:58 +0000 (+1100) Subject: ctdb-tests: Skip some tests that don't work with IPv6 X-Git-Tag: ldb-2.1.0~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9edf15afc219a1a782ec1e4d29909361bbabc744;p=thirdparty%2Fsamba.git ctdb-tests: Skip some tests that don't work with IPv6 See the comments added to the tests. It may be possible to rewrite these so they do something sane for IPv6... some other time. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14227 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Fri Jan 3 00:00:55 UTC 2020 on sn-devel-184 --- diff --git a/ctdb/tests/CLUSTER/complex/60_rogueip_releaseip.sh b/ctdb/tests/CLUSTER/complex/60_rogueip_releaseip.sh index d168cf22216..efa9ef2b6a1 100755 --- a/ctdb/tests/CLUSTER/complex/60_rogueip_releaseip.sh +++ b/ctdb/tests/CLUSTER/complex/60_rogueip_releaseip.sh @@ -14,6 +14,13 @@ select_test_node_and_ips echo "Using $test_ip, which is onnode $test_node" +# This test depends on being able to assign a duplicate address on a +# 2nd node. However, IPv6 guards against this and causes the test to +# fail. +case "$test_ip" in +*:*) ctdb_test_skip "This test is not supported for IPv6 addresses" ;; +esac + get_test_ip_mask_and_iface echo "Finding another node that knows about $test_ip" diff --git a/ctdb/tests/CLUSTER/complex/61_rogueip_takeip.sh b/ctdb/tests/CLUSTER/complex/61_rogueip_takeip.sh index d4fee69c96d..5ee4e544eeb 100755 --- a/ctdb/tests/CLUSTER/complex/61_rogueip_takeip.sh +++ b/ctdb/tests/CLUSTER/complex/61_rogueip_takeip.sh @@ -14,6 +14,17 @@ select_test_node_and_ips echo "Running test against node $test_node and IP $test_ip" +# This test puts an address on an interface and then needs to quickly +# configure that address and cause an IP takeover. However, an IPv6 +# address will be tentative for a while so "quickly" is not possible". +# When ctdb_control_takeover_ip() calls ctdb_sys_have_ip() it will +# decide that the address is not present. It then attempts a takeip, +# which can fail if the address is suddenly present because it is no +# longer tentative. +case "$test_ip" in +*:*) ctdb_test_skip "This test is not supported for IPv6 addresses" ;; +esac + get_test_ip_mask_and_iface echo "Deleting IP $test_ip from all nodes"