socallinuxexpo / scale-network

SCaLE's on-site expo network configurations, wifi, tooling, and scripts
https://www.socallinuxexpo.org/
BSD 3-Clause "New" or "Revised" License
46 stars 19 forks source link

Reenable kea dhcpv6 on core machines #754

Open sarcasticadmin opened 7 months ago

sarcasticadmin commented 7 months ago

Description

Currently kea dhcpv6 daemon is disabled: https://github.com/socallinuxexpo/scale-network/blob/c6e657d6cca7fc17aac370905dd1e8105d087f8b/nix/machines/core/common.nix#L62 due to errors within the dhcpv4 and dhcpv6 daemons clobbering each others pids (the logs werent originally captured when the issue was happening). I believe this was due to the version of nixpkgs were currently pinned to that happened to include a previous change that was ultimately reverted: https://github.com/NixOS/nixpkgs/pull/274460

Acceptance Criteria

Get the two daemons to share a common instance of /var/run/kea

owendelong commented 7 months ago

The issue isn't just the PIDs.

The issue is the entire /var/run/kea directory.

Each creates its own instance of that directory (some form of kernel namespace systemd thing I admit I don't fully understand and haven't encountered prior to our use of NIX).

Whichever one starts last ends up being the only one visible to users on the system. It is possible there is some way to access the other one which I am unaware of.

Since I was writing debug log files in that directory to overcome systems logging limitations, this was problematic.

owendelong commented 7 months ago

Yes, the bug description for NixOS 2774460 appears to be exactly what we encountered here.

sarcasticadmin commented 7 months ago

Thanks for the additional context @owendelong