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
This commit is contained in:
Logan V 2018-03-28 13:59:08 -05:00 committed by Jonathan Rosser
parent d2521a7c40
commit d677a6dc92

View File

@ -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