1. We have done the approach that mount of /proc, /sys and /dev/ before install packages and umount them after the installing for Ubuntu, and will apply it for rh.
 
2. You can just make the multiple tasks to be specified as comma separated:
# nodeset <node> osimage=rhels6.6-x86_64-netboot-compute,runcmd=bmcsetup,shell
 
3. See the site attribute precreatemypostscripts. In any case, the mypostscript is generated through /opt/xcat/share/xcat/mypostscript/mypostscript.tmpl as template.
 
4. run_ps is added in mypostscript for debugging
 
5. otherpkgs postscript which is executed to install addiation packages will not be run for diskless node through updatenode. The ospkgs is still run on diskless node, but it does not make sence since boot of the system will lose the update. The 'syncfiles' script will be run for diskless node. 
 
 

Thanks
Best Regards
----------------------------------------------------------------------
Wang Xiaopeng (王晓朋)
IBM China System Technology Laboratory
Tel: 86-10-82453455
Email: w...@cn.ibm.com
Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193
 
 
----- Original message -----
From: Thomas Hummel <thomas.hum...@pasteur.fr>
To: xcat-user@lists.sourceforge.net
Cc:
Subject: Re: [xcat-user] 回复: New to xcat : stateless, genimage, postscripts, chain and groups
Date: Thu, Feb 11, 2016 9:33 PM
 

On 02/10/2016 07:34 AM, Xiao Peng Wang wrote:
> welcome to use xcat.

Thanks for your answer (and sorry for the duplicate post : exchange made
me do it and I'm more a postfix/dovecot guy ;-)).


>      1. You are right, all the issues you mentioned are caused by the installing rpm packages through chroot. Usually, two most general failures: 1. System directories like /proc, /sys, /dev are not mounted in chroot
>      Xcat's common way is to do the mount in the chroot before installing pkgs.

You mean xcat, while in genimage, does mount /proc, /sys and /dev and
then unmount them ? Are those bind mounts ? Why then would I still have
the cat: /proc/cmdline: No such file or directory error ?


>     Or nodeset command supports to set multiple tasks in one invoke.

Can you show me how it would be done with nodeset (what syntax) to do
the same as in :

"compute",,,"runcmd=bmcsetup,osimage=centos6.7-x86_64-netboot-compute",,,

which was set via tabedit or chtab ? I think my trials failed.


> There are two ways to get mypostscript, pre creates during nodeset (cfg through site table), then the mypostscript can be downloaded by wget.

You mean something as to be put in 'site' in order to prebuild
mypostscript : what exactly ? Does it has something to do with the
mypostscript.tmpl mechanism described in the doc ?

> If wget failed, it will call get postscript.awk.

I saw that but still it seems that *after* getpostscript.awk,
mypostscript was again (over)written with the run_ps code snippet.
Why ?

>      Genimage and packimage won't call postscrips.

Even the ospkgs and otherpkgs postscript ? Or the syncfiles scripts ? I
thought that was the mechanism rpms were installed in the chroot or
files to sync where put in the image.

It would make sense since both are properties of the osimage object.


>      Postscrips are used to perform the customization for each node, so can't do it in genimage.

It makes sense indeed.

>      For diskless, pkgs and otherpkgs won't do anything.

You mean because rpms are already inside the image, right ? If I add
some rpm in the pkglist and run updatenode -S, the ospkgs script will be
run again on the live node, won't it ?

>      4. For groups, xcat does not support to have two groups have same attributes for one node. If having two, only attribute from one group will be selected.

Can we predict which one ? First match as listed in a tabdump ?
But I understand we're not supposed to have overlapping groups.

Thanks again for your time.

--
Thomas HUMMEL


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to