Comment 1 for bug 2064281

Revision history for this message
Jacopo Rota (r00ta) wrote :

The bug has been introduced here https://github.com/canonical/maas/commit/20c7bab8 . In particular MAAS is not using anymore the built-in type for mac addresses and when internally MAAS wants to retrieve an interface by mac, it has to convert it to the text format used to store the MAC address.

Unfortunately this was not done in all the places, in particular when the rack is requesting the configuration for a machine it will also provide the machine's mac address in the format like "XX-XX-XX-XX-XX", instead of "XX:XX:XX:XX:XX". As we are not normalising the mac address here https://github.com/canonical/maas/blob/cb2b108305c2dbd217853e8c5476c30f56d22081/src/maasserver/rpc/boot.py#L505, we fail to retrieve the interface and we don't update the vlan by consequence