2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-29 22:02:20 +00:00
Files
xcat-core/xCAT-server
Daniel Hilst 8eb12a1392 fix(template): an IPv6-only node has its static address rewritten to DHCP
An IPv6-only openSUSE node completed its install with the static IPv6 address in its
AutoYaST profile, then booted with a link-local address only. The applied profile on
the node carried bootproto static and the address, and ifcfg-eth0 read BOOTPROTO=dhcp
with a modification time later than the install.

post.sles.common writes that file. It keeps the interface configuration only when
MANAGEDADDRESSMODE reads static, and managed_address_mode returned
site.managedaddressmode, which was unset. xCAT wrote the static configuration and then
removed it.

managed_address_mode now takes the node and reports static for a node that
xCAT::NetworkUtils::node_is_ipv6_only reports as IPv6-only. A node with any IPv4
address keeps the site value, so an IPv4 and a dual-stack cluster are unchanged.

Captured by xCAT-test/unit/template_ipv6_rendering.t, where one of the three new
assertions fails without this change.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-29 09:56:37 -03:00
..
2016-07-21 13:27:40 -04:00