xcat2 / xcat-core

Code repo for xCAT core packages
Eclipse Public License 1.0
360 stars 171 forks source link

post.xcat.ng doesn't work on centos8.4 diskful installation. #7467

Open ibmxianliqi opened 1 month ago

ibmxianliqi commented 1 month ago

When I want to provision centos8.4 diskful node, I used the post.xcat.ng in the compute.centos8.tmpl for node kickstart template as below:

%pre { echo "Running Kickstart Pre-Installation script..."

INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rhels8

} &>>/tmp/pre-install.log

%end

%post mkdir -p /var/log/xcat/ { cat >> /var/log/xcat/xcat.log << "EOF" %include /tmp/pre-install.log EOF echo "Running Kickstart Post-Installation script..."

INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.xcat.ng

INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rhels8

} &>>/var/log/xcat/xcat.log

it will result in the node is always installing forever, because there is no update node status action triggered from xcat.post.ng script.

is there someone to know how to deal with this issue?

Obihoernchen commented 1 month ago

Is your management node firewall disabled?

ibmxianliqi commented 3 weeks ago

Is your management node firewall disabled?

yes, MN's firewall was disabled. And I found the post install section's code was not executed during node installation, as first step from post.xcat.ng goes to download /install/postscripts to node's /xcatpost through curl, but it doesn't enter into the curl download code logic. So node's status is always installing and there is no chance to be updated by post section code.

any idea or suggestion to help to resolve this issue?

samveen commented 3 weeks ago

An instantiated kickstart file containing the node's name will be generated from this template and stored in the /tftpboot or /install folder. Please check it;'s contents to see whether the generated kickstart contains the expected contents.

ibmxianliqi commented 3 weeks ago

An instantiated kickstart file containing the node's name will be generated from this template and stored in the /tftpboot or /install folder. Please check it;'s contents to see whether the generated kickstart contains the expected contents.

yes, I'm sure the generated script under the /install/autoinstall directory contains the post section code lines, but the code's post install related code line is not executed during diskful installation.