Hi, Keith:
http://xcat-docs.readthedocs.io/en/stable/guides/admin-guides/manage_clusters/common/deployment/prepostscripts/post_script.html
I don't think that docs have a lots of examples. anyway, you can create
some fake node group and nodes to check some behaviors.
-p options is for append, without -p, it will overwrites the postscripts
# mkdef test1 groups=test
1 object definitions have been created or modified.
# lsdef test1
Object name: test1
groups=test
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles
# chdef -t group test postscripts=a,b,c
1 object definitions have been created or modified.
# lsdef test1
Object name: test1
groups=test
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles,a,b,c
# mkdef test2 groups=test
1 object definitions have been created or modified.
# lsdef test2
Object name: test2
groups=test
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles,a,b,c
# chdef test2 -p postscripts=d,e
1 object definitions have been created or modified.
# lsdef test2
Object name: test2
groups=test
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles,a,b,c,d,e
# chdef test2 postscripts=d,e
1 object definitions have been created or modified.
# lsdef test2
Object name: test2
groups=test
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles,d,e
# chdef -t group test postscripts=e,f
1 object definitions have been created or modified.
# lsdef test2
Object name: test2
groups=test
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles,d,e
# lsdef -t group test
Object name: test
members=test1,test2
postscripts=e,f
for any node attribute, you can create a group.
# lsdef -t group disco
Object name: disco
bmc=|\D+(\d+)\D+(\d+)|50.($1*1).($2*1).1|
bmcvlantag=551
chain=runcmd=bmcsetup,osimage=rhels7.3-GA-ppc64le-install-compute
cons=ipmi
grouptype=static
installnic=mac
# chdef test1 -p groups=disco
1 object definitions have been created or modified.
# lsdef test1
Object name: test1
bmc=test1
bmcvlantag=551
chain=runcmd=bmcsetup,osimage=rhels7.3-GA-ppc64le-install-compute
cons=ipmi
groups=test,disco
installnic=mac
ip=test1
mgt=ipmi
netboot=petitboot
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles,d,e
node-specific setting will always override the node group.
Thanks,
Casandra
...................................................................
Casandra Hong Qiu
Phone: (845) 433-9291, t/l 293-9291
Office: Building 8, 3-B-04
cxh...@us.ibm.com
From: Keith Ball <kb...@redlineperf.com>
To: xcat-user@lists.sourceforge.net
Date: 11/09/2017 09:46 AM
Subject: [xcat-user] Precedence of definitions in xcat database: node
vs. node group
Hello All,
I have not found any xcat documentation on the following:
1.) Let's say I have a "compute" node group entry in the postscripts table,
with a set of postscripts "a,b,c" defined (and possible postbootscripts).
If I want to change this for just one node in the "compute" node group
(e.g. compute01), so that just "a,b", or just "d,e" are run (in addition to
any specified in "xcatdefaults"), what happens?
- Do the node-specific settings override, or append to what's set in the
node group?
- In either case, is the behavior well-defined, or does it depend on the
order in which the node group vs. node entry occur in the "postscripts"
table?
- What if we have records in the postscripts for two overlapping node
groups (a node is in both groups); what happens then?
2.) More generally (e.g. other tables like ipmi), is there a good way to
make node-specific exceptions to node group settings, or does one just have
to avoid using node group-based definitions completely (and define e.g.
ipmi settings for every node separately)?
Many Thanks,
Keith
--
Keith D. Ball, PhD
RedLine Performance Solutions, LLC
web: http://www.redlineperf.com/
email: kb...@redlineperf.com
cell: 540-557-7851
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=n1LR_Py9TQX0dVqfGTbLHUMGx25-C8VtBDS0nCzyNXY&m=jjl8Q80ZNJdu1Q0oodfUzpQwwy1hX3SabKDrUw_O2eU&s=kdfx0zl5fmjPQ2R_UQjjiJzZZNvaVcecikXrurDVUf8&e=
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_xcat-2Duser&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=n1LR_Py9TQX0dVqfGTbLHUMGx25-C8VtBDS0nCzyNXY&m=jjl8Q80ZNJdu1Q0oodfUzpQwwy1hX3SabKDrUw_O2eU&s=Z6fsgFec7TgtQk5_mSixVE6z5PIPYtMjyyYt-FAB_WY&e=
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user