diff mbox series

[v5,3/3] tests/vm/netbsd: Disable IPv6

Message ID 20191018181705.17957-4-ehabkost@redhat.com (mailing list archive)
State New, archived
Headers show
Series tests/vm: netbsd autoinstall, with IPv6 disabled | expand

Commit Message

Eduardo Habkost Oct. 18, 2019, 6:17 p.m. UTC
Workaround for issues when the host has no IPv6 connectivity.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 tests/vm/netbsd | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Thomas Huth Oct. 21, 2019, 8:28 a.m. UTC | #1
On 18/10/2019 20.17, Eduardo Habkost wrote:
> Workaround for issues when the host has no IPv6 connectivity.
> 
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
>  tests/vm/netbsd | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/tests/vm/netbsd b/tests/vm/netbsd
> index 49a99477f4..5e04dcd9b1 100755
> --- a/tests/vm/netbsd
> +++ b/tests/vm/netbsd
> @@ -62,6 +62,13 @@ class NetBSDVM(basevm.BaseVM):
>      """
>      poweroff = "/sbin/poweroff"
>  
> +    # Workaround for NetBSD + IPv6 + slirp issues.
> +    # NetBSD seems to ignore the ICMPv6 Destination Unreachable
> +    # messages generated by slirp.  When the host has no IPv6
> +    # connectivity, this causes every connection to ftp.NetBSD.org
> +    # take more than a minute to be established.
> +    ipv6 = False
> +
>      def build_image(self, img):
>          cimg = self._download_with_cache(self.link)
>          img_tmp = img + ".tmp"
> 

Reviewed-by: Thomas Huth <thuth@redhat.com>
diff mbox series

Patch

diff --git a/tests/vm/netbsd b/tests/vm/netbsd
index 49a99477f4..5e04dcd9b1 100755
--- a/tests/vm/netbsd
+++ b/tests/vm/netbsd
@@ -62,6 +62,13 @@  class NetBSDVM(basevm.BaseVM):
     """
     poweroff = "/sbin/poweroff"
 
+    # Workaround for NetBSD + IPv6 + slirp issues.
+    # NetBSD seems to ignore the ICMPv6 Destination Unreachable
+    # messages generated by slirp.  When the host has no IPv6
+    # connectivity, this causes every connection to ftp.NetBSD.org
+    # take more than a minute to be established.
+    ipv6 = False
+
     def build_image(self, img):
         cimg = self._download_with_cache(self.link)
         img_tmp = img + ".tmp"