hi Jonathan,
 
 
 
"getcredentials.awk" expect 2 environment variables: 
USEOPENSSLFORXCAT=1
XCATSERVER=<hostname of MN>:3001
and 1 argument, i.e, the name of the credential,  such as "ssh_rsa_hostkey"
 
so you can export the 2 environment variables first,  run allowcred.awk in background with "./allowcred.awk &", and then invoke "./getcredentials.awk ssh_rsa_hostkey", you will get the content of the key file in console output.
 
But for your original question, the awk scripts cannot be found.  Can you run "updatenode <node> -P remoteshell" against the failed node after boot?
 
the postscripts are invoked by:
1. first "cd /xcatpost"
2. then run "./mypostscript". "/xcatpost/mypostscript" is a wrapper script, which includes all the environment variables "export xxxx" stuff and invokes all the scripts at the end "run_ps xxx <script name>". it can be invoked directly.  you can try to run it manually.
 
there is a log file "/var/log/xcat/xcat.log" on your compute node after boot, which contains all the logs during postscript running, you can look into it to see whether there is any useful information 
 
 
------------------------------------------------------------------------------
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: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Cc:
Subject: Re: [xcat-user] remoteshell postscript failing on new CentOS 7.5 image
Date: Wed, Aug 29, 2018 11:30 PM
 

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_______________________________________________
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

_______________________________________________
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
_______________________________________________
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
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to