2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-21 09:52:17 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
Daniel Hilst a12d31ced5 fix(xcat-core): an IPv6 master gives a Genesis node no credentials
A node discovered by Genesis on an IPv6-only cluster gets no credentials and
reports no state. The credential callback never answers and the install state
never reaches xcatd, so discovery stops with nothing in the log that names an
address family.

The Genesis copies of the two awk helpers were never given the IPv6 branch
that the copies under xCAT/postscripts carry. allowcred.awk hardcoded
"/inet/tcp/300/0/0", so it ignored XCAT_CREDENTIAL_CALLBACK_PORT and opened a
listener that accepts no IPv6 connection. updateflag.awk built "/inet/" from
the raw argument, so a bracketed IPv6 literal reached gawk with its brackets
and resolved to nothing. Neither build script copies these files, so the two
copies are independent and the first never followed the second.

Both Genesis copies now carry the postscripts logic. updateflag.awk keeps
logger and writes no file: Genesis has no /var/log/xcat directory, rsyslog
sends everything to /var/log/xcat.genesis, and gawk is fatal when it cannot
open a redirect.

ipv6_genesis_awk_inet6.bats captures this. Four of its six cases fail on the
previous copies.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-11-05 09:20:22 -03:00
GONG Jie 6dac9ae943 Remove trailing spaces in file xCAT-genesis-scripts/usr/bin/updateflag.awk 2017-12-31 23:59:59 +00:00
Samveen Gulati 63a3efe8bb move /*bin to /usr/ to fix path conflict of genesis base and scripts
RH7/Centos7 and recent versions of fedora relocate `/*bin/*` into `/usr/*bin/`. This causes
conflicts for upgrades against xCAT-genesis-scripts-* packages which expect the `/bin` a to be
a directory while `xCAT-genesis-base-*` packages provide a link. Relocating all files into `/usr`
fixes that conflict and allows a clean upgrade from all old versions.
2018-01-12 06:06:25 +00:00