2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-12-03 23:57:06 +00:00
Files
xcat-core/xCAT
Daniel Hilst b6565fee61 fix(xcat-core): stop reporting a missing ed25519 host key as an error
"updatenode <node>" prints "Error: Unable to read private ed25519 key from
/etc/xcat/hostkeys" against a FIPS management node. Nothing failed: the postscript exits 0
and the node gets the host keys the management node holds.

ssh-keygen refuses ed25519 in FIPS mode, so xcatconfig generates no ed25519 host key and
getcredentials has none to send. The node is not in FIPS mode, so its own probe succeeds and
remoteshell asks for the key. remoteshell logs the absence with "logger -s ... Error:", which
puts the word on stderr and into the output of updatenode.

Log it to syslog at info, as the DSA branch above already does for the same absence on EL9
and EL10.

The case that covers this is updatenode_without_flag, whose "output !~ (E|e)rror" check fails
on EL9 and EL10. It passes on EL8, where the management node is not in FIPS mode.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
(cherry picked from commit 6576f86be50dfc43190d0bf1b4e787cdc3169b11)
2026-10-07 13:45:21 -03:00
..
…