[Bug 1779340] [NEW] systemd-networkd-wait-online.service Failed to start Wait for Network to be Configured with bridge

Johan Ehnberg johan at ehnberg.net
Fri Jun 29 14:32:52 UTC 2018


Public bug reported:

The following simple netplan config results in a 2-minut unneccessary
delay on boot. Everything works like it should in the end. The bridge
has no interfaces due to a regression in Ubuntu migrating to netplan
(see https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1779341).

ubuntu at molnix3:~$ cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp4s0:
      dhcp4: yes
      dhcp6: yes

ubuntu at molnix3:~$ cat /etc/netplan/br1.yaml
network:
  version: 2
  bridges:
    br1:
      addresses: [10.1.0.9/16]
      interfaces: []

ubuntu at molnix3:~$ cat /usr/lib/networkd-dispatcher/routable.d/tap0
#!/bin/sh
set -e
 if [ "$IFACE" = tap0 ]; then
  brctl addif br1 tap0
  ip link set tap0 promisc on
  ifmetric tap0 5
fi

ubuntu at molnix3:~$ journalctl -u systemd-networkd-wait-online.service -b
-- Logs begin at Thu 2018-06-28 10:07:29 UTC, end at Fri 2018-06-29 14:09:18 UTC. --
Jun 29 13:58:16 molnix3 systemd[1]: Starting Wait for Network to be Configured...
Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:18 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:18 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:19 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:20 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:20 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 13:58:21 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
Jun 29 14:00:16 molnix3 systemd-networkd-wait-online[1468]: Event loop failed: Connection timed out
Jun 29 14:00:16 molnix3 systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Jun 29 14:00:16 molnix3 systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Jun 29 14:00:16 molnix3 systemd[1]: Failed to start Wait for Network to be Configured.

ubuntu at molnix3:~$ /lib/systemd/systemd-networkd-wait-online
managing: br1
managing: enp4s0
ignoring: lo

ubuntu at molnix3:~$ networkctl
IDX LINK             TYPE               OPERATIONAL SETUP
  1 lo               loopback           carrier     unmanaged
  2 enp4s0           ether              routable    configured
  3 br1              ether              routable    configured
  4 tap0             ether              routable    unmanaged

4 links listed.

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  The following simple netplan config results in a 2-minut unneccessary
  delay on boot. Everything works like it should in the end. The bridge
  has no interfaces due to a regression in Ubuntu migrating to netplan
- (see separate bug).
+ (see https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1779341).
  
- ubuntu at molnix3:~$ cat /etc/netplan/01-netcfg.yaml 
+ ubuntu at molnix3:~$ cat /etc/netplan/01-netcfg.yaml
  # This file describes the network interfaces available on your system
  # For more information, see netplan(5).
  network:
-   version: 2
-   renderer: networkd
-   ethernets:
-     enp4s0:
-       dhcp4: yes
-       dhcp6: yes
+   version: 2
+   renderer: networkd
+   ethernets:
+     enp4s0:
+       dhcp4: yes
+       dhcp6: yes
  
- ubuntu at molnix3:~$ cat /etc/netplan/br1.yaml 
+ ubuntu at molnix3:~$ cat /etc/netplan/br1.yaml
  network:
-   version: 2
-   bridges:
-     br1:
-       addresses: [10.1.0.9/16]
-       interfaces: []
+   version: 2
+   bridges:
+     br1:
+       addresses: [10.1.0.9/16]
+       interfaces: []
  
- ubuntu at molnix3:~$ cat /usr/lib/networkd-dispatcher/routable.d/tap0 
+ ubuntu at molnix3:~$ cat /usr/lib/networkd-dispatcher/routable.d/tap0
  #!/bin/sh
  set -e
-  if [ "$IFACE" = tap0 ]; then
-   brctl addif br1 tap0
-   ip link set tap0 promisc on
-   ifmetric tap0 5
+  if [ "$IFACE" = tap0 ]; then
+   brctl addif br1 tap0
+   ip link set tap0 promisc on
+   ifmetric tap0 5
  fi
  
  ubuntu at molnix3:~$ journalctl -u systemd-networkd-wait-online.service -b
  -- Logs begin at Thu 2018-06-28 10:07:29 UTC, end at Fri 2018-06-29 14:09:18 UTC. --
  Jun 29 13:58:16 molnix3 systemd[1]: Starting Wait for Network to be Configured...
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:18 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:18 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:19 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:20 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:20 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:21 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 14:00:16 molnix3 systemd-networkd-wait-online[1468]: Event loop failed: Connection timed out
  Jun 29 14:00:16 molnix3 systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
  Jun 29 14:00:16 molnix3 systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
  Jun 29 14:00:16 molnix3 systemd[1]: Failed to start Wait for Network to be Configured.
  
  ubuntu at molnix3:~$ /lib/systemd/systemd-networkd-wait-online
  managing: br1
  managing: enp4s0
  ignoring: lo
  
- ubuntu at molnix3:~$ networkctl 
- IDX LINK             TYPE               OPERATIONAL SETUP     
-   1 lo               loopback           carrier     unmanaged 
-   2 enp4s0           ether              routable    configured
-   3 br1              ether              routable    configured
-   4 tap0             ether              routable    unmanaged 
+ ubuntu at molnix3:~$ networkctl
+ IDX LINK             TYPE               OPERATIONAL SETUP
+   1 lo               loopback           carrier     unmanaged
+   2 enp4s0           ether              routable    configured
+   3 br1              ether              routable    configured
+   4 tap0             ether              routable    unmanaged
  
  4 links listed.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1779340

Title:
  systemd-networkd-wait-online.service Failed to start Wait for Network
  to be Configured with bridge

Status in systemd package in Ubuntu:
  New

Bug description:
  The following simple netplan config results in a 2-minut unneccessary
  delay on boot. Everything works like it should in the end. The bridge
  has no interfaces due to a regression in Ubuntu migrating to netplan
  (see
  https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1779341).

  ubuntu at molnix3:~$ cat /etc/netplan/01-netcfg.yaml
  # This file describes the network interfaces available on your system
  # For more information, see netplan(5).
  network:
    version: 2
    renderer: networkd
    ethernets:
      enp4s0:
        dhcp4: yes
        dhcp6: yes

  ubuntu at molnix3:~$ cat /etc/netplan/br1.yaml
  network:
    version: 2
    bridges:
      br1:
        addresses: [10.1.0.9/16]
        interfaces: []

  ubuntu at molnix3:~$ cat /usr/lib/networkd-dispatcher/routable.d/tap0
  #!/bin/sh
  set -e
   if [ "$IFACE" = tap0 ]; then
    brctl addif br1 tap0
    ip link set tap0 promisc on
    ifmetric tap0 5
  fi

  ubuntu at molnix3:~$ journalctl -u systemd-networkd-wait-online.service -b
  -- Logs begin at Thu 2018-06-28 10:07:29 UTC, end at Fri 2018-06-29 14:09:18 UTC. --
  Jun 29 13:58:16 molnix3 systemd[1]: Starting Wait for Network to be Configured...
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:16 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:17 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:18 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:18 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:19 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:20 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:20 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 13:58:21 molnix3 systemd-networkd-wait-online[1468]: ignoring: lo
  Jun 29 14:00:16 molnix3 systemd-networkd-wait-online[1468]: Event loop failed: Connection timed out
  Jun 29 14:00:16 molnix3 systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
  Jun 29 14:00:16 molnix3 systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
  Jun 29 14:00:16 molnix3 systemd[1]: Failed to start Wait for Network to be Configured.

  ubuntu at molnix3:~$ /lib/systemd/systemd-networkd-wait-online
  managing: br1
  managing: enp4s0
  ignoring: lo

  ubuntu at molnix3:~$ networkctl
  IDX LINK             TYPE               OPERATIONAL SETUP
    1 lo               loopback           carrier     unmanaged
    2 enp4s0           ether              routable    configured
    3 br1              ether              routable    configured
    4 tap0             ether              routable    unmanaged

  4 links listed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1779340/+subscriptions



More information about the foundations-bugs mailing list