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

Reply via email to