mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-08-04 00:16:59 +00:00
9125d4da3c
makedhcp using the Kea backend fails for any node whose mac table entry uses the *NOIP* sentinel to mark a secondary NIC that has no IP address (e.g. "mac1|mac2!*NOIP*|mac3!*NOIP*"). kea_node_reservations() and kea_node_reservations6() split each NIC's hostname and pass it straight to getipaddr(), so the literal string "*NOIP*" is treated as a host to resolve. It cannot resolve, and the reservation is reported as unresolved -- which aborts the whole makedhcp run, leaving the node with no Kea reservation at all and therefore no DHCP lease. This breaks provisioning on distros that use the Kea backend (e.g. EL10, which has no ISC dhcp-server): the node never gets an address and is unreachable, while the ISC backend has always handled *NOIP* and is unaffected. Skip *NOIP* NICs in both the DHCPv4 and DHCPv6 reservation builders, the same way the ISC path does -- there is no address to reserve for them. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>