Public bug reported:

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@hydrogen:/etc/systemd/network# cat enp3s0.network 
[Match]
Name=enp3s0
 
[Network]
VLAN=vlan10
root@hydrogen:/etc/systemd/network# cat vlan10.netdev 
[NetDev]
Name=vlan10
Kind=vlan
 
[VLAN]
Id=10
root@hydrogen:/etc/systemd/network# cat vlan10.network 
[Match]
Name=vlan10
 
[Network]
Bridge=br-mgmt
root@hydrogen:/etc/systemd/network# cat br-mgmt.netdev 
[NetDev]
Name=br-mgmt
Kind=bridge
root@hydrogen:/etc/systemd/network# cat br-mgmt.network 
[Match]
Name=br-mgmt
 
[Network]
Address=172.29.236.21/22

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  New

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@hydrogen:/etc/systemd/network# cat enp3s0.network 
  [Match]
  Name=enp3s0
   
  [Network]
  VLAN=vlan10
  root@hydrogen:/etc/systemd/network# cat vlan10.netdev 
  [NetDev]
  Name=vlan10
  Kind=vlan
   
  [VLAN]
  Id=10
  root@hydrogen:/etc/systemd/network# cat vlan10.network 
  [Match]
  Name=vlan10
   
  [Network]
  Bridge=br-mgmt
  root@hydrogen:/etc/systemd/network# cat br-mgmt.netdev 
  [NetDev]
  Name=br-mgmt
  Kind=bridge
  root@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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to