2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-27 12:52:16 +00:00

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>
This commit is contained in:
Daniel Hilst
2026-11-10 17:35:23 -03:00
parent cfbc953a32
commit 8cd641f09a
+6 -1
View File
@@ -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"] : ""
}