Comment 1 for bug 1438683

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

Preliminary analysis:
1) lshw XML parsing does not work correctly when there are multiple "network" elements without id suffix (i.e. the maas provider expects to find either a single <nod id="network"> element or more than one element, but with the format <node id="network:0">, <node id="network:1">, etc.). The result of this is the DeviceIndex is always 0 for all NICs when the lshw output only contains un-prefixed network nodes (see the lshw paste above)
2) The reason why the eth0 interface of the container is not up is because the generated lxc config does not include "lxc.network.flags = up", and that's because for some unknown reason juju picks the disabled eth1 rather than eth0 as host NIC.
3) Both eth0 and eth1 on the host are on the same network - this might be relevant for the way maas provider / provisioner works now (e.g. it discovers 2 subnets named "maas-br0", which is just the same network), but because of ordering or something else the provisioner picks the incorrect host nic to use (eth1 rather than eth0) - might be related to the device index issue as the container's NIC name is generated from the host's primary NIC's index.