From d677a6dc92c0bceb75d9b5e7a333792a9fd56c17 Mon Sep 17 00:00:00 2001 From: Logan V Date: Wed, 28 Mar 2018 13:59:08 -0500 Subject: [PATCH] Bootstrap lxc_net mtu for gate Currently the gate assumes the upstream interface in the testing machine is always running mtu 1500. We change this assumption by using the facts collected from the host during bootstrap-host to properly set MTU in the AIO user variables. This is needed to prevent test failures while downloading internet artifacts to containers during gate runs on nodepool providers (such as recently added Limestone) which use a <1500 MTU. Change-Id: Ifac591c2848c033ad4dfb473bce05860df2bb213 --- tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 b/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 index caeeb66c7d..eb3ef6fe60 100644 --- a/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 +++ b/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 @@ -208,6 +208,7 @@ senlin_wsgi_processes: 1 lxc_net_address: 10.255.255.1 lxc_net_netmask: 255.255.255.0 lxc_net_dhcp_range: 10.255.255.2,10.255.255.253 +lxc_net_mtu: {{ hostvars[inventory_hostname]['ansible_' ~ bootstrap_host_public_interface]['mtu'] | default(1500) }} {% if nodepool_vars is defined and nodepool_vars.NODEPOOL_LXC_IMAGE_PROXY is defined %} ## images.linuxcontainers.org reverse proxy