mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-27 12:52:16 +00:00
79f5291554
xCAT runs Kea as kea-dhcp4 on EL and as kea-dhcp4-server on Debian and Ubuntu. Ten cmd lines across five case files probed the EL name alone and fell back to isc-dhcp-server on Ubuntu, which is absent where Kea is the backend. reg_linux_diskless_installation_hierarchy failed on it in xcat-test-ubuntu-24-x86_64 #85: rc 5, "Unit isc-dhcp-server.service not found". Measured on xcat24-mn, Ubuntu 24.04.4: kea-dhcp4 inactive, kea-dhcp4-server active, isc-dhcp-server absent. restart_dhcp.sh restarts whichever DHCPv4 unit is active, and --print-unit names it for a caller that asks which backend the node runs. The bats cases drive it with a stub systemctl that reports one unit active and records what was restarted. The eight cases pass with the file as committed, so the discriminating evidence is a mutation: dropping kea-dhcp4-server from the candidate list reds exactly "the Ubuntu Kea unit is restarted" and the message assertion, and leaves the EL, ISC and dhcpd cases green. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>