Hello,
When the server is booted up, the scripts are in the expected location in
/xcatpost.
The allowcred.awk script runs with “./allowcred.awk &” successfully and I see
with netstat that port 300 is listening on the server.
When I run the getcredentials.awk all that happens is that empty lines are
continuously printed.
Is this expected behavior for this script? My reading of the script makes me
think there should at least be some sort of text displayed when the
communication is opened. Running the command with the ssh_rsa_hostkey input as
in the remoteshell script does not create any different output.
Thank you,
-----------------------
Jonathan Casco
From: Song BJ Yang <yang...@cn.ibm.com>
Reply-To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Date: Monday, August 27, 2018 at 3:43 AM
To: "xcat-user@lists.sourceforge.net" <xcat-user@lists.sourceforge.net>
Cc: "xcat-user@lists.sourceforge.net" <xcat-user@lists.sourceforge.net>
Subject: Re: [xcat-user] remoteshell postscript failing on new CentOS 7.5 image
Hi,
Please ssh the booted up compute node with password and "cd /xcatpost"
then make sure the scripts allowcred.awk and getcredentials.awk are there and
you can run them.
the shebang of these scripts is "/usr/bin/awk", so please make sure the awk
path is ok
------------------------------------------------------------------------------
YANG Song (杨嵩)
IBM China System Technology Laboratory
Tel: 86-10-82452903
Email: yang...@cn.ibm.com
Address: Building 28, ZhongGuanCun Software Park,
No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC
北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193
----- Original message -----
From: Jonathan Casco <jca...@fiu.edu>
To: Russell Auld <russa...@comcast.net>, xCAT Users Mailing list
<xcat-user@lists.sourceforge.net>
Cc:
Subject: Re: [xcat-user] remoteshell postscript failing on new CentOS 7.5 image
Date: Thu, Aug 23, 2018 9:07 PM
Hello,
The awk and gawk packages are loaded into the image and in the same location as
expected in the awk scripts. The scripts are also executable and do not have
Windows line endings.
The scripts also exist in “/install/postscripts” on the MN and reviewing the
apache logs I do see the scripts being downloaded successfully.
I tried editing the scripts to point to /usr/bin/gawk but got the same result
so this is an odd issue to run into.
Thank you,
-----------------------
Jonathan Casco
HPC System Administrator
From: Russell Auld <russa...@comcast.net>
Reply-To: Russell Auld <russa...@comcast.net>
Date: Thursday, August 23, 2018 at 7:05 AM
To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>, Jonathan Casco
<jca...@fiu.edu>
Subject: Re: [xcat-user] remoteshell postscript failing on new CentOS 7.5 image
Please ensure that "awk" is installed and located at the location called for by
the first line of those scripts.
Check the package list that you're using in your OS image and explicitly add
"gawk.x86_64".
Sometimes dependencies change and things that used to get implicitly installed
are no longer installed.
If that's ok, ensure that /usr/bin/awk is executable. Also ensure that the
allowcred.awk file doesn't have Windows line endings and that it has executable
bits set.
On August 22, 2018 at 2:45 PM Jonathan Casco <jca...@fiu.edu> wrote:
Hello,
I am working on updating our stateless boot images and during my testing with a
new CentOS 7.5 image the remoteshell postscript fails causing the ssh keys to
not be copied over correctly. This same postscript works for our CentOS 7.1
image as well as various CentOS 6 images.
The error I am receiving is:
/xcatpost/remoteshell: line 97: allowcred.awk: command not found
/xcatpost/remoteshell: line 115: getcredentials.awk: command not found
/xcatpost/remoteshell: line 150: getcredentials.awk: command not found
When it completes the log shows that is finishes with a 0 exit code.
Other postscripts complete without problems but this postscript failing does
prevent some custom scripts from completing.
What could be causing this inconsistency between CentOS versions?
I am running xcat 2.13.3 on the master node.
-----------------------
Jonathan Casco
HPC System Administrator
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________<https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F-5F&d=DwMFaQ&c=lhMMI368wojMYNABHh1gQQ&r=0Mz5KaUjFlgb7ODSsLhATg&m=CvJcclwi4SZPhvVu1Kn9l9bGWAMmxWT23srg3S2GERU&s=7g4vM48ppPFEuDkTMNDEHsuJSFb_ILiHezSXqK7ecY0&e=>
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot<https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwMFaQ&c=lhMMI368wojMYNABHh1gQQ&r=0Mz5KaUjFlgb7ODSsLhATg&m=CvJcclwi4SZPhvVu1Kn9l9bGWAMmxWT23srg3S2GERU&s=_l1x9_PLXIE3VomdsGQej2GLJADXDTd7D8FG7HLjjP8&e=>
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_xcat-2Duser&d=DwMFaQ&c=lhMMI368wojMYNABHh1gQQ&r=0Mz5KaUjFlgb7ODSsLhATg&m=CvJcclwi4SZPhvVu1Kn9l9bGWAMmxWT23srg3S2GERU&s=IcyuoK0ynCASXiHLwyc0MPnZtEZzGn9k8eIAkPaQ2A0&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