On Fri, May 25, 2018 at 9:09 AM, Mathieu Trudel-Lapierre <[email protected]> wrote: > I'm not completely sure where the code lives in cloud-init; it looks a > bit like what's in: > > cloudinit/net/netplan.py > > But the code does read as though it should not be running 'udevadm test- > builtin net_setup_link'. However, deploying a system with MAAS shows a > /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg file, which contains > data referring to the network interfaces: > > network: > config: > - id: ens6 > mac_address: 52:54:00:31:27:2c > mtu: 1500 > name: ens6 > subnets: > - address: 10.3.99.13/24 > gateway: 10.3.99.1 > type: static > type: physical > version: 1 > > With that file in place, any netplan config renaming the interface to > something other than ens6 will see the interface being renamed *again* > back to ens6, when that file is removed, this behavior does not appear.
Cloud-init only renders network config once per-instance. If a user wanted to modify this to something else (and we fix udev to handle .link file name changes) then there won't be any additional renames. Even without the change, cloud-init isn't going to call udevadm test-builtin more than once per-instance. > > -- > You received this bug notification because you are subscribed to > netplan. > Matching subscriptions: netplan > https://bugs.launchpad.net/bugs/1770082 > > Title: > systemd-networkd not renaming devices on boot > > To manage notifications about this bug go to: > https://bugs.launchpad.net/netplan/+bug/1770082/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1770082 Title: systemd-networkd not renaming devices on boot To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/1770082/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
