Explicitly set MTU on interfaces in IPXE image

IPXE boot frequently hangs during introspection on upshift downloading
agent.kernel and/or agent.ramdisk because our virtualised network has a
smaller MTU than the default of 1500, and the introspection dhcp server
doesn't provide it explicitly. This is a hack to work round this until a
proper fix lands for bug 1845487, and it's backported everywhere we need
it. We should eventually aim to revert it.

Related-Bug: 1845487

Change-Id: I5efeaba8f4184c4a51575a3fb29804fd744d13b9
This commit is contained in:
Matthew Booth 2019-09-23 15:08:43 +01:00 committed by Harald Jensås
parent 24e7a37b7e
commit 4b39f398ce
1 changed files with 10 additions and 0 deletions

View File

@ -40,6 +40,16 @@ sleep 1
goto dhcploop
:boot
echo Booting using ${ifname}.
# This is a hack to workaround LP bug 1845487:
# https://bugs.launchpad.net/puppet-ironic/+bug/1845487
# It should be removed when the fix for that bug is available and backported to
# all supported releases.
isset ${mtu} && echo -n Overriding MTU from dhcp of ${mtu}.
set mtu 1350
echo Set MTU to ${mtu}.
chain ${filename}
:fail