multiple NICs could cause cloud-init nonet timeout

Bug #1053190 reported by Scott Moser on 2012-09-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

when a system pxeboots, we are appending BOOTIF=XX:XX:XX (the mac address that booted).
(Note, that this is done thorugh pxelinux IPAPPEND or changes made under bug 1051867).

cloud-init contains an /etc/network/interfaces file that has an entry for 'eth0'. This entry will cause cloud-init-nonet and static-networking to block boot until a device named 'eth0' appears and is brought up.

The assumption in the cloud image build process is that eth0 will always be dhcp-able, and will contain the link to at least a datasource.

There is an issue with this assumption and the following 2 things:
 a.) pxe booted system with multiple NICs where 'eth0' is not the BOOTIF interface
 b.) kernel biosdevname names interfaces 'en0' or otherwise.

I think i'd like to handle this by adding code that forces a nic to be named eth0 if it is the interface on the command line listed as BOOTIF. If any code makes use of the name before it is renamed, we'd have to rename that codes output as well. Here, I'm thinking of the fact that ipconfig from kblic writes /run/network-$DEVICE.conf . if it had seen the interace as en0 and then we renamed to eth0 we'd have to handle that.

Changed in maas:
importance: Undecided → High
status: New → Triaged
Scott Moser (smoser) wrote :

I've just added a package named 'cloud-initramfs-dyn-netconf' to the cloud-initramfs-tools package.
We'll utilize this package to fix this bug in the following manner.
 * add cloud-initramfs-dyn-netconf to the ephemeral images
 * modify the build of the ephemeral images so that /etc/network/interfaces is a symlink to /run/network/dynamic-interfaces
 * open-iscsi initramfs package run 'configure_networking' which will cause some device to be configured
 * cloud-initramfs-dyn-netconf's will then write /run/network/dynamic-interfaces with the configured interface name ('eth0') as 'auto' and 'dhcp'.

Scott Moser (smoser) wrote :

This is fix-released with the current set of ephemeral images containing cloud-initramfs-dyn-netconf.
In maas we fixed with commit 1137 to trunk.

Changed in maas:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers