Hi All,

We have the following design to resolve user hostnames solution in xCAT,
may realize it in future, could you check if the following design can
resolve your user hostnames problem?
Welcome any comments from you.

Feature:
Add one new column into `hosts` table, for example, named `customhostname`.
User can add their expected user hostnames into this column for nodes. If
set the value of this column, xCAT will configure final system hostname the
same with this value.


Take the following example to explain the design.
node name is computenode1 in xCAT DB, user wants its user hostname is
publichostname after the node is provisioned.

   In xCAT MN, hosts table as:
   #tabdump hosts
   #node,ip,hostnames,customhostname,otherinterfaces,comments,disable
   "computenode1",,,"publichostname",,,


   After the computenode1 is provisioned, using xdsh to check the hostname
   of the node, it can get publichostname

   #xdsh computenode1 hostname
   publichostname

Best Regards
--------------------------------------------------
Yuan Bai (白媛)

CSTL HPC System Management Development
Tel:86-10-82451401
E-mail: by...@cn.ibm.com
Address: IBM ZGC Campus. Ring Building 28,
         ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian
District,
         Beijing P.R.China 100193

IBM环宇大厦
北京市海淀区东北旺西路8号,中关村软件园28号楼
邮编:100193



From:   Christian Caruthers <ccaruth...@lenovo.com>
To:     xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Date:   08/22/2017 09:15 AM
Subject:        Re: [xcat-user] Setting user hostnames



I agree, I don't think it is supported. I think I can make it work using
the solution I outlined, but that doesn't appear to be working according to
the documentation.

Looking for verification of what I'm trying to do, confirmation that the
envlist files are still parsed (it appears they are), and/or suggestions.

Regards,
Christian Caruthers
Lenovo Professional Services
Mobile: 757-289-9872
Sent from my mobile device




On Mon, Aug 21, 2017 at 5:58 PM -0500, "Kevin Keane" <kke...@sandiego.edu>
wrote:

  The way I read it, this was a design suggestion for a future version of
  xCAT; it is described as a low-priority item. It may not yet be
  implemented.

  On Mon, Aug 21, 2017 at 3:42 PM, Christian Caruthers <
  ccaruth...@lenovo.com> wrote:
   Using this as a reference:





   https://sourceforge.net/p/xcat/wiki/Exporting_more_table_attributes_to_nodes/





   Currently, we have n1…n10 configured in xCAT. These are internal
   hostnames. All of these hosts have external "public" IP addresses, and
   the desire is to have the hosname match the public name.





   Short of setting up DNS for the public IPs, which I really don't want to
   do since there will be an external DNS server w/ that info, I thought I
   could use an unused table.field (prodkey.key) for a <profile>.envlist
   file. So I have:





   ls -la /install/custom/install/rh/x86_84/chum.envlist


   prodkey,key,,NEWHOST





   (NOTE: I have also tried this in /install/custom/install/rh/)





   lsdef n1 | egrep 'profile|post|productkey'


   postbootscripts=<snip>,chumhostname


   productkey=rabidgator1.floridaman.arrr.edu


   profile=chum





   cat /install/postscripts/chumhostname


   hostnamectl set-hostname $NEWHOST





   When I try this with updatenode, it doesn't appear to be grabbing the
   info from that envlist file. Is this feature still in use? If not,
   what's a recommended way to set a different hostname?





   Regards,
   Christian Caruthers
   Lenovo Professional Services


   Mobile: 757-289-9872

   
------------------------------------------------------------------------------

   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




  --


  _______________________________________________________________________
  Kevin Keane | Systems Architect | University of San Diego ITS |
  kke...@sandiego.edu
  Maher Hall, 192 |5998 Alcalá Park | San Diego, CA 92110-2492 |
  619.260.6859
  ------------------------------------------------------------------------------

  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=uiTcPxjMR44SPRNNb6l_nA&m=3ItVZCNQ0X4APLmp_G7FTo9vyhX_fwg0aZShIEuC4PU&s=bLKPxWs9RJL_PmDZIDi0IbDnqFH9ZfY89QaAMkQ1v-M&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=uiTcPxjMR44SPRNNb6l_nA&m=3ItVZCNQ0X4APLmp_G7FTo9vyhX_fwg0aZShIEuC4PU&s=agiOtffNnVigh3hLsaOsd6BvS3u-LOr813lKfctyGKU&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

Reply via email to