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

network: simplify network interface units to make them more reliable #1111

Merged

Conversation

ctheune
Copy link
Member

@ctheune ctheune commented Apr 30, 2024

All network interface now use "-netdev.service" units, even if they have underlying physical devices and were previously depending on systemd device units. This proved to be unreliable when trying to transform systems between complex configuration states without requiring a reboot and ended up in undefined states.

Includes a backport of NixOS#240295

Re PL-132441

Security requirements

We need to be careful changing upstream code. This is 21.05 and will need to be redone on 24.05 or whenever we update.
I was in touch with the upstream community to verify what I'm doing and the general stance is that this part of the code base (scripted networking) is not being actively maintained any longer. My understanding of the code after some hours of
analysis together with @sysvinit seams reasonably educated to perform the changes.

Security testing

Our automated tests on the platform are passing and the manual tests we did in VMs and when migration DEV and WHQ were completely successful both on boot and online reconfigurations as well as recovering from intermediate states.

All network interface now use "-netdev.service" units, even if they
have underlying physical devices and were previously depending on
systemd device units. This proved to be unreliable when trying to
transform systems between complex configuration states without
requiring a reboot and ended up in undefined states.

Includes a backport of NixOS#240295

Re PL-132441
@dpausp dpausp merged commit ef04308 into nixos-21.05 Apr 30, 2024
3 checks passed
@dpausp dpausp deleted the PL-132441-fix-dependencies-always-use-netdev-service branch April 30, 2024 16:15
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

Successfully merging this pull request may close these issues.

2 participants