You reported that post.xcat had some lines(42,43)  in it that do not makes
sense.  ( see bekiw)   We agree but they are not your problem and actually
cause no problems.  We are removing them in the next release.

The first wget is correct with the -nH flag.   We want the files to go
straight to /xcatpost on the node as coded in that wget statement,exactly
as they are in /install/postscripts with no generated   host-prefixed
directories .   Line 42 and 43 are wrong and we are removing them.   They
should have just given an error because $i/postscripts does not exist.
You can comment them out.

The question is why does the first wget fail for you.   A couple of reasons
this fails.
1) some file in /install/postscripts is not world readable.    You can make
sure this is not true by running chmod -R a+r /install/postscripts on the
management node.
2) during install we don't have name resolution to the management node.
3) did you run nodeset <node> before the install?

After install,   if /xcatpost does not exist on your node,  go
to /tmp/wget.log on the node and see if there are any errors.

Another thing you can do is just run   updatenode <node> -P   -V and see if
that works from the Management Node.   It will follow similar processing.
The only thing is after install sometimes the name resolution problems go
away.

I will say we actually do not support Redhat 6.5 /Centos 6.5 until the next
release,  but I don't think that is your problem.

Give us an lsdef <node>     way be there is some setup issue.





Here was your post
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):


Lissa K. Valletta
8-3/B10
Poughkeepsie, NY 12601
(tie 293) 433-3102





From:   "Bolliger  Christian (ID SIS)" <[email protected]>
To:     xCAT Users Mailing list <[email protected]>,
Date:   03/24/2014 02:33 PM
Subject:        Re: [xcat-user] Bug in post.xcat RH postscripts not executed



Hi Lissa

Version 2.8.3-snap201311122316
For the patch I used the git repo. Unfortunately there is a a bug as well
in my original post. It is not only –nH which should not be there, it
should be replaced by –nd (tested).
The corrected patch is attached (as patch this time).

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,

(See attached file: post.xcat.patch)
------------------------------------------------------------------------------

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

<<inline: graycol.gif>>

Attachment: post.xcat.patch
Description: Binary data

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to