I just took a look at the code in /opt/xcat/lib/perl/xCAT/Template.pm:
tabdb that handles the table attr substitutions in templates, and it is not
smart enough to handle this type of attribute. It can only handle simple
attribute substitution like
IPADDR="TABLE:nics:$NODE:nicips#
Since the full nics.nicips attribute is really a comma-delimited string of
the different nic ips, the code does not have the logic to parse out a
single value from that string and does not know how to figure out
"nicips.ib0".
I have opened a defect to handle this case:
https://sourceforge.net/p/xcat/bugs/4200/
but we probably won't be able to get to it before xCAT 2.9 timeframe.
Sorry about that. For now it is a limitation in our table attribute
substition support.
Linda
From: Jonathan Mills <[email protected]>
To: xCAT Users Mailing list <[email protected]>
Date: 07/09/2014 02:17 AM
Subject: [xcat-user] Trouble accessing nicips.<nicname> sub attributes
Hello,
I've got a pretty simple xCAT template macro like so:
IPADDR="TABLE:nics:$NODE:nicips.ib0#
When I run 'nodeset' I get ugly output like
nodeset compute-7-28 osimage=centos-x86_64-install-compute
compute-7-28: Error: Unable to find requested nicips.ib0 from nics, with
node=compute-7-28
Error: Some nodes failed to set up install resources on server hatteras,
aborting
The entry for this node in my 'nics' table looks like:
"compute-7-28","ib0!10.4.31.2,em1!10.4.15.2","ib0!.ib",,"ib0!Infiniband,em1!Ethernet",,"ib0!infiniband,em1!kickstart",,,
Problem is consistent for any node name -- just using compute-7-28 as an
example.
Also, an `lsdef` shows that xCAT is in no way confused about the entries
in my nics table:
# lsdef compute-7-28
Object name: compute-7-28
...
nichostnamesuffixes.ib0=.ib
nicips.ib0=10.4.31.2
nicips.em1=10.4.15.2
nicnetworks.ib0=infiniband
nicnetworks.em1=kickstart
nictypes.ib0=Infiniband
nictypes.em1=Ethernet
...
I'm confused about how to get at the IP address for this infiniband
interface via the nics table from a kickstart template macro. Other
similar macros seem to work fine. My only suspicion is that perhaps I'm
not handling the sub-attribute in the right way, syntax-wise. Any ideas?
--
Jonathan Mills
Systems Administrator
Renaissance Computing Institute
UNC-Chapel Hill
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user