-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
nixos/networkd: fails non-deterministically with predictable interface names #39069
Comments
Note that our udev rules for network interfaces are not in sync with what systemd upstream uses. |
The only relevant change to |
…test remove vm-test-run-predictableInterface-names-with-networkd from tested, as it failed non-deterministically due to a race condition (NixOS#39069), which kept the "small" channels from updating. This temporary fix should be reverted after NixOS#39069 is fixed.
After some tests, here's what I think is happening: Stage 1 This can be (sort of) "solved" by an ugly hack: Add A better solution might be to let stage 1 @shlevy maybe you can help? (I found your f756369 from a long time ago, which was reverted after a few days) |
Hmm not sure here, sorry! |
Fixed by applying predictable interface names in stage 1 already. |
systemd-udev-settle is a terrible hack[1] and should never[2] ever[3] used, seriously it's very bad. It was used as a stop-gap solution for issue #39069, but thanks to PR #79532 it can be removed now. [1]: systemd/systemd#7293 (comment) [2]: #73095 [3]: #107341
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixosstag.fcio.net/t/predictable-network-interface-names-in-initrd/4055/1 |
Issue description
When using
systemd-networkd
together with predictable interface names, there seems to be a race condition betweennetworkd
activating the interfaces andudevd
renaming them, resulting in non-deterministic failure of interface renaming and setup.For an example, see these hydra builds: failed and succeeded
Issue occurs on 18.03 and current master (i.e. with systemd 237 and 238).
It is probably an upstream bug (but
systemd
has not confirmed this yet). I found two similar reports: systemd/systemd#7293 and coreos/bugs#1767Since the corresponding test is part of the
tested
jobs for thenixos-unstable-small
andrelease-18.03-small
channels, the sporadically failing test can delay the channels.I suggest removing this test from the
tested
jobs for the time being until this is fixed.Steps to reproduce
Although the issue seems non-deterministic in nature (see hydra builds), I can quite reliably reproduce it running the test on my local machine:
nix-build '<nixpkgs/nixos/tests/predictable-interface-names.nix>' -A vm-test-run-predictableInterfaceNames-with-networkd
Technical details
nixos
18.03.132008.ad771371fb2
or master e0c9a25The text was updated successfully, but these errors were encountered: