mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-26 04:12:17 +00:00
1bf2e7f7b6
post.xcat and post.xcat.ng built their download URLs as "http://$MASTER_IP:${HTTPPORT}...". An IPv6 management node address already contains colons, so the result is not a URL, curl and wget refuse it, the script reports installstatus failed and halts with sleep infinity. The install itself has already succeeded at that point, so the node sits in %post and xCAT records status=failed, which reads as an install failure. Measured on openEuler 24.03: the node took its reserved address, installed all 565 packages over IPv6, then stopped in "Running post-installation scripts". Both scripts now carry the format_uri_host helper that post.xcat.rhels10 already had, and build their URLs from MASTER_HTTP_HOST. The helper is a third copy because a node has no shared shell library at the point these scripts run. This reaches openEuler, EL 8, EL 9 and CentOS 8 through post.xcat.ng, and the Ubuntu and SUSE post scripts through post.xcat. EL 10 was already correct. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>