From bc33c72c76a29555b501fe765a6505343f7859e6 Mon Sep 17 00:00:00 2001 From: joshsiv-mulga Date: Wed, 29 Apr 2026 13:39:36 +1000 Subject: [PATCH] fix(setup): mask dhcpcd.service to stop it racing vpcd's DHCP client (mulga-siv-32) Debian 13 (Trixie) auto-enables a standalone dhcpcd.service when dhcpcd-base is installed. It binds br-wan and races vpcd's in-process nclient4 client for upstream OFFERs, draining the lab DHCP pool with duplicate leases and causing intermittent DORA timeouts in the e2e public-IP path (worst on cell-8 real-multi/dhcp/debian-13). The ISO installer already masks the unit at install time (cmd/installer/install/install.go:316). The binary install path used by e2e nightly missed it, so debian hosts installed via setup.sh ran with both DHCP clients live. Mirror the ISO mask here. Ubuntu hosts are unaffected (dhcpcd-base does not auto-enable dhcpcd.service on Noble). --- scripts/setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/setup.sh b/scripts/setup.sh index 190d87a72..5c7a969e5 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -221,6 +221,13 @@ install_apt_deps() { ovn-central ovn-host openvswitch-switch dhcpcd-base \ > /dev/null + # Mask the standalone dhcpcd.service auto-enabled on Debian Trixie. It + # binds br-wan and competes with vpcd's nclient4 for OFFERs, draining + # the upstream pool and causing intermittent DORA failures. The ISO + # installer does the same mask (cmd/installer/install/install.go). + $SUDO systemctl disable --now dhcpcd.service 2>/dev/null || true + $SUDO systemctl mask dhcpcd.service 2>/dev/null || true + info "System dependencies installed" }