From 8cd641f09a1f9064ef9865e51681694a05f0d07e Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:35:23 -0300 Subject: [PATCH] fix(xcat-core): the Genesis credential listener ignores the doxcat master On an IPv6 cluster, xcatd cannot confirm a credential request from a Genesis node, so the node gets no certificate. getcert and bmcsetup start allowcred.awk with the environment that doxcat exports. allowcred.awk selects the listener family from MASTER_IP or MASTER. doxcat exports neither. It exports XCATMASTER, so the listener is always IPv4 and the IPv6 callback from xcatd gets no answer. The Genesis allowcred.awk now reads XCATMASTER first. MASTER_IP and MASTER stay as fallbacks. The tests in ipv6_genesis_awk_inet6.bats that use the doxcat environment fail without this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-genesis-scripts/usr/bin/allowcred.awk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-genesis-scripts/usr/bin/allowcred.awk b/xCAT-genesis-scripts/usr/bin/allowcred.awk index 2e1cee75c2..52a358ff5f 100755 --- a/xCAT-genesis-scripts/usr/bin/allowcred.awk +++ b/xCAT-genesis-scripts/usr/bin/allowcred.awk @@ -8,7 +8,12 @@ BEGIN { port = 300 } - master = ("MASTER_IP" in ENVIRON) ? ENVIRON["MASTER_IP"] : "" + # doxcat exports XCATMASTER to getcert and bmcsetup. MASTER_IP and MASTER are the + # postscript names. + master = ("XCATMASTER" in ENVIRON) ? ENVIRON["XCATMASTER"] : "" + if (master == "") { + master = ("MASTER_IP" in ENVIRON) ? ENVIRON["MASTER_IP"] : "" + } if (master == "") { master = ("MASTER" in ENVIRON) ? ENVIRON["MASTER"] : "" }