mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-12-04 08:07:04 +00:00
9eacb22dff
On an IPv6 cluster, bmcsetup in Genesis sends the bmcready status to "[2001" instead of the management node. An OpenBMC node also reports "failed" after its IPv6 address is set correctly. bmcsetup reads the xcatd= kernel argument again and splits it on the first colon. For "[2001:db8::1]:3001" this gives "[2001", and bmcsetup writes it over the XCATMASTER that doxcat exported. updateflag.awk and allowcred.awk then get an invalid host. The OpenBMC check reads the address back with "lan print", which shows only IPv4 parameters. bmcsetup now reads a bracketed xcatd= value as doxcat does. The new bmc_has_address reads an IPv6 address back with "lan6 print" on the LAN channel, and an IPv4 address as before. The IPv6 status tests in genesis_bmcsetup_users.bats fail without this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>