Menu

#3398 updatenode -P fails if hostname on the node is FQDN

2.8.1
closed
Ling
updatenode (33)
7
2013-04-03
2013-03-01
No

If the hostname on the node has the doamin name then xcatdsklstpost tries to get the wrong mypostscript file.

From the wget.log
--2013-03-01 11:24:28-- http://9.114.47.250/tftpboot/mypostscripts/mypostscript.rra000-m.pok.ibm.com.tmp
Connecting to 9.114.47.250:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-03-01 11:24:28 ERROR 404: Not Found.

Note the file is actually --2013-03-01 11:24:28-- http://9.114.47.250/tftpboot/mypostscripts/mypostscript.rra000-m.tmp

I guess my suggestion is we check for a FQDN and strip the domain.
In xcatdsklspost
node=hostname <-- need to take out domain use hostname --short
max_retries=2
postfix=0
download_mypostscript $SIP $node $postfix $max_retries $TFTPDIR

Discussion

  • Lissa Valletta

    Lissa Valletta - 2013-03-01

    Looks like xcataixpost is ok

    $::shorthost = hostname -s;
    chomp $::shorthost;

     

    Last edit: Lissa Valletta 2013-03-01
  • Lissa Valletta

    Lissa Valletta - 2013-03-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,7 +10,7 @@
    
     I guess my suggestion is we check for a FQDN and strip the domain.  
     In xcatdsklspost
    -node=`hostname`  <-- need to take out domain
    +node=`hostname`  <-- need to take out domain  use `hostname --short`
     max_retries=2
     postfix=0
     download_mypostscript $SIP $node $postfix $max_retries $TFTPDIR
    
    • assigned_to: jjh --> Lissa Valletta
     
  • Lissa Valletta

    Lissa Valletta - 2013-03-01

    check in to trunk
    revision 15343
    2.8.1

    revision 15344

     
  • Lissa Valletta

    Lissa Valletta - 2013-03-01

    I also notice if the hostname in the nodelist table is FQDN, then I get no mypostscript file built under /tftpboot/mypostscripts directory when I run updatenode and I assume that would also happen on install. This needs to be fixed but I think most customers put short names in the nodelist.

     
  • Lissa Valletta

    Lissa Valletta - 2013-03-01

    This xcatdsklspost file is for the xCAT 2.8 GA install and replaces on the Management node and any service nodes.
    /install/postscripts/xcatdsklspost

    Also provided is a patch file, if you would prefer to patch. Copy the xcatdsklspost.patch to /install/postscripts
    cd /install/postscripts
    patch -b -p0 xcatdsklspost xcatdsklspost.patch

     

    Last edit: Lissa Valletta 2013-03-02
  • Lissa Valletta

    Lissa Valletta - 2013-03-04

    A new change to xcatdsklspost needs to be made to replace my fix.
    We need to add the nodename from he nodelist added to the xcatinfo file on the node.
    Then xcatdsklspost will check
    /opt/xcat/xcatinfo
    if not there
    check dhcp
    if not there
    check hostname
    If long hostname check for both short and long hostname in the file name.

     
  • Lissa Valletta

    Lissa Valletta - 2013-03-04
    • assigned_to: Lissa Valletta --> Ling
     
  • Ling

    Ling - 2013-03-04

    Files commited:
    xCAT/postscripts/xcatdsklspost
    xCAT-server/share/xcat/install/scripts/post.debian
    xCAT-server/share/xcat/install/scripts/post.rhel5.s390x
    xCAT-server/share/xcat/install/scripts/post.rhel6.s390x
    xCAT-server/share/xcat/install/scripts/post.sles10.s390x
    xCAT-server/share/xcat/install/scripts/post.sles11.s390x
    xCAT-server/share/xcat/install/scripts/post.ubuntu
    xCAT-server/share/xcat/install/scripts/post.xcat

    Checked in the fix in trunk with revision 15379.

     

    Last edit: Ling 2013-03-04
  • Ling

    Ling - 2013-03-04

    Does it need to be fixed in xCAT 2.8.1? The code is in critical path, just want to make sure if we are willing to take the risk or not.

     

    Last edit: Ling 2013-03-04
  • Lissa Valletta

    Lissa Valletta - 2013-03-05

    yes I believe this is a 2.8.1 must fix. A lot of fixes and new function are going into 2.8.1. It is not the emergency stream anymore for PCM since we have the 2.8pcm stream now to support that.

     

    Last edit: Lissa Valletta 2013-03-05
  • Lissa Valletta

    Lissa Valletta - 2013-03-05

    There will no support to putting long hostnames in the database until 2.9.
    https://sourceforge.net/p/xcat/bugs/2048/

     
  • Ling

    Ling - 2013-03-06

    Fixed in trunk with revision 15379 and 15400.
    Fixed in 2.8.1 with revision 15401.

     
  • Ling

    Ling - 2013-03-06
    • status: open --> pending
     
  • Lissa Valletta

    Lissa Valletta - 2013-04-03
    • status: pending --> closed
     
MongoDB Logo MongoDB