mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-23 02:42:17 +00:00
94225e8034
The Subiquity autoinstall of an IPv6-only node asked netplan for DHCPv6, and the late-command wrote the same request into the installed system. A DHCPv6 client is identified by its DUID, which the installer generates in the initramfs, so it matched no Kea reservation and the node took an address out of the dynamic range. That address has no PTR record, because makedns writes PTRs from the hosts table, and xcatd identifies a client over IPv6 only by the name its address resolves to. post.xcat then fetched a mypostscript that getpostscript could not build, and the install stopped. subiquity_dhcp_keys and subiquity_target_dhcp_keys in Template.pm now render the static address of the node, through a new _subiquity_netplan6, in the shape xcatroot writes for a diskless IPv6 node. A new subiquity_install_match replaces the literal name: "e*" of both templates: a static address on each of three interfaces of one bridge is a broken network, so an IPv6-only node is matched by its MAC. Each IPv4 return keeps its former string. casper takes no static ip6=, so the debian.pm docs say where the reserved address comes from instead. subiquity_ipv6_netplan.t fails 15 of 30 without this change, and subiquity_install_match.t has no subroutine to call. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>