what about supporting any hostname that is defined in the ipmi table, and
not necessarily <node>-bmc, or is this the limitation at the moment we are
trying to keep?


--
Arif Ali

catch me on freenode IRC, username: arif-ali


On 22 May 2013 16:05, Xiao Peng Wang <[email protected]> wrote:

>  Arif,
>
>    Now sequential discovery supports to use the otherinterfaces to set
>    the mapping of hostname and ip for bmc. You could try to use the latest
>    code of seqdiscovery.pm in the svn. Note: the prerequisite is the bmc
>    name only can be <node>-bmc.
>
>    BTW, xCAT tries to redefine the usage of otherinterfaces.
>       If you want to define a hostname mapping that not a real nic of
>       compute node (like bmc), use otherinterfaces.
>       If you want to define a real nic which will be configured on the
>       compute node by confignics postscripts, use nics table.
>
>
> Thanks
> Best Regards
> ----------------------------------------------------------------------
> Wang Xiaopeng (王晓朋)
> IBM China System Technology Laboratory
> Tel: 86-10-82453455
> Email: [email protected]
> Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road,
> Haidian District Beijing P.R.China 100193
>
> [image: Inactive hide details for Arif Ali ---2013/05/17 22:48:27---Hi
> Xiao, I appreciate your answers,]Arif Ali ---2013/05/17 22:48:27---Hi
> Xiao, I appreciate your answers,
>
>
> From: Arif Ali <[email protected]>
> To: <[email protected]>,
> Date: 2013/05/17 22:48
>
> Subject: Re: [xcat-user] sequential discovery issue
> ------------------------------
>
>
>
> Hi Xiao,
>
> I appreciate your answers,
>
> When I first started using xCAT, we used to do exactly this where we had
> the BMC of nodes in the nodelist table as well, and also assign them into
> hosts.ip, since the arrival of otherinterfaces in the hosts table, we
> didn't see the need for this, as the otherinterfaces was sufficient to do
> what we needed it to do, plus we can easily see with an lsdef of a node,
> and see what is related in terms of IPs.
>
> Are we now saying we go back to the old method in order for sequential
> discovery to work, i.e. I need to do the following commands
>
> nodeadd node001-node004 groups=compute
> nodeadd node001-bmc-node004-bmc groups=nodebmc
> chtab node="compute" hosts.ip="|\D+(\d+)|10.0.0.(\$1*1)|"
> chtab node="nodebmc" hosts.ip="|\D+(\d+)-bmc|10.0.1.(\$1*1)|"
>
> instead of
>
> nodeadd node001-node004 groups=compute
> chtab node="compute" hosts.ip="|\D+(\d+)|10.0.0.(\$1*1)|"
>  hosts.otherinterfaces="|(\D+(\d+))|(\$1)-bmc:10.0.1.(\$2*1)|"
>
> I would like to get feedback from other customers and providers on how
> they would do this?
>
> regards,
> *
> Arif Ali MBCS*
> Senior HPC Technical Architect
> OCF plc
>
> Tel: +44 (0)114 257 2200
> Mob: +44 (0)7970 148 122
> Fax: +44 (0)114 257 0022
> Web: *www.ocf.co.uk* <http://www.ocf.co.uk/>
> Blog: *blog.ocf.co.uk* <http://blog.ocf.co.uk/>
> Twitter: *@ocfplc* <http://twitter.com/#%21/ocfplc>
>
> Please note, any emails relating to an OCF Support request must always be
> sent to *[email protected]* <[email protected]> for a ticket number to be
> generated or existing support ticket to be updated. Should this not be done
> then OCF cannot be held responsible for requests not dealt with in a timely
> manner.
>
> OCF plc is a company registered in England and Wales. Registered number
> 4132533, VAT number GB 780 6803 14. Registered office address: OCF plc, 5
> Rotunda Business Centre, Thorncliffe Park, Chapeltown, Sheffield, S35 2PG.
>
> This message is private and confidential. If you have received this
> message in error, please notify us and remove it from your system.
> On 17/05/13 01:57, Xiao Peng Wang wrote:
>
>
>    Arif,
>
>       Several points to clarify:
>
>       1. hosts.otherinterfaces will be deprecated for outside using. That
>       means the definition of second interfaces for host will not use
>       hosts.otherinterfaces. But xCAT still uses it inside. Additionally, the
>       hosts table is still been using.
>       2. Mostly, the nics table should be used to configure the second
>       interfaces (that means not include the primary interface). Maybe someday
>       later, xCAT will support it completely. Even xCAT could support it, the
>       code logic is complicated.
>       3. Presently, the primary IP of host and BMC should be put in
>       host.ip.
>       4. Setting the IP of host (primary interface) and IP of BMC in the
>       host.ip is necessary for sequential discovery.
>
>    Thanks
>    Best Regards
>    ----------------------------------------------------------------------
>    Wang Xiaopeng (王晓朋)
>    IBM China System Technology Laboratory
>    Tel: 86-10-82453455
>    Email: *[email protected]* <[email protected]>
>    Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road,
>    Haidian District Beijing P.R.China 100193
>
>    [image: Inactive hide details for Arif Ali ---2013/05/16
>    22:58:42---Xiao, So from the docs et al, the otherinterfaces will be
>    deprecate]Arif Ali ---2013/05/16 22:58:42---Xiao, So from the docs et
>    al, the otherinterfaces will be deprecated, so
>
>    From: Arif Ali *<[email protected]>* <[email protected]>
>    To: *[email protected]* <[email protected]>,
>
>    Date: 2013/05/16 22:58
>    Subject: Re: [xcat-user] sequential discovery issue
>    ------------------------------
>
>
>
>    Xiao,
>
>    So from the docs et al, the otherinterfaces will be deprecated, so
>    started to use nics table since 2.8.
>
>    As part of the otherinterfaces in the hosts table allows me to
>    automatically create the hosts file, without having to do it manually, or
>    adding the nodes individually into the nodelist table. i.e. assign the ip
>    to the node, so that it is not cluttered.
>
>    In the same way, I grasped the idea to do the same thing with the nics
>    table, to not necessarily create the interface on the nodes itself, but to
>    automaticllay create the hosts table, and hence the named configuration
>
>    I would expect though that the discovery method to lookup a specific
>    value from the ipmi table, and cross check with the nics tables to see what
>    the IP address and and use that as part of the discovery process. correct
>    me if my assumption here on how it should work is wrong.
>
>    regards,
>    Arif
>
>    On 16/05/13 15:49, Xiao Peng Wang wrote:
>
>       Arif,
>
>          The nics table only can be used to configure the host, but can
>          NOT set the bmc. If you set the attribute nicips.bmc, that means
>          you should have interface named 'bmc' in the host, so that during 
> the boot
>          up of the node, confignics postscript will configure the interface 
> 'bmc'
>          base on the attribute values.
>       Guang Cheng,
>          Please correct me for the usage of nics table.
>
>       Thanks
>       Best Regards
>
>       ----------------------------------------------------------------------
>       Wang Xiaopeng (王晓朋)
>       IBM China System Technology Laboratory
>       Tel: 86-10-82453455
>       Email: *[email protected]* <[email protected]>
>       Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West
>       Road, Haidian District Beijing P.R.China 100193
>
>       [image: Inactive hide details for Arif Ali ---2013/05/16
>       22:30:42---Hi Xiao, If you look at the lsdef, you will see that I have 
> set
>       the]Arif Ali ---2013/05/16 22:30:42---Hi Xiao, If you look at the
>       lsdef, you will see that I have set the IP address of
>
>       From: Arif Ali *<[email protected]>* <[email protected]>
>       To: 
> *<[email protected]>*<[email protected]>,
>
>       Date: 2013/05/16 22:30
>       Subject: Re: [xcat-user] sequential discovery issue
>       ------------------------------
>
>
>
>       Hi Xiao,
>
>       If you look at the lsdef, you will see that I have set the IP
>       address of the bmc, or does the type need to be different?
>
>       # lsdef node001 | grep bmc
>       nichostnamesuffixes.bmc=-bmc
>       nicips.bmc=10.0.1.1
>       nicnetworks.bmc=xcat_nw
>       nictypes.bmc=ipmi
>
>
>       regards, *
>
>       Arif Ali MBCS*
>       Senior HPC Technical Architect
>       OCF plc
>
>       Tel: +44 (0)114 257 2200
>       Mob: +44 (0)7970 148 122
>       Fax: +44 (0)114 257 0022
>       Web: *www.ocf.co.uk* <http://www.ocf.co.uk/>
>       Blog: *blog.ocf.co.uk* <http://blog.ocf.co.uk/>
>       Twitter: *@ocfplc* <http://twitter.com/#%21/ocfplc>
>
>       Please note, any emails relating to an OCF Support request must
>       always be sent to *[email protected]* <[email protected]> for a
>       ticket number to be generated or existing support ticket to be updated.
>       Should this not be done then OCF cannot be held responsible for requests
>       not dealt with in a timely manner.
>
>       OCF plc is a company registered in England and Wales. Registered
>       number 4132533, VAT number GB 780 6803 14. Registered office address: 
> OCF
>       plc, 5 Rotunda Business Centre, Thorncliffe Park, Chapeltown, Sheffield,
>       S35 2PG.
>
>       This message is private and confidential. If you have received this
>       message in error, please notify us and remove it from your system.
>       On 16/05/13 15:24, Xiao Peng Wang wrote:
>
>          Arif,
>
>             I think the problem was you did not assign IP for the bmc.
>             The ip you set the in nics table only for the host. If you add 
> the entry in
>             the hosts table for the ip of bmc, it would work.
>
>          Thanks
>          Best Regards
>
>          
> ----------------------------------------------------------------------
>          Wang Xiaopeng (王晓朋)
>          IBM China System Technology Laboratory
>          Tel: 86-10-82453455
>          Email: *[email protected]* <[email protected]>
>          Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West
>          Road, Haidian District Beijing P.R.China 100193
>
>          [image: Inactive hide details for Arif Ali ---2013/05/15
>          20:51:33---Hi team, I am trying to get the sequential discovery 
> working on
>          a 4]Arif Ali ---2013/05/15 20:51:33---Hi team, I am trying to
>          get the sequential discovery working on a 4 node cluster,
>
>          From: Arif Ali *<[email protected]>* <[email protected]>
>          To: 
> *<[email protected]>*<[email protected]>,
>
>          Date: 2013/05/15 20:51
>          Subject: [xcat-user] sequential discovery issue
>          ------------------------------
>
>
>
>          Hi team,
>
>          I am trying to get the sequential discovery working on a 4 node
>          cluster, and I am struggling to get passed the following error 
> message, and
>          trying to understand where I am going wrong
>
>          May 15 15:46:09 mgmt1 xCAT: xcatd: Processing discovery request
>          from 10.0.0.101
>          May 15 15:46:09 mgmt1 xCAT: Sequential Discovery: Processing
>          May 15 15:46:10 mgmt1 xCAT: Sequential Discovery: Auto Stopped
>          because all bmc ips in the specified range have been assigned to 
> discovered
>          nodes. Run 'nodediscoverls -t seq' to display the discovery result.
>
>          I started the discover by running the following command
>
>          # nodediscoverstart noderange=node00[1-4]
>
>          Below is my definition of the node itself.
>
>          # lsdef node001
>          Object name: node001
>          bmc=node001-bmc
>          chain=runcmd=bmcsetup,shell
>          cons=ipmi
>          groups=compute,ipmi
>          ip=10.0.0.1
>          mgt=ipmi
>          netboot=xnba
>          nichostnamesuffixes.bmc=-bmc
>          nichostnamesuffixes.ib0=-ib0
>          nicips.bmc=10.0.1.1
>          nicips.ib0=10.0.2.1
>          nicnetworks.bmc=xcat_nw
>          nicnetworks.ib0=xcat_ib
>          nictypes.bmc=ipmi
>          nictypes.ib0=infiniband
>          ondiscover=nodediscover
>          postbootscripts=otherpkgs
>          postscripts=syslog,remoteshell,syncfiles
>          power=ipmi
>          serialport=0
>          serialspeed=19200
>
>          I would expect xCAT to grab the IP from the defined IPs in the
>          nics table, and assign this IP.
>
>          I have then since realised, the following command works
>
>          # nodediscoverstart noderange=node00[1-4] groups=compute,ipmi
>          bmciprange=10.0.1.1-10.0.1.4
>
>          Which is I think inefficient, especially everything is already
>          defined in the xCAT database
>
>          --
>          regards, *
>
>          Arif Ali MBCS*
>          Senior HPC Technical Architect
>          OCF plc
>
>          Tel: +44 (0)114 257 2200
>          Mob: +44 (0)7970 148 122
>          Fax: +44 (0)114 257 0022
>          Web: *www.ocf.co.uk* <http://www.ocf.co.uk/>
>          Blog: *blog.ocf.co.uk* <http://blog.ocf.co.uk/>
>          Twitter: *@ocfplc* <http://twitter.com/#%21/ocfplc>
>
>          Please note, any emails relating to an OCF Support request must
>          always be sent to *[email protected]* <[email protected]> for a
>          ticket number to be generated or existing support ticket to be 
> updated.
>          Should this not be done then OCF cannot be held responsible for 
> requests
>          not dealt with in a timely manner.
>
>          OCF plc is a company registered in England and Wales. Registered
>          number 4132533, VAT number GB 780 6803 14. Registered office 
> address: OCF
>          plc, 5 Rotunda Business Centre, Thorncliffe Park, Chapeltown, 
> Sheffield,
>          S35 2PG.
>
>          This message is private and confidential. If you have received
>          this message in error, please notify us and remove it from your 
> system. [附件
>          "aali.vcf" 被 Xiao Peng Wang/China/IBM 删除]
>          
> ------------------------------------------------------------------------------
>          AlienVault Unified Security Management (USM) platform delivers
>          complete
>          security visibility with the essential security capabilities.
>          Easily and
>          efficiently configure, manage, and operate all of your security
>          controls
>          from a single console and one unified framework. Download a free
>          trial.*
>          
> **http://p.sf.net/sfu/alienvault_d2d*<http://p.sf.net/sfu/alienvault_d2d>
>          _______________________________________________
>          xCAT-user mailing list*
>          **[email protected]*<[email protected]>
>          *
>          
> **https://lists.sourceforge.net/lists/listinfo/xcat-user*<https://lists.sourceforge.net/lists/listinfo/xcat-user>
>
>       [附件 "aali.vcf" 被 Xiao Peng Wang/China/IBM 删除]
>       
> ------------------------------------------------------------------------------
>       AlienVault Unified Security Management (USM) platform delivers
>       complete
>       security visibility with the essential security capabilities.
>       Easily and
>       efficiently configure, manage, and operate all of your security
>       controls
>       from a single console and one unified framework. Download a free
>       trial.*
>       
> **http://p.sf.net/sfu/alienvault_d2d*<http://p.sf.net/sfu/alienvault_d2d>
>       _______________________________________________
>       xCAT-user mailing list*
>       **[email protected]* <[email protected]>
>       *
>       
> **https://lists.sourceforge.net/lists/listinfo/xcat-user*<https://lists.sourceforge.net/lists/listinfo/xcat-user>
>
>
>
>
>       
> ------------------------------------------------------------------------------
>       AlienVault Unified Security Management (USM) platform delivers
>       complete
>       security visibility with the essential security capabilities.
>       Easily and
>       efficiently configure, manage, and operate all of your security
>       controls
>       from a single console and one unified framework. Download a free
>       trial.*
>       
> **http://p.sf.net/sfu/alienvault_d2d*<http://p.sf.net/sfu/alienvault_d2d>
>
>
>       _______________________________________________
>       xCAT-user mailing list*
>       **[email protected]* <[email protected]>
>       *
>       
> **https://lists.sourceforge.net/lists/listinfo/xcat-user*<https://lists.sourceforge.net/lists/listinfo/xcat-user>
>
>    
> ------------------------------------------------------------------------------
>    AlienVault Unified Security Management (USM) platform delivers complete
>    security visibility with the essential security capabilities. Easily
>    and
>    efficiently configure, manage, and operate all of your security
>    controls
>    from a single console and one unified framework. Download a free trial.
>    *
>    **http://p.sf.net/sfu/alienvault_d2d*<http://p.sf.net/sfu/alienvault_d2d>
>    _______________________________________________
>    xCAT-user mailing list*
>    **[email protected]* <[email protected]>*
>    
> **https://lists.sourceforge.net/lists/listinfo/xcat-user*<https://lists.sourceforge.net/lists/listinfo/xcat-user>
>
> [附件 "aali.vcf" 被 Xiao Peng Wang/China/IBM 删除]
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> xCAT-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> xCAT-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to