mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-19 17:02:15 +00:00
68d10c5111
makedhcp builds a DUID-UUID from vpd.uuid and the reservation carries one identifier, but no network manager derives that identifier in the byte order the firmware sends. NetworkManager has no option for the SMBIOS UUID at all, and systemd-networkd's DUIDType=uuid uses the decoded product UUID, which is the other order. So a node whose installed OS speaks DHCPv6 matched no reservation and took a pool address. configdhcpv6duid writes the identifier for whichever renderer the node has: the whole DUID for NetworkManager, and the type by name with the sixteen bytes alone for systemd-networkd, which composes the two. It is in the default postscript list for Linux, after remoteshell. AIX has neither renderer and keeps its list. A diskless or statelite node needs nothing: its address comes from the kernel command line and configeth writes dhcp6: false, so its image sends no DHCPv6 request. postscript_dhcpv6_duid.bats pins both forms to the literal the two Genesis images already use, so the four copies of the byte swap cannot drift apart, and asserts the node fails loudly when it has no renderer. postscript_dhcpv6_duid_registered.t holds the registration down: dropping it fails 3 of its 7 assertions. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>