multiple NICs could cause cloud-init nonet timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Unassigned |
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/
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-
Changed in maas: | |
importance: | Undecided → High |
status: | New → Triaged |
I've just added a package named 'cloud- initramfs- dyn-netconf' to the cloud-initramfs -tools package. -dyn-netconf to the ephemeral images interfaces is a symlink to /run/network/ dynamic- interfaces networking' which will cause some device to be configured -dyn-netconf' s will then write /run/network/ dynamic- interfaces with the configured interface name ('eth0') as 'auto' and 'dhcp'.
We'll utilize this package to fix this bug in the following manner.
* add cloud-initramfs
* modify the build of the ephemeral images so that /etc/network/
* open-iscsi initramfs package run 'configure_
* cloud-initramfs