mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
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).
This commit is contained in:
@@ -221,6 +221,13 @@ install_apt_deps() {
|
|||||||
ovn-central ovn-host openvswitch-switch dhcpcd-base \
|
ovn-central ovn-host openvswitch-switch dhcpcd-base \
|
||||||
> /dev/null
|
> /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"
|
info "System dependencies installed"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user