Summary: | systemd-networkd: networkd can't create bond from 2 auto configured interfaces post-boot | ||
---|---|---|---|
Product: | systemd | Reporter: | Sean P. Kane <spkane00> |
Component: | general | Assignee: | Tom Gundersen <teg> |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | major | ||
Priority: | medium | CC: | simon.lallemand, spkane00 |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Sean P. Kane
2014-06-13 23:37:07 UTC
It also appears that if the bond is setup to use DHCP, that it doesn't wait long enough for link to be established after the interface is upped before requesting DHCP, and therefore the bond has no IP. A second netword restart works fine, since the interfaces are already up. (Not completely sure if this is a networkd or linux dist issue) Hm, we probably should try to be more clever about this. However, could you explain how come the interfaces are up in the first place. This sounds strange? Sorry for the delay, I never got a notification of your reply. I am pretty sure that the initial setup is done via udev. http://coreos.com/blog/intro-to-systemd-networkd/ I'm also impacted by this bug. I don't think that the reasons for which the interfaces are up matters here. Take the case when someone configures an interface manually and then decides to use networkd, I think that case should be handled. I'm not sure if networkd should set down the interfaces for which it has a new config when stopping or if it should ensure when starting that all the interfaces it will be configuring are down. But doing nothing about these interfaces and failing doesn't seem the good solution. To add a little more color to this issue, that I am also affected by, it is very common to have the interfaces up when attempting to apply a new configuration, many times it is the only way. For example, a common server provisioning workflow might be: Power On DHCP single interface tftp and pxeboot into the OS Cloud-init writes the .network and .netdev files to the appropriate locations restart networking to come up with bonding With this current issue the network restart doesn't create the bond as desired. For now, as a workaround, I'm adding a tiny bash script that does this during the provisioning sequence, but would love to see a fix to this in the future. Thanks. It seems this is already fixed. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.