GNU bug report logs -
#63516
Static networking should wait for interfaces to be up
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#63516: Static networking should wait for interfaces to be up
which was filed against the guix package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 63516 <at> debbugs.gnu.org.
--
63516: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63516
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Ludovic Courtès <ludo <at> gnu.org> skribis:
> Ludovic Courtès <ludovic.courtes <at> inria.fr> skribis:
>
>> Before doing ‘addr-add’ in ‘network-set-up/linux’, should we wait for
>> the interface to show up, by calling ‘get-links’ from Guile-Netlink or
>> something like that?
>
> Below is a simple workaround. How does that sound?
>
> A better fix would be to poll(2) on the underlying AF_NETLINK socket.
> In fact, we could also implement something like systemd’s
> ‘network-online.target’ by doing that. For that we’d need Guile-Netlink
> to let us create SOCK_NONBLOCK sockets and to use real ports instead of
> raw file descriptors; Fibers would then take care of the rest.
Pushed the “better fix” as 26602f4063a6e0c626e8deb3423166bcd0abeb90,
building upon ‘wait-for-link’ from Guile-Netlink 1.2.
Thank you Julien for the Guile-Netlink release!
Ludo’.
[Message part 3 (message/rfc822, inline)]
Hi!
With shepherd 0.10.0 starting services in parallel, I observed
‘networking’ (from ‘static-networking-service-type’) starting too early,
before the corresponding interfaces were available:
--8<---------------cut here---------------start------------->8---
[ 21.863249] shepherd[1]: Service udev started.
[ 21.863414] shepherd[1]: Service udev running with value 196.
[ 21.865686] shepherd[1]: Starting service networking...
[ 21.865822] shepherd[1]: Starting service file-system-/boot/efi...
[ 21.986025] shepherd[1]: Exception caught while starting #<<service> 7f9bf08434e0>: (no-such-device "eno1"
[ 22.738237] udevd[196]: starting eudev-3.2.11
[ 22.767830] udevd[196]: no sender credentials received, message ignored
[...]
[ 23.562275] tg3 0000:05:00.0 eth0: Tigon3 [partno(BCM95720) rev 5720000] (PCI Express) MAC address b8:cb:2
[ 23.562290] tg3 0000:05:00.0 eth0: attached PHY is 5720C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1
[ 23.562298] tg3 0000:05:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[ 23.562305] tg3 0000:05:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
[ 23.596221] tg3 0000:05:00.1 eth1: Tigon3 [partno(BCM95720) rev 5720000] (PCI Express) MAC address b8:cb:2
[ 23.596234] tg3 0000:05:00.1 eth1: attached PHY is 5720C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1
[ 23.596242] tg3 0000:05:00.1 eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[ 23.596249] tg3 0000:05:00.1 eth1: dma_rwctrl[00000001] dma_mask[64-bit]
[ 23.599725] tg3 0000:05:00.0 eno1: renamed from eth0
[ 23.613468] iTCO_vendor_support: vendor-support=0
[ 23.619114] iTCO_wdt iTCO_wdt: Found a Intel PCH TCO device (Version=6, TCOBASE=0x0400)
[ 23.619327] iTCO_wdt iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[ 23.645196] tg3 0000:05:00.1 eno2: renamed from eth1
[ 23.727153] Error: Driver 'pcspkr' is already registered, aborting...
[ 23.738237] ipmi_si dmi-ipmi-si.0: Removing SMBIOS-specified kcs state machine in favor of ACPI
[ 23.738239] ipmi_si: Adding ACPI-specified kcs state machine
[ 23.738273] ipmi_si: Trying ACPI-specified kcs state machine at i/o address 0xca8, slave address 0x20, irq
[ 23.926348] shepherd[1]: Service file-system-/boot/efi has been started.
[ 23.927164] shepherd[1]: Service networking failed to start.
--8<---------------cut here---------------end--------------->8---
Before doing ‘addr-add’ in ‘network-set-up/linux’, should we wait for
the interface to show up, by calling ‘get-links’ from Guile-Netlink or
something like that?
Ludo’.
This bug report was last modified 2 years and 55 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.