Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bonded Interfaces with down links cause systemd-networkd-wait-online failure #1106

Closed
Firefishy opened this issue Jun 26, 2024 · 3 comments
Closed

Comments

@Firefishy
Copy link
Member

Firefishy commented Jun 26, 2024

With systemd version < 256 when bonded interfaces with 1 or more disconnected slave links the interface state is set to degraded-carrier. systemd-networkd-wait-online then waits and eventually fails with a timeout. This bug was corrected in systemd/systemd#27776

Ubuntu 22.04 and Debian 12 adding the following to the bond0.network fixes the issue:

[Link]
RequiredFamilyForOnline=ipv4
RequiredForOnline=degraded-carrier

RequiredFamilyForOnline is not available in Ubuntu 20.04

Affected systems include piasa

@Firefishy
Copy link
Member Author

The default in systemd v256 is RequiredFamilyForOnline=any, RequiredForOnline=degraded-carrier on bonded links.

@tomhughes
Copy link
Member

Actually since systemd/systemd#27776 (first in v254) a bond link will show as routable even if not all interfaces have carrier.

Also in v256 the default for RequiredForOnline is degraded-carrier but only if RequiredFamilyForOnline is any which it isn't by default.

That said the proposal here is probably the best option for versions before 254.

@tomhughes
Copy link
Member

Fixed in openstreetmap/chef@5f5aedb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants