-
-
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
treewide: deprecate ip-up.target #18319
Conversation
Reviewed 14 of 14 files at r1. nixos/modules/services/network-filesystems/drbd.nix, line 58 [r1] (raw file):
Verified upstream: https://apt-browse.org/browse/ubuntu/trusty/main/i386/drbd8-utils/2:8.4.4-1ubuntu1/file/lib/systemd/system/drbd.service nixos/modules/virtualisation/azure-agent.nix, line 182 [r1] (raw file):
I was suspicious this needed to be up sooner, but verified otherwise: https://github.com/Azure/WALinuxAgent/blob/master/init/coreos/cloud-config.yml Comments from Reviewable |
Looks good to me. What did you mean by the dhcpcd hook? The |
Rebased to resolve merge conflicts and also added modified |
Reviewed 3 of 3 files at r3. Comments from Reviewable |
Reviewed 1 of 1 files at r2. Comments from Reviewable |
LGTM. Anything holding this back? |
Just a heads up: some networking related tests are now failing https://hydra.nixos.org/eval/1292016#tabs-now-fail |
I'm investigating. |
Thanks @fpletz. Feel free to revert until I find time to look into this. |
See #18319 for details. Starting network-online.target manually does not work as it hangs indefinitely. Additionally, don't treat avahi and dhcpcd special and sync their systemd units with the respective upstream suggestion.
@groxxda Found some info on https://nixos.org/nixos/manual/index.html#sec-running-nixos-tests and was able to debug with the execute function. Should be fixed with c58654e. |
Thank you @fpletz for looking into this and fixing it! |
It was deprecated and removed from all modules in the tree by NixOS#18319. The wireguard module PR (NixOS#17933) was still in the review at the time and the deprecated usage managed to slip inside.
Motivation for this change
Systemd upstream provides targets for networking. This also includes a target
network-online.target
.I would like to see
ip-up.target
completely gone.In this PR I remove / replace most occurrences since some of them were even wrong and could delay startup.
There are still references that I'm unsure about:
nixos/modules/services/networking/dhcpcd.nix
: is this hook really needed?nixos/modules/services/networking/avahi-daemon.nix
: has orderingwantedBy
andbefore
if-up.target
which looks plain wrong to me. We should getavahi-daemon
closer to upstream definition that also includes socket-activation, but this is out of scope of this PRnixos/modules/services/networking/networkmanager.nix
: is this really needed?nixos/modules/tasks/network-interfaces-scripted.nix
: is this needed?nixos/modules/virtualisation/nova.nix
: this module still uses thejobs
interface, which was deprecated when I started using nixosThings done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)I would be thankful for comments about the remaining occurrences as well as deprecating
ip-up.target
in general.