diff options
author | Martin Schwenke <martin@meltin.net> | 2019-11-28 14:00:58 +1100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-01-14 12:46:17 +0000 |
commit | b2800628a6b0494d0e7c82a89ae288fdd0ae36f5 (patch) | |
tree | cc85b3dcf2a2ae126313529821cd6d04458b8f12 | |
parent | 57390cc5a367376917f2c9a4545098742f7baccc (diff) | |
download | samba-b2800628a6b0494d0e7c82a89ae288fdd0ae36f5.tar.gz |
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
RN: Fix IPv6 issues (NFS connection tracking, tests)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Jan 3 00:00:55 UTC 2020 on sn-devel-184
(backported from commit 9edf15afc219a1a782ec1e4d29909361bbabc744)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(v4-10-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-10-test): Tue Jan 14 12:46:17 UTC 2020 on sn-devel-144
-rwxr-xr-x | ctdb/tests/complex/60_rogueip_releaseip.sh | 10 | ||||
-rwxr-xr-x | ctdb/tests/complex/61_rogueip_takeip.sh | 14 |
2 files changed, 24 insertions, 0 deletions
diff --git a/ctdb/tests/complex/60_rogueip_releaseip.sh b/ctdb/tests/complex/60_rogueip_releaseip.sh index 88e4e554c34..99d0d406e6f 100755 --- a/ctdb/tests/complex/60_rogueip_releaseip.sh +++ b/ctdb/tests/complex/60_rogueip_releaseip.sh @@ -21,6 +21,16 @@ 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 +*:*) + echo "SKIPPING TEST: not supported for IPv6 addresses" + exit 0 + ;; +esac + get_test_ip_mask_and_iface echo "Finding another node that knows about $test_ip" diff --git a/ctdb/tests/complex/61_rogueip_takeip.sh b/ctdb/tests/complex/61_rogueip_takeip.sh index 2c5f7c5c999..e1981eba572 100755 --- a/ctdb/tests/complex/61_rogueip_takeip.sh +++ b/ctdb/tests/complex/61_rogueip_takeip.sh @@ -21,6 +21,20 @@ 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 +*:*) + echo "SKIPPING TEST: not supported for IPv6 addresses" + exit 0 + ;; +esac + get_test_ip_mask_and_iface echo "Deleting IP $test_ip from all nodes" |