[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
What is the actual fix for this. I have run into this multiple times. Is there a specific edit that needs to be made to the stanza in netplan? After reviewing the netplan docs I was unable to find a corresponding directive for allow-hotplug with /etc/network/interfaces. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 20.04.4 LTS Release:20.04 Codename: focal $ sudo dpkg --list | grep netplan ii libnetplan0:amd64 0.104-0ubuntu2~20.04.1 ii netplan.io0.104-0ubuntu2~20.04.1 ```yaml network: ethernets: eno1: dhcp4: true eno2: dhcp4: true eno3: dhcp4: true eno4: dhcp4: true enp130s0: dhcp4: true enp130s0d1: dhcp4: true enp134s0f0: dhcp4: true enp134s0f1: dhcp4: true enp135s0f0: dhcp4: true enp135s0f1: dhcp4: true version: 2 ``` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
Thanks, done. ** Changed in: nplan (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
feel free (i set the snappy task to fix-released too) ** Changed in: snappy Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
This has been in a released version of netplan.io since 0.32. Are we right to mark this as Fix Released for nplan? It looks like LP: #1664844 has been marked as Fix Released too. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
In progress; we got optional: true for that and systemd has a corresponding "RequiredForOnline=false". ** Changed in: nplan (Ubuntu) Status: Confirmed => In Progress ** Changed in: nplan (Ubuntu) Importance: Undecided => High ** Changed in: nplan (Ubuntu) Assignee: (unassigned) => Mathieu Trudel-Lapierre (cyphermox) ** Changed in: systemd (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
The netplan piece of this is being driven via LP: #1664844. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
Yeah, we're kinda talking about two things, the problem with ubuntu core and the problem with the artful daily-live server installer. Both of those use networkd :) I'm think xnox has a plan for artful, I'm not sure if it will apply to ubuntu core though, maybe he can confirm? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
Note that this bug is about Ubuntu Core (xenial), i dont think we use systemd-networkd in the rest of xenial ( https://lists.ubuntu.com/archives/ubuntu-devel/2016-January/039066.html ) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
possibly a bug in systemd-networkd-wait-online ** Also affects: systemd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
** Tags added: rls-aa-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
Yes, I think it probably is. I want to change the server live-install image to dhcp on wired interfaces by default which will mostly work around the problem but a real fix/understanding is clearly also required. On 12 September 2017 at 04:42, Mark Shuttleworth <1619...@bugs.launchpad.net > wrote: > Might this also be why the boot is so slow on the server live-install > image? > > Mark > > -- > You received this bug notification because you are a member of Snappy > Developers, which is subscribed to Snappy. > https://bugs.launchpad.net/bugs/1619258 > > Title: > netplan should allow NICs to be disconnected and not stall the boot > > To manage notifications about this bug go to: > https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
Might this also be why the boot is so slow on the server live-install image? Mark -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
thee is also an example on the snapcraft forum now: https://forum.snapcraft.io/t/ubuntu-core-16-slow-boot-with-netplan/2057 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
setting this back to confirmed this is definitely still an issue (and always has been), very easily to reproduce on a raspberry pi3 with Ubuntu Core that you only configure for wifi... if you go with the defaults in the network config of subiquity the eth0 device stays enabled and defaults to dhcp but nothing in systemd will take into account if a physical wire is connected on boot so it will blindly wait for the interface to be up until the timeout hits. adding something like "allow-hotplug" to nplan would solve this. alternatively simply having systemd-networkd check for physical status and skipping the unwired device would help too. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
** Changed in: nplan (Ubuntu) Status: Invalid => Confirmed ** Changed in: snappy Status: Invalid => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
OK, thanks. Please reopen with answers to comment #2 if it turns out to still be an issue after all. ** Changed in: nplan (Ubuntu) Status: Incomplete => Invalid ** Changed in: snappy Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
I don't think so. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
Ping? Is this still an issue? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
Which services in snappy actually stall/wait on network-online.target? On my yakkety desktop system these are just rc-local.service, kerneloops.service, and lxd.service -- neither of which are really required to log into the device or start services (even ssh.service doesn't block on network-online.target). So not implementing network-online.target would be a workaround, but I believe eventually this would not help -- as services which *legitimately* need to wait until the network is up (such as network mounts, backup software, etc.) would then unnecessarily fail. I believe it is a more robust design to always let network- online.target do its job but avoid depending on it in services which don't really require network. Can you please copy the output of "systemctl list-jobs" when this happens? This should show the bits that wait on network-online.target. > netplan should make the system check the physical link status when trying to bring up a network device instead of stalling the boot. Both networkd and NM already do this -- they bring up an interface once it appears and gets a carrier. However, s-n-wait-online waits until all configured links appear (with a timeout of 2 minutes), which is usually what you want with services that depend on network-online. So I believe completely disabling wait-online is not the right way. We might want to add syntax and functionality to mark devices like "allow- hotplug" in ifupdown, though. ** Changed in: nplan (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1619258] Re: netplan should allow NICs to be disconnected and not stall the boot
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: nplan (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1619258 Title: netplan should allow NICs to be disconnected and not stall the boot To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1619258/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs