>      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.
------
groups can overlap, and the first in the sequence will take precedence, left to 
right.  So the thought is more specific/relevant groups to a node should appear 
before latery ones.  E.g. compute,rackmount would have settings that apply to 
'compute' preclude 'rackmount', which is probably more generic in nature.

nodels <noderange> table.column --blame

Will show how things turned out.

Note there is a way to do multiple inheritence, however I tend to avoid 
describing it as it's generally simpler to just make a third group.  Also, it's 
something I wasn't planning on carrying into confluent unless someone asked for 
it, as it adds some complexity to the cfg engine.

Going back to the query about 'starting over', if you wanted to test chain, 
then 'makedhcp -d <noderange>' would delete dhcp entries and you generally get 
to start over.  As mentioned, OS deployment is not considered a 'one time' sort 
of event, so no need to start over just for that.

-----Original Message-----

From: Thomas Hummel [mailto:[email protected]] 
Sent: Thursday, February 11, 2016 8:27 AM
To: [email protected]
Subject: Re: [xcat-user] 回复: New to xcat : stateless, genimage, postscripts, 
chain and groups



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

Reply via email to