-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
nixosTests.nscd: init, remove nixosTests.resolv #194916
Conversation
nixosTests.systemd is quite heavy, it requires a full graphical system, which is quite a big of a rebuild if the only thing you want to test is whether dynamic users work. This is now moved to an `nscd` test, which tests various NSS lookups, making extra sure that the nscd path is tested, not the fallback path (by hiding /etc/nsswitch.conf and /etc/hosts for getent). nixosTests.resolv is removed. It didn't check for reverse lookups, didn't catch nscd breaking halfway in between, and also had an ambiguous reverse lookup - 192.0.2.1 could either reverse lookup to host-ipv4.example.net, or host-dual.example.net.
8fce77d
to
1224368
Compare
09ad413
to
deea79f
Compare
deea79f
to
6eed70c
Compare
This shows that external nss module resolution is broken with unscd.
6eed70c
to
f08b8d6
Compare
@GrahamcOfBorg test nscd |
Hmm, the Could it be related to [Edit]: it the getent call does not fail on a aarch64 host but does fail in a aarch64 VM running on that very same host. 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have an issue with AARCH64 don't merge yet.
@GrahamcOfBorg test nscd |
Apparently, the It's especially confusing because the other requests before, including those for dynamic user support do work, and because it also works fine when querying manually via |
Okay, it's actually flaky, not always failing. @GrahamcOfBorg test nscd |
Running this multiple times exposed it seems to be some flakyness in that lookup call, and it might not be limited to aarch64. |
This has shown to be flaky in the VM test, at least when running on the aarch64 ofborg builder(s). I assume it's some flakyness in systemd-networkd not being fully up, or at least not up to the point that it properly replies to the _gateway request. This part of the test is supposed to test external (non-glibc) nss module lookup for the host database works, which is already sufficiently covered in the previous checks (for *.localhost). Drop these redundant checks. We're not integration-testing networkd here.
@GrahamcOfBorg test nscd |
nixosTests.systemd is quite heavy, it requires a full graphical system, which is quite a big of a rebuild if the only thing you want to test is whether dynamic users work.
This is now moved to an
nscd
test, which tests various NSS lookups, making extra sure that the nscd path is tested, not the fallback path (by hiding /etc/nsswitch.conf and /etc/hosts for getent).nixosTests.resolv is removed. It didn't check for reverse lookups, didn't catch nscd breaking halfway in between, and also had an unabiguous reverse lookup - 192.0.2.1 could either reverse lookup to host-ipv4.example.net, or host-dual.example.net.
This also tests unscd, at least the parts that are known to work (see #193535).
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes