[Maria-discuss] why are ipv6 tests not simply skipped?
these tests should be skipped in case the machine has no ipv6 config instead fired up and failing __________________________________ CURRENT_TEST: rpl.rpl_ip_mix mysqltest: In included file "./include/rpl_ip_mix.inc": included from /usr/share/mysql-test/suite/rpl/t/rpl_ip_mix.test at line 11: At line 2: query 'connect master,$IPv6,root,,test,$MASTER_MYPORT' failed: 2003: Can't connect to MySQL server on '::1' (101) The result from queries just before the failure was: #################### IP: ::1 ########################### connect (master,::1,root,,test,MASTER_MYPORT); - saving '/usr/share/mysql-test/var/log/rpl.rpl_ip_mix/' to '/usr/share/mysql-test/var/log/rpl.rpl_ip_mix/' rpl.rpl_ip_mix2 [ fail ] Test ended at 2014-02-11 13:11:55 CURRENT_TEST: rpl.rpl_ip_mix2 mysqltest: In included file "./include/rpl_ip_mix2.inc": included from /usr/share/mysql-test/suite/rpl/t/rpl_ip_mix2.test at line 11: At line 4: query 'connect slave,$IPv6,root,,test,$SLAVE_MYPORT' failed: 2003: Can't connect to MySQL server on '::1' (101) The result from queries just before the failure was: #################### IP: ::1 ########################### connect (master,127.0.0.1,root,,test,MASTER_MYPORT); connect (slave,::1,root,,test,SLAVE_MYPORT); - saving '/usr/share/mysql-test/var/log/rpl.rpl_ip_mix2/' to '/usr/share/mysql-test/var/log/rpl.rpl_ip_mix2/' rpl.rpl_ipv4_as_ipv6 [ pass ] 24 rpl.rpl_ipv6 [ fail ] Test ended at 2014-02-11 13:12:00 CURRENT_TEST: rpl.rpl_ipv6 mysqltest: In included file "./include/rpl_ipv6.inc": included from /usr/share/mysql-test/suite/rpl/t/rpl_ipv6.test at line 13: At line 2: query 'connect master,$IPv6,root,,test,$MASTER_MYPORT' failed: 2003: Can't connect to MySQL server on '::1' (101) The result from queries just before the failure was: #################### IP: ::1 ########################### connect (master,::1,root,,test,MASTER_MYPORT);
Hi, Reindl! On Feb 11, Reindl Harald wrote:
these tests should be skipped in case the machine has no ipv6 config instead fired up and failing
I think it depends on ho exactly your machine has "no ipv6 config". When I added a check for missing ipv6, my box had no ipv6 at all, not compiled into the kernel, no ipv6.ko module either. And the check worked, ipv6 tests were skipped. Perhaps your machine has "no ipv6 config" differently? Then it needs a different check. This is the one that worked for me: use Socket; $skip{'include/check_ipv6.inc'} = 'No IPv6' unless socket SOCK, PF_INET6, SOCK_STREAM, getprotobyname('tcp'); close SOCK; it's in mysql-test/suite.pm Regards, Sergei
sorry for off-list reply, this is caused by get two copies instead list-only-messages and the duplicate-filter on our mailserver kills the second one and so no "reply-to-list" available :-( Am 11.02.2014 14:55, schrieb Sergei Golubchik:
On Feb 11, Reindl Harald wrote:
these tests should be skipped in case the machine has no ipv6 config instead fired up and failing
I think it depends on ho exactly your machine has "no ipv6 config".
When I added a check for missing ipv6, my box had no ipv6 at all, not compiled into the kernel, no ipv6.ko module either. And the check worked, ipv6 tests were skipped.
Perhaps your machine has "no ipv6 config" differently? Then it needs a different check. This is the one that worked for me:
use Socket; $skip{'include/check_ipv6.inc'} = 'No IPv6' unless socket SOCK, PF_INET6, SOCK_STREAM, getprotobyname('tcp'); close SOCK;
it's in mysql-test/suite.pm
there is no longer a ko-module in recent kernels for a long time sysctl.conf: net.ipv6.conf.all.disable_ipv6=1 net.ipv6.conf.default.disable_ipv6=1 ifconfig output: eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1472 inet 10.10.0.123 netmask 255.255.255.0 broadcast 10.0.0.255 ether 00:50:56:bd:00:17 txqueuelen 500 (Ethernet) RX packets 6579586 bytes 2593210501 (2.4 GiB) RX errors 0 dropped 5800 overruns 0 frame 0 TX packets 8932318 bytes 9104600004 (8.4 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 0 (Lokale Schleife) RX packets 1756166 bytes 460415712 (439.0 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1756166 bytes 460415712 (439.0 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
participants (2)
-
Reindl Harald
-
Sergei Golubchik