[Bug 1657837] Re: systemd-networkd can't add a VLAN interface to bridge

Pedro Serrano pserrano at hotmail.com
Mon May 1 17:43:59 UTC 2017


And the error messages pertinent to the issue with the VLAN are:

=================================================

may 01 11:34:31 ps01lnx systemd[1]: Started Network Service.
may 01 11:34:31 ps01lnx systemd[1]: systemd-networkd.service: Failed to send unit change signal for systemd-networkd.service: Connection reset by peer
may 01 11:34:31 ps01lnx systemd-networkd[30661]: ovsbr0lcl1: IPv6 disabled for interface: Success
may 01 11:34:31 ps01lnx systemd-networkd[30661]: ovsbr0lcl1: Could not append VLANs: Operation not permitted
may 01 11:34:31 ps01lnx systemd-networkd[30661]: ovsbr0lcl1: Failed to assign VLANs to bridge port: Operation not permitted
may 01 11:34:31 ps01lnx systemd-networkd[30661]: ovsbr0lcl1: Could not set bridge vlan: Operation not permitted
may 01 11:34:31 ps01lnx systemd-networkd[30661]: ovsbr0p0: IPv6 disabled for interface: Success
may 01 11:34:31 ps01lnx systemd-networkd[30661]: ovsbr0p1: IPv6 disabled for interface: Success
may 01 11:34:31 ps01lnx systemd-networkd[30661]: ovsbr0lcl1: Configured
may 01 11:34:31 ps01lnx systemd-networkd[30661]: ovsbr0p0: Configured
may 01 11:34:31 ps01lnx systemd-networkd[30661]: ovsbr0p1: Configured

=================================================

As you can see, the bridge and the two ports (tap devices) were
configured.   But the bridge VLAN did not receive the intended
configuration, and the tap devices failed to be associated with the
bridge.

-- 
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/1657837

Title:
  systemd-networkd can't add a VLAN interface to bridge

Status in systemd package in Ubuntu:
  Confirmed

Bug description:
  This is apparently fixed in systemd 231:

     https://lists.freedesktop.org/archives/systemd-
  devel/2016-August/037385.html

  When systemd tries to put a VLAN interface into a bridge on Xenial, it
  fails:

  # journalctl --boot -u systemd-networkd
  Jan 15 09:16:46 hydrogen systemd[1]: Started Network Service.
  Jan 15 09:16:46 hydrogen systemd-networkd[1903]: br-mgmt: netdev exists, using existing without changing its parameters
  Jan 15 09:16:46 hydrogen systemd-networkd[1903]: br-mgmt: Could not append VLANs: Operation not permitted
  Jan 15 09:16:46 hydrogen systemd-networkd[1903]: br-mgmt: Failed to assign VLANs to bridge port: Operation not permitted
  Jan 15 09:16:46 hydrogen systemd-networkd[1903]: br-mgmt: Could not set bridge vlan: Operation not permitted
  Jan 15 09:16:59 hydrogen systemd-networkd[1903]: enp3s0: Configured
  Jan 15 09:16:59 hydrogen systemd-networkd[1903]: enp2s0: Configured

  Here are the systemd-networkd configs I used:

  root at hydrogen:/etc/systemd/network# cat enp3s0.network 
  [Match]
  Name=enp3s0
   
  [Network]
  VLAN=vlan10
  root at hydrogen:/etc/systemd/network# cat vlan10.netdev 
  [NetDev]
  Name=vlan10
  Kind=vlan
   
  [VLAN]
  Id=10
  root at hydrogen:/etc/systemd/network# cat vlan10.network 
  [Match]
  Name=vlan10
   
  [Network]
  Bridge=br-mgmt
  root at hydrogen:/etc/systemd/network# cat br-mgmt.netdev 
  [NetDev]
  Name=br-mgmt
  Kind=bridge
  root at hydrogen:/etc/systemd/network# cat br-mgmt.network 
  [Match]
  Name=br-mgmt
   
  [Network]
  Address=172.29.236.21/22

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



More information about the foundations-bugs mailing list