Two things you can try:

1. On your compute node, run following two commands to see whether you can
get correct key from xCAT management node
   /xcatpost/allowcred.awk &
   USEOPENSSLFORXCAT=1 XCATSERVER=<your management
   node>:3001 /xcatpost/getcredentials.awk ssh_root_key

2. On your xCAT management node
   Edit file /install/postscripts/xcatdsklspost to add a debug option at
   beginning of the shell file. (set -x)
   Then run updatenode <node> again and send out the output.

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



From:   Jestin Woods <[email protected]>
To:     xCAT Users Mailing list <[email protected]>
Date:   2015/04/03 01:55
Subject:        Re: [xcat-user] updatenode hangs on remoteshell



Thanks. I ran updatenode -s and it did add the xcatserver, however, the
remoteshell script is still hanging. Here's what my xcatinfo looks like
now:

# cat /opt/xcat/xcatinfo
NODE=dicv00051
XCATSERVER=10.5.19.11
USEFLOWCONTROL=YES
REBOOT=TRUE
RUNBOOTSCRIPTS=NO

And on the node, still waiting for something to happen:

# ps -ef | grep xcat
root      1569  1522  0 10:24 ?        00:00:00 tee
-a /var/log/xcat/xcat.log
root      1582     1  0 10:24 ?        00:00:00 /usr/bin/awk
-f //xcatpost/allowcred.awk
root      1643  1622  0 10:45 pts/0    00:00:00 grep xcat

# tail /var/log/xcat/xcat.log
Thu Apr  2 10:24:06 PDT 2015 Running postscript: setuppostbootscripts
Postscript: setuppostbootscripts exited with code 0
Thu Apr  2 10:24:08 PDT 2015 Running postscript: syslog
Shutting down system logger: [  OK  ]
Starting system logger: [  OK  ]
Postscript: syslog exited with code 0
Thu Apr  2 10:24:08 PDT 2015 Running postscript: remoteshell


On Thu, Apr 2, 2015 at 12:48 AM, Xiao Peng Wang <[email protected]> wrote:
  I think it because of missing the file /opt/xcat/xcatinfo in your compute
  node. You can try to set the server by the '-s' option of updatenode. The
  format can be: 'ip_of_master:3001'

  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

  Inactive hide details for Jestin Woods ---2015/04/02 02:32:18---I'm
  having problems running updatenode on a node that was proviJestin Woods
  ---2015/04/02 02:32:18---I'm having problems running updatenode on a node
  that was provisioned outside of xcat (via a clone o

  From: Jestin Woods <[email protected]>
  To: xCAT Users Mailing list <[email protected]>
  Date: 2015/04/02 02:32
  Subject: [xcat-user] updatenode hangs on remoteshell




  I'm having problems running updatenode on a node that was provisioned
  outside of xcat (via a clone operation). It seems all my postscripts are
  running fine with the exception of remoteshell.

  When I run the updatenode <node> -P remoteshell command, it hangs
  indefinitely. It looks like the bit that is hanging
  is getcredentials.awk. It seems the getcredentials.awk script is hanging
  because it does not have the XCATSERVER environment variable set.

  I would appreciate it if anyone has advice as to what may be causing
  this.

  Here are some details about the node:

  (After waiting some time)

  # cat /var/log/xcat/xcat.log
  Wed Apr  1 11:17:38 PDT 2015 Running postscript: syslog
  Shutting down system logger: [  OK  ]
  Starting system logger: [  OK  ]
  Postscript: syslog exited with code 0
  Wed Apr  1 11:17:38 PDT 2015 Running postscript: remoteshell

  While I'm waiting, I see this script executing:

  # ps -ef | grep xcat
  root      1415  1368  0 11:17 ?        00:00:00 tee
  -a /var/log/xcat/xcat.log
  root      1428     1  0 11:17 ?        00:00:00 /usr/bin/awk
  -f //xcatpost/allowcred.awk
  root      1485  1464  0 11:24 pts/0    00:00:00 grep xcat

  # cat /opt/xcat/xcatinfo
  NODE=dicv00066
  USEFLOWCONTROL=YES

  And on the xcat server itself:

  # ps -ef | grep updatenode
  root     10883 14961  0 18:27 pts/5    00:00:00 grep updatenode
  collins  30848 30847  0 18:17 pts/19   00:00:00
  perl /opt/xcat/bin/updatenode dicv00066 -P
  root     30867  9725  0 18:17 ?        00:00:00 xCATd SSL: updatenode to
  dicv00066 for collins@localhost
  root     30868 30867  0 18:17 ?        00:00:00 xCATd SSL: updatenode to
  dicv00066 for collins@localhost: updatenode instance: xdsh instance

  # tabdump site|grep precreatemypostscripts
  (returns nothing)

  # lsdef dicv00066
  Object name: dicv00066
      arch=x86_64
      groups=puppet-infra-jcadev,vmware,provisioned,puppet,all
      hostnames=dicv00066.jcadev.eng.jiveland.com
      ip=10.6.64.89
      mac=00:50:56:a9:37:48
      mgt=esx
      os=rhels6
      postbootscripts=otherpkgs

  
postscripts=syslog,remoteshell,syncfiles,expand_disk,setnameservers,sethostname,hardeths,setupntp,jive_bootstrap_puppet

      updatestatus=syncing
      updatestatustime=04-01-2015 18:17:36
      vmhost=pdx2esx24
      xcatmaster=10.5.19.11

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

  Dive into the World of Parallel Programming The Go Parallel Website,
  sponsored
  by Intel and developed in partnership with Slashdot Media, is your hub
  for all
  things parallel software development, from weekly thought leadership
  blogs to
  news, videos, case studies, tutorials and more. Take a look and join the
  conversation now. http://goparallel.sourceforge.net/
  _______________________________________________
  xCAT-user mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/xcat-user


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

  Dive into the World of Parallel Programming The Go Parallel Website,
  sponsored
  by Intel and developed in partnership with Slashdot Media, is your hub
  for all
  things parallel software development, from weekly thought leadership
  blogs to
  news, videos, case studies, tutorials and more. Take a look and join the
  conversation now. http://goparallel.sourceforge.net/
  _______________________________________________
  xCAT-user mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/xcat-user

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

Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to