From cbfbbe12d7d26991755d95d7c37a4f8a3bb6f58b Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Sat, 7 Nov 2026 19:53:51 -0300 Subject: [PATCH] fix(genesis): imgserver falls back to the IPv4 address of an IPv6-only node The imgserver of the nodeset response takes noderes.tftpserver, then noderes.xcatmaster, then site.master, and falls back to my_ip_facing. That resolver is IPv4 only, and an IPv6-only node shares the link with the management node, so the fallback answers with the IPv4 address and the node is sent to fetch its image from an address it has no route to. It now uses my_ip_facing_node, which picks the family from the node. InstUtils and grub2 already make the same choice, each with its own ternary; this is the third site and the first to use the shared helper. The fallback is reached only when none of the three attributes is set, so a cell that sets noderes.tftpserver was never affected. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-server/lib/xcat/plugins/destiny.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/destiny.pm b/xCAT-server/lib/xcat/plugins/destiny.pm index 5750e14e30..6939cdd6a9 100644 --- a/xCAT-server/lib/xcat/plugins/destiny.pm +++ b/xCAT-server/lib/xcat/plugins/destiny.pm @@ -990,7 +990,10 @@ sub getdestiny { } elsif (defined($master_value)) { $response{imgserver} = $master_value; } else { - my @resd = xCAT::NetworkUtils->my_ip_facing($node); + # In the family the node provisions in, as InstUtils and grub2 already do: an + # IPv6-only node shares the link, so my_ip_facing answers with the IPv4 address and + # the node is sent to fetch its image from an address it cannot reach. + my @resd = xCAT::NetworkUtils->my_ip_facing_node($node); unless ($resd[0]) { $response{imgserver} = $resd[1]; } }