[systemd-bugs] [Bug 76077] New: systemd-networkd: VLAN on bond fails due to incorrect order of enslavement

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 12 05:55:31 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=76077

          Priority: medium
            Bug ID: 76077
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: systemd-networkd: VLAN on bond fails due to incorrect
                    order of enslavement
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: malte at malte.homeip.net
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Trying to setup VLAN on top of a bond, systemd-networkd attempts to create the
VLAN links before the bond has any slaves.  This is rejected by the kernel:

Mar 12 13:45:57 jmbvirt04 systemd[1]: Starting Network Service...
Mar 12 13:45:57 jmbvirt04 systemd-udevd[4529]: Could not apply link config to
lan
Mar 12 13:45:57 jmbvirt04 systemd-networkd[4552]: lan: could not enslave:
Operation not supported
Mar 12 13:45:57 jmbvirt04 systemd[1]: Started Network Service.
Mar 12 13:45:57 jmbvirt04 systemd-networkd[4552]: lan: failed
Mar 12 13:45:57 jmbvirt04 kernel: 8021q: VLANs not supported on lan


If the bond is taken out of the picture (VLAN directly on one of the
interfaces), the VLAN is setup properly.
If systemd-networkd is started with the VLAN=... line in 00-lan.network
commented out, the bond is brought up fine.  If systemd-networkd is then
restarted with the VLAN=... line commented in again, the VLAN is setup fine as
well.
But when both bonding and VLAN are to be set up from scratch in one go, the
ordering is broken.

Happens on Gentoo with both 210 and 211.

Configuration:

===== 00-lan.netdev
[NetDev]
Name=lan
Kind=bond

===== 00-lan.network
[Match]
Name=lan

[Network]
VLAN=mgmt.hosts

===== 01-mgmt.hosts.netdev
[NetDev]
Name=mgmt.hosts
Kind=vlan

[VLAN]
Id=20

===== 01-mgmt.hosts.network
[Match]
Name=mgmt.hosts

[Network]
Address=10.0.20.4/24
Gateway=10.0.20.254

===== 99-bond-slaves.network
[Match]
Name=en*

[Network]
Bond=lan

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140312/8dd64a16/attachment.html>


More information about the systemd-bugs mailing list