My mistake - not sure how I missed the code at the top of the script.
What this does tell me is that I need to ensure that all my postscripts need to
return a zero value if they exit normally.
If any one of them returns a non-zero value, the node status will be set to
“failed”.
# lsdef node1
…
status=failed
statustime=03-29-2015 13:00:48
If a known-good postscript is executed on the node, the ‘updatestatus’ will get
set to ‘synced’ (sic). (Via ‘updatenode node1
-P good-script’)
It looks like all postscripts must return 0 to get the ‘status’ to change to
‘installed’ or ‘booted’.
From: Xiao Peng Wang [mailto:[email protected]]
Sent: Monday, April 13, 2015 1:20 AM
To: xCAT Users Mailing list
Subject: Re: [xcat-user] question on mypostscript.post
The $return_value should be defined at the beginning of
/xcatpost/mypostscript.post, this variable will be updated to the return
code of final post boot script.
Thanks
Best Regards
----------------------------------------------------------------------
Wang Xiaopeng (王晓朋)
IBM China System Technology Laboratory
Tel: 86-10-82453455
Email: [email protected] <mailto:[email protected]>
Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian
District Beijing P.R.China 100193
"Russell Auld" ---2015/04/11 05:15:29---At the end of the script I see this
block: if [ "$return_value" -eq "0" ]; then
From: "Russell Auld" <[email protected] <mailto:[email protected]> >
To: "'xCAT Users Mailing list'" <[email protected]
<mailto:[email protected]> >
Date: 2015/04/11 05:15
Subject: [xcat-user] question on mypostscript.post
_____
At the end of the script I see this block:
if [ "$return_value" -eq "0" ]; then
updateflag.awk $MASTER 3002 "installstatus booted"
else
updateflag.awk $MASTER 3002 "installstatus failed"
fi
I always wondered why the status would be “status=failed” when I ran an ‘lsdef’
on a node.
I think the status is due to the block above. I don’t see any other definition
or use of “$return_value” in the script.
On the imaged nodes, this block is in /xcatpost/mypostscript.post
and it’s generated by the “xcatinstallpost” postscript.
Can someone comment on this code block?
Present on both
Version 2.8.5 (git commit 51b69940b6fc7b54fc2a1f89330e69c8f830a3fc, built Mon
Sep 1 02:28:50 EDT 2014)
and
Version 2.8.4 (git commit ded873f998a889c91a169d3f870efdbebfb66243, built Thu
May 29 23:32:02 EDT
2014)------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF_______________________________________________
xCAT-user mailing list
[email protected] <mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user