2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-24 19:32:17 +00:00
Files
xcat-core/xCAT-server
Daniel Hilst ccac7e8c46 fix(xcat-core): write a Kea subnet for a relayed network
makedhcp <node> answers "Unable to find a Kea subnet for <node> (<ip>), skipping DHCP
reservation" for a node on a network whose mgtifname is "!remote!<nic>". The node gets no
reservation and never boots. The same cluster works with the ISC backend.

kea_build_dhcp4_intent skips a relayed network unless %activenics carries a "!remote!" key.
Nothing sets that key: %activenics comes from site.dhcpinterfaces or from the local routing
table, and a relay agent answers the network, so no local NIC carries it. The subnet4 is
absent and subnet_id_for_ip finds nothing for the node. The ISC path has no such condition.
Its @nrn loop writes the shared-network and the subnet from the networks table alone.

Require nothing for a relayed network, as ISC does. kea_subnet4_intent already leaves the
interface out of a relayed subnet, so Kea answers it through the relay.

The case that covers this is makedhcp_remote_network.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
(cherry picked from commit 62af5506dad06c7017c0d57a69d7ccc47a471dd5)
2026-10-07 13:45:18 -03:00
..
2016-07-21 13:27:40 -04:00