-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
make "networkctl status" show logs related to the specified iface #14050
Comments
Though it looks like bc9ecd4 fixes this in HEAD, I've raised this bug to give awareness to others experiencing this issue, and to track:
|
This would have made diagnosing #14050 easier.
So yeah, bc9ecd4 coincidentally fixes this. We usually don't mention bugfixes in NEWS. It'd simply be too many, NEWS is supposed to be for the highlights, i.e. feature additoins. If you want the full list of changes including bugfixes "git shortlog" is really the best option. I am also tempted to say that the networkd should probably continue to warn but continue if we cannot initialize the DHCP server. Logging at error usually means something is withing some specific context fatal, but I don#t think this should be made fatal. Instead, maybe we should turn this into an RFE that makes "networkctl status $IFACE" show the most recent logs for that interface among its output similar to how "systemctl status" does that for services. if we had that it would be easy to find this kind of stuff... |
Fair.
a0fa3ef has already changed the warnings into errors, but if that isn't consistent with the rest of the source's log levels, I can see why you might want to revert it. Perhaps those warning messages could be modified to include the causal link between failure to get timezone, and DHCP server not starting. e.g. "Failed to determine timezone: %m" might become "Failed to determine timezone, refusing to start DHCP server: %m" or some such?
Yes, that sounds useful, and the consistency with 'systemctl status' makes it easy to understand and expected. |
systemd version the issue has been seen with
Used distribution
Expected behaviour you didn't see
Unexpected behaviour you saw
With hindsight, this systemd-networkd warning is relevant:
Steps to reproduce the problem
NixOS/nixpkgs#73505 has an automated test to reproduce this, executable via https://nixos.org/nixos/manual/index.html#sec-running-nixos-tests-interactively .
Mechanism
In systemd 242,
systemd
would create/etc/localtime
andsystemd-networkd
would grab timezone info from/etc/localtime
as part of being a DHCP server. Everything is good so far.systemd 243 introduced 09bef96, which removed the creation of
/etc/localtime
, and thussystemd-networkd
fails to get timezone data, and thus fails to start a DHCP server. In particular, not listening on67/udp
.bc9ecd4 will fix this by falling back to UTC if
/etc/localtime
does not exist.Workaround
Set
EmitTimezone=false
under[DHCPServer]
.Context
Tracked in NixOS at NixOS/nixpkgs#73504 .
The text was updated successfully, but these errors were encountered: