Hi all While installing centos-6.5 we realized that the postscripts are not executed. It turned out that there is a small but striking bug in $XCATROOT/share/xcat/install/scripts/post.xcat --from post.xcat --- 23 GOTIT=0 24 for i in $MASTER_IPS 25 do 26 wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -e robots=off -nH --cut-dirs=2 --reject "index.html*" --no-parent -t 0 -T 60 26 http://$i$INSTALLDIR/postscripts/ -P /xcatpost 27 if [ "$?" = "0" ] 28 then 29 30 rm -rf /xcatpost/mypostscript 31 export NODE=#TABLE:nodelist:THISNODE:node# 32 wget -N --waitretry=10 --random-wait -T 60 http://$i$TFTPDIR/mypostscripts/mypostscript.$NODE -P /xcatpost 2> /tmp/wget.log 33 mv /xcatpost/mypostscript.$NODE /xcatpost/mypostscript 34 35 if [ ! -x /usr/bin/openssl ]; then #Stop if no openssl to help the next bit 36 exit 1 37 fi 38 USEOPENSSLFORXCAT=1 #Though this is the only method going forward, flag to allow backward compatibility with 2.2 generated netboot images 39 export USEOPENSSLFORXCAT 40 XCATSERVER=$i:3001 41 export XCATSERVER 42 mv $i/postscripts /xcatpost 43 rm -rf $i --- end cut ---
In line 26 wget is called with the option -nH (-no-host-directories) while in line 42 the hostdirectory $i (managment or service node) is expected. Thus the move in line 42 fails and subsequently getpostscript.awk won't be found therefore not executed. Changinging rmoving the wget option -nH solves the problem (changing line 42 to 'mv postscripts /xcatpost' would be an alternative): ----%<------- diff --git a/xCAT-server/share/xcat/install/scripts/post.xcat b/xCAT-server/share/xcat/install/scripts/post.xcat index add65c9..f7d9051 100644 --- a/xCAT-server/share/xcat/install/scripts/post.xcat +++ b/xCAT-server/share/xcat/install/scripts/post.xcat @@ -23,7 +23,7 @@ do GOTIT=0 for i in $MASTER_IPS do - wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -e robots=off -nH --cut-dirs=2 --reject "index.html*" --no-parent -t + wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -e robots=off --cut-dirs=2 --reject "index.html*" --no-parent -t 0 - if [ "$?" = "0" ] then ---->%--------- Best regards Christian Bolliger - Christian Bolliger ETH Zurich High Performance Computing IT Services / ID SIS SOW H 12, Sonneggstrasse 63 8092 Zurich Switzerland Phone +41 44 632 3494
post.xcat.diff
Description: post.xcat.diff
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user