2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-26 12:22:15 +00:00
Files
xcat-core/xCAT-server/lib
Daniel Hilst 9e234189ef fix(xcat-core): a DHCPv6 reservation carries a DUID the client does not send
makedhcp reversed the first three fields of vpd.uuid to build the DUID-UUID,
and the OpenEmbedded Genesis image reported product_uuid in the opposite order
to the legacy image. Kea matched neither reservation, so an IPv6 node took a
pool address with no bootfile-url.

vpd.uuid holds the sixteen octets in the order the client sends them. kvm.pm
swaps the first three SMBIOS fields to build the libvirt <uuid>, dodiscovery
and doxcat swap product_uuid before they report or send it, and both DHCP
backends on master use the column as the DUID payload unchanged. On xcat76-cn
the firmware sent 00:04 followed by that column verbatim.

kea_duid_from_uuid now colonises vpd.uuid and prefixes 00:04, and
genesis-discover reports the DMI uuid in the same order as its legacy sibling.
The s390x and device-tree paths read their uuid elsewhere and are untouched.

Five assertions in dhcp_kea_plugin_intent.t and the genesis-discover assertion
in genesis_openembedded_discovery.bats fail without this change.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-24 08:03:29 -03:00
..