Brad,
I think the short answer is that xCAT cannot do what you want in this case.
But just so that I am understanding correctly, can you clarify what you
mean by "template"?

In your hosts table entry, you have:

"login-ib0","|\D+(\d+).*$|172.40.5.($1-0)|",,"Login nodes IB interface",,

The key to a hosts entry is an xCAT node, which can be a node name or a
nodegroup to represent many nodes.  In your entry, the "login-ib0" would
need to refer to an xCAT nodegroup, for which you would then have nodes
defined.  So,
   lsdef login-ib0 -s

would include in its output 'login1-ib0'.  But, typically, you would not
define an IB interface as your xCAT nodename.  It sounds like you have
correctly defined node login1, assigned to nodegroup login (based on the
ethernet interface to the node).

I think instead of login-ib0, as a separate entry in your hosts table, you
may want to set your hosts:otherinterfaces attribute for the ib0 interface:
   "login","|\D+(\d+).*$|172.20.5.($1-0)|",,"|\D+(\d
   +).*$|-ib0:172.40.5.($1-0)|","Login nodes

This would give you:
   # lsdef login1 -i ip,otherinterfaces
   Object name: login1
       ip=172.20.5.1
       otherinterfaces=-ib0:172.40.5.1

And, I'm pretty sure makehosts and makedns will work correctly with those
values.

Then in your kickstart .tmpl file, you can reference that attr, but will
need to run it through sed to strip off the leading '-ib0:' string before
you get the value you need:
   ibaddr=`echo #TABLE:hosts:THISNODE:otherinterfaces#  | sed -e
's/-ib0://g'`



Linda



From:   "Viviano, Brad" <[email protected]>
To:     xCAT Users Mailing list <[email protected]>,
Date:   12/27/2013 10:28 AM
Subject:        Re: [xcat-user] Expanding template information in node
            kickstart.



Lissa,
    I have and I could do something similar, to split apart the IP address
based on a host entry like that script does, but I was hoping for a more
elegant solution.  I guess I am asking a more general question.  Is there a
method in xCAT 2.8.3 so I can expand templates, from within the kickstart
during the nodeset.

If I do this:

    #TABLE:hosts:THISNODE:ip#

It gives me the boot IP Address of this host, based on the template:

    "login","|\D+(\d+).*$|172.20.5.($1-0)|",,"Login nodes compute
interface",,

So, how do I do the same, but for a different template.  I've tried this,
but it throws an error:

#TABLE:hosts:node=#TABLE:hosts:THISNODE:node#-ib0:ip#

but works if I have an entry in the hosts table for that specific node:

"login1-ib0","172.40.5.1",,,,

So, can I expand template "login-ib0" for host "login1" and get the answer
to what it would be.  I know the template is correct, /etc/hosts and DNS
have the entry.  So, the real question is, can I expand an xCAT template,
with arbitrary input, inside the nodeset kickstart.

    Thanks,
        -Brad



===================================================
Brad Viviano
High Performance Computing & Scientific Visualization
Lockheed Martin, Supporting the EPA
Research Triangle Park, NC
919-541-2696

HSCSS Task Order Lead - Ravi Nair
919-541-5467 - [email protected]
High Performance Computing Subtask Lead - Durward Jones
919-541-5043 - [email protected]
Environmental Modeling and Visualization Lead - Heidi Paulsen
919-541-1834 - [email protected]




From: Lissa Valletta <[email protected]>
Sent: Friday, December 27, 2013 10:01 AM
To: xCAT Users Mailing list
Cc: xCAT Users Mailing list
Subject: Re: [xcat-user] Expanding template information in node kickstart.

Have you looked at this doc?
http://pubads.g.doubleclick.net/apps/mediawiki/xcat/index.php?title=Managing_the_Mellanox_Infiniband_Network



Lissa K. Valletta
8-3/B10
Poughkeepsie, NY 12601
(tie 293) 433-3102



Inactive hide details for "Viviano, Brad" ---12/27/2013 09:46:13
AM---Hello,     I've looked through the WIKI and can't seem to"Viviano,
Brad" ---12/27/2013 09:46:13 AM---Hello,     I've looked through the WIKI
and can't seem to find this answer.  I have this template de

From: "Viviano, Brad" <[email protected]>
To: xCAT Users Mailing list <[email protected]>,
Date: 12/27/2013 09:46 AM
Subject: [xcat-user] Expanding template information in node kickstart.





Hello,
   I've looked through the WIKI and can't seem to find this answer.  I have
this template defined in the hosts table:

"login-ib0","|\D+(\d+).*$|172.40.5.($1-0)|",,"Login nodes IB interface",,

Makehosts/makedns works fine, so I know the template is correct.  I am
trying to, during the install process get it to automatically create the
ifcfg-ib0 interface based on that:

/bin/cat > /etc/sysconfig/network-scripts/ifcfg-ib0 << EOF
DEVICE="ib0"
BOOTPROTO="static"
IPADDR=
NETMASK="#TABLE:networks:netname=ib:mask#"
ONBOOT="yes"
IPV6INIT="no"
EOF

Problem is, I don't know how to expand the "login-ib0" template to have it
build the correct IP address.

If I put

IPADDR="#TABLE:hosts:node=#TABLE:hosts:THISHOST:node#:ip#"

it creates it as

IPADDR="|\D+(\d+).*$|172.20.5.($1-0)|"

I'm guessing I need another directive around the above to tell it to expand
the template and compute the correct IP address based on that.  But I can't
find docs on the WIKI that explains how to do that.  Can anyone point me at
a page that gives more details.

    Thanks,
        -Brad Viviano
===================================================
Brad Viviano
High Performance Computing & Scientific Visualization
Lockheed Martin, Supporting the EPA
Research Triangle Park, NC
919-541-2696

HSCSS Task Order Lead - Ravi Nair
919-541-5467 - [email protected]
High Performance Computing Subtask Lead - Durward Jones
919-541-5043 - [email protected]
Environmental Modeling and Visualization Lead - Heidi Paulsen
919-541-1834 - [email protected]
------------------------------------------------------------------------------

Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------

Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

<<inline: graycol.gif>>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to