2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-19 17:02:15 +00:00
Files
xcat-core/xCAT-server/lib/xcat/plugins
Daniel Hilst 77eaf4d53c fix(ipv6): a diskless node has an address and no route
mknetboot gave an IPv6-only node ip=either6, which asks dracut for DHCPv6.
DHCPv6 assigns one address with a prefix length of 128 and carries no route, and
an xCAT provision network sends no router advertisement: radvd is not installed
and net.ipv6.conf.<nic>.forwarding is 0. The node came up with the address and
no way to reach the server, and the dracut hook reported
"Connecting to [2001:db8:147::1]:80... failed: Network is unreachable."

debian.pm now builds the static form from the address, gateway and prefix the
node already has in the database, the way sles.pm passes hostip and gateway to
linuxrc. either6 remains the answer when the address cannot be resolved.

Captured by xCAT-test/unit/dracut_static_ip6.t. Removing the prefix length from
the parameter fails four of its nine assertions and leaves the bracketing and
the refusal cases passing.

Measured on an IPv6-only Ubuntu 24.04 node: Kea records prefix_len=128 for its
lease, and dracut logged BOUND6 for eth0 before the fetch failed.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-29 15:27:53 -03:00
..
…
…
…
…
2024-05-07 16:19:25 +02:00
2024-05-07 16:19:25 +02:00
…
…
2024-05-07 16:19:25 +02:00
…
2026-10-19 16:11:59 -03:00
…
2023-01-18 11:00:59 -05:00
…
…
…
2018-08-21 15:18:12 -04:00
2026-10-16 11:03:31 -03:00
2018-08-21 15:18:12 -04:00