Comment 24 for bug 2060311

Revision history for this message
Avery-yates (avery-yates) wrote (last edit ):

This also happens when an interface is only used for vlans and nothing else.

I don't mind systemd-networkd-wait-online blocking the vlans that are supposed to be on but it always block s when trying the trunk even if it's up.

..
network:
  version: 2
  ethernets:
    enp3s0: {}
  vlans:
    vlan9:
      id: 9
      link: enp3s0
      dhcp4: false
      dhcp6: false
      addresses:
       - 192.168.194.2/24
..

/lib/systemd/systemd-networkd-wait-online --interface=vlan3
passes

/lib/systemd/systemd-networkd-wait-online --interface=enp3s0
blocks

2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:e0:4c:67:02:4c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::2e0:4cff:fe67:24c/64 scope link
       valid_lft forever preferred_lft forever
root@clarisse:/home/zebulon# ip a show vlan9
5: vlan9@enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:e0:4c:67:02:4c brd ff:ff:ff:ff:ff:ff
    inet 192.168.194.2/24 brd 192.168.194.255 scope global vlan9
       valid_lft forever preferred_lft forever
    inet6 fe80::2e0:4cff:fe67:24c/64 scope link
       valid_lft forever preferred_lft forever

I don't know if this is related/fixed or if this is something else.

When I put my tunk on optional: true
systemd-networkd-wait-online no longer blocks when checking the interface, but does it wait for my vlans to be up when I set the trunk as optional?

When I don't have the trunk as optional; true systemd-networkd-wait-online hangs.