-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
nixos/release-notes: mention that dhcpcd stopped giving IPv4 addresses to bridges #82295
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/release-notes: mention that dhcpcd stopped giving IPv4 addresses to bridges #82295
Conversation
Also pinging @worldofpeace @disassembler as this might be important for the release? Sorry in advance if I overestimate this issue. |
fab0ace
to
1977476
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/go-no-go-meeting-nixos-20-03-markhor/6495/11 |
Interfaces with |
It seems pretty serious. I would put that note on top of the list. |
The problem is, once you use allowinterfaces pattern
When discovering interfaces, the interface name must match pattern which is a space or comma
separated list of patterns passed to fnmatch(3). If the same interface is matched in
denyinterfaces then it is still denied.
I think we should stick with informing people about the breakage in the release notes. Optionally we could throw an error if people had |
1977476
to
719af38
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/go-no-go-meeting-nixos-20-03-markhor/6495/16 |
I have this same setup, and as of my current nixpkgs version of b0c2858 it seems to work if you set Currently my configuration is something like this:
And this seems to work fine? Is this expected, or is there potentially something else different about my configuration that's making this work? I'm not sure why this works, but if it does it seems easier to suggest changing the Edit: Just to be clear, I also experienced this bug after switching to 20.03 and I was also locked out of several machines, but after setting |
@kyren Thanks for the hint! The logic that configures an explicit list of interfaces if
I agree and will change the PR accordingly. |
…s to bridges by default This is an backward incompatible change from upstream dhcpcd [0], as this could have easily locked me out of my box. As dhcpcd doesn't allow to use only a blacklist (denyinterfaces in dhcpcd.conf) of devices and use all remaining devices, while explicitly allowing some interfaces like bridges, I think the best option would be to not change anything about it and just educate the users here about that edge case and how to solve it. [0] https://roy.marples.name/archives/dhcpcd-discuss/0002621.html
719af38
to
eeeb2bf
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/go-no-go-meeting-nixos-20-03-markhor/6495/19 |
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.
Builds and renders fine for me.
forward ported 788f572 |
Motivation for this change
This is about an change from upstream dhcpcd. It is backwards incompatible as this locked me out of my box.
This was my setup, when I upgraded from
nixos-19.09
tonixos-20.03
:When I rebooted the system, I noticed that
br0
doesn't get an IPv4 address anymore. The reason was, thatdhcpcd
didn't consider a bridge as an interface, that would get an address by default.My solution was then to change my config to this:
As I explain in the commit message, I don't see an easy way to fix this edge case. The only thing that comes to my mind right now is that we could give out an error if someone wants to set
useDHCP
on a bridge?Things done
Inform users of
nixos-20.03
, that their setup might break.sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Pinging @edolstra @fpletz as they are the maintainer of dhcpcd.