[Bug 1906646] Re: Timed out waiting for device /subsystem/net/devices/wlan0
Thanks for this investigation! This issue has been discussed in multiple places, like here where a udev rule is recommended: https://github.com/systemd/systemd/issues/2891 I wonder if we could downgrade the "Requires=sys-subsystem-net-devices- XXX.device" to a "Wants=sys-subsystem-net-devices-XXX.device" and add an additional triggering condition on the sysfs path ("ConditionPathExists=|/sys/subsystem/net/devices/XXX"). AFAIU this way the wpa_supplicant unit should fail immediately, if the devices (& its sysfs path) is not there but start as soon as the dongle is plugged in. https://systemd.network/systemd.unit.html#Conditions%20and%20Asserts I guess this needs some experimentation to fully understand the side- effects. ** Bug watch added: github.com/systemd/systemd/issues #2891 https://github.com/systemd/systemd/issues/2891 ** Changed in: netplan.io (Ubuntu) Status: Confirmed => Triaged ** Changed in: netplan.io (Ubuntu) Importance: Undecided => High ** Tags added: jj-rls-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1906646 Title: Timed out waiting for device /subsystem/net/devices/wlan0 To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/1906646/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1906646] Re: Timed out waiting for device /subsystem/net/devices/wlan0
** Changed in: netplan 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/1906646 Title: Timed out waiting for device /subsystem/net/devices/wlan0 To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/1906646/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1906646] Re: Timed out waiting for device /subsystem/net/devices/wlan0
This behavior is not rPi-specific and affects Netplan in general. This happens when configuring an optional wifis entry for a Wi-Fi adapter that may not be present at boot, such as a Wi-Fi dongle. - The following user reported it on Ubuntu Desktop 18.04 and 20.04: https://bugs.launchpad.net/netplan/+bug/1951651 (marked as duplicate) - I encountered it on Ubuntu Core 20: https://forum.snapcraft.io/t/ubuntu-core-20-boot-delayed-by-missing-wi-fi-usb-dongle-despite-optional-true-netplan-config/27403 I got a promising reply on the Snapcraft forum thread linked above (direct link to the reply: https://forum.snapcraft.io/t/ubuntu- core-20-boot-delayed-by-missing-wi-fi-usb-dongle-despite-optional-true- netplan-config/27403/5). The relevant section is: > The optional: true is a valid flag, but it only handles the waiting for the > network to come up and be configured. The timeout we’re observing here seems > to come from the netplan-wpa-wlx0123456789ab.service unit waiting for the > sys-subsystem-net-devices-wlx0123456789ab.device hardware to become > available, though, but that does not exist if the dongle is unplugged. > > According to https://github.com/systemd/systemd/issues/4413 1 we might need > to change the Requires=sys-subsystem-net-devices-wlx0123456789ab.device > dependency to something like > Requisite=sys-subsystem-net-devices-wlx0123456789ab.device (I’m not sure > about the side-effects, tho). There's a reproduction scenario in the original post on the Snapcraft forum as well. ** Bug watch added: github.com/systemd/systemd/issues #4413 https://github.com/systemd/systemd/issues/4413 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1906646 Title: Timed out waiting for device /subsystem/net/devices/wlan0 To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/1906646/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1906646] Re: Timed out waiting for device /subsystem/net/devices/wlan0
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: netplan.io (Ubuntu Focal) 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/1906646 Title: Timed out waiting for device /subsystem/net/devices/wlan0 To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/1906646/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1906646] Re: Timed out waiting for device /subsystem/net/devices/wlan0
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: netplan.io (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/1906646 Title: Timed out waiting for device /subsystem/net/devices/wlan0 To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/1906646/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1906646] Re: Timed out waiting for device /subsystem/net/devices/wlan0
The Groovy Gorilla has reached end of life, so this bug will not be fixed for that release ** Changed in: netplan.io (Ubuntu Groovy) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1906646 Title: Timed out waiting for device /subsystem/net/devices/wlan0 To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/1906646/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1906646] Re: Timed out waiting for device /subsystem/net/devices/wlan0
** Also affects: netplan.io (Ubuntu Groovy) Importance: Undecided Status: New ** Also affects: netplan.io (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: netplan 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/1906646 Title: Timed out waiting for device /subsystem/net/devices/wlan0 To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/1906646/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs