mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-27 12:52:16 +00:00
018987d0fb
Ten cmd lines in five case files restarted the DHCPv4 server with the same inline probe of kea-dhcp4, falling back to isc-dhcp-server on Ubuntu. Kea is the backend there and its unit is kea-dhcp4-server, so the probe was false and the fallback named a unit that is not installed. The restart exited 5 with "Unit isc-dhcp-server.service not found" and failed the case. Each of those lines now calls commoncmd/restart_dhcp.sh. discovery_test also decided whether to create /var/lib/dhcpd/dhcpd.leases from the same single-unit probe, so on an Ubuntu management node it wrote an ISC leases file beside a Kea backend; it now asks restart_dhcp.sh --print-unit. Each rewritten line keeps the check that followed it. xcattest discards a cmd line that does not start with [#/$\w] and binds its checks to the previous command, so the calls are written as absolute paths. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>