Bug 1388847

Summary: systemd-networkd interfaces stay in pending state
Product: Red Hat Enterprise Linux 7 Reporter: Edouard Bourguignon <madko>
Component: systemdAssignee: systemd-maint
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.4CC: bblaskov, jsynacek, systemd-maint-list
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-15 11:09:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Edouard Bourguignon 2016-10-26 09:57:09 UTC
Description of problem:

We have a server with 2000 vlan interfaces. When we manualy start the systemd-networkd service, everything works fine.
But, at boot, the same service randomly configure only aroud 1400 interfaces. The others stay in pending state for ever (as shown with networkctl). Restarting systemd-networkd fix this.


Version-Release number of selected component (if applicable):

systemd-networkd-219-19.el7_2.13.x86_64

How reproducible:

static

Steps to Reproduce:
1. Have an ethernet interface, let say ens6
2. Configure /etc/systemd/network/ens6.network with
[Match]
Name=ens6

[Network]
VLAN=vlan1
VLAN=vlan2
...
VLAN=vlan2000

3. Configure each /etc/systemd/network/vlanX.netdev with
[NetDev]
Name=vlanX
Kind=vlan
 
[VLAN]
Id=X

4. Configure each /etc/systemd/network/vlanX.network with
[Match]
Name=vlanX

[Address]
Address=172.A.B.C/32

5. systemctl retart systemd-networkd brings the 2000 interfaces and their IP

6. reboot and do ip a|grep "172\.16"|wc -l (aroud 1400). All vlan interfaces are up, but not all the IP are set. Command networkctl shows interfaces in pending state. Nothing happens next.

7. systemctl restart systemd-networkd fix the problem after boot.


Actual results:
systemctl restart systemd-networkd works
Same service at boot, doesn't works for all the interfaces


Expected results:
should work the same. No interface in pending state for ever.


Additional info:
works (kind of) with classical "network" service, but takes 85 minutes to boot...

We tried some parameters in system.conf about timeout, but no luck. Is there something wrong ?

Comment 2 Lukáš Nykrýn 2016-10-26 12:47:58 UTC
Well we don't support systemd-networkd in rhel7. But could you please try the same thing on some newer fedora? If this was fixed in ustream then maybe we could find a fix and backport it to rhel/centos.

With the initscripts, have you tried to put ARPCHECK=no to the ifcfg files?

Comment 3 Jan Synacek 2017-05-15 11:09:12 UTC
No response / unsupported.