Skip to content

fix(provisioning): wait for interfaces before kea and pdns bind - #114

Merged
rtacconi merged 4 commits into
mainfrom
fix/provisioner-wait-lan10g
Nov 16, 2026
Merged

rtacconi merged 4 commits into
mainfrom
fix/provisioner-wait-lan10g

Conversation

@rtacconi

Copy link
Copy Markdown
Contributor

Summary

  • Kea and PowerDNS were racing lan10g at boot: systemd reported them active while Kea had no sockets and the recursor hit start-limit after Cannot assign requested address.
  • Wait for DHCP interfaces (operstate=up) and listen/DNS addresses before starting Kea, the recursor, and the provisioner API; widen start-limit so a late NIC can still recover.
  • Have Kea retry opening sockets for 60s, and bump rusqlite so pre-push cargo audit clears RUSTSEC-2026-0459.

Test plan

  • cargo test -p kcore-provisioning --lib render::tests
  • nix build .#checks.x86_64-linux.provisioning-module-eval
  • Rebuilt nixos1 from the fix; confirmed Kea/pdns/provisioner active with wait ExecStartPre and service-sockets-max-retries=60
  • Reboot nixos1 and confirm DHCP answers without a manual restart

network-online alone still raced lan10g, so kea started with no sockets and
pdns hit start-limit. Wait for operstate and listen addresses, and let kea
retry opening sockets for a minute.
libsqlite3-sys 0.30 is RUSTSEC-2026-0459; rusqlite 0.41 pulls 0.39.1.
DatabaseName::Main becomes MAIN_DB.
@rtacconi
rtacconi merged commit 925736b into main Nov 16, 2026
6 checks passed
@rtacconi
rtacconi deleted the fix/provisioner-wait-lan10g branch November 16, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant