After the compute node is provisioned, does it have the /xcatpost/mypostscript file ? It should have a list of postscripts it will run. Something similar to:
# defaults-postscripts-start-here run_ps postscript syslog run_ps postscript remoteshell run_ps postscript syncfiles # defaults-postscripts-end-here # postscripts-end-here Mark Gurevich Poughkeepsie Development Lab HPC Software Development - xCAT "If we knew what it was we were doing, it would not be called research, would it?" --Albert Einstein From: Nathan Harper <nathan.har...@cfms.org.uk> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> Date: 09/04/2020 04:02 AM Subject: [EXTERNAL] Re: [xcat-user] postscripts on CentOS 8 remoteshell is in the default postscripts in the postscripts table. The node attempts to run mypostscript, but from the logs it takes less than a second to complete, suggesting that the script is being executed but returns immediately: Thu Sep 3 13:32:20 BST 2020 [info]: xcat.deployment: running mypostscript + /xcatpost/mypostscript + msgutil_r 172.19.22.1 info 'mypostscript returned' /var/log/xcat/xcat.log xcat.deployment + local 'msgstr=mypostscript returned' + logger -n 172.19.22.1 -t xcat.deployment -p local4.info 'mypostscript returned' + echo 'Thu Sep 3 13:32:20 BST 2020 [info]: xcat.deployment: mypostscript returned' We have reproduced this issue on two clusters (both at the same xCAT version) On Thu, 3 Sep 2020 at 20:01, Mark Gurevich <gurev...@us.ibm.com> wrote: I assume "postscripts" attribute of the node definition contains "remoteshell" ? After the install you can look into /var/log/xcat/xcat.log on the compute node to see if "remoteshell" is attempted to be executed. You should see something similar to: Wed Sep 2 03:58:50 EDT 2020 [info]: xcat.deployment.postscript: postscript start..: remoteshell Wed Sep 2 03:58:52 EDT 2020 [info]: xcat.deployment.postscript: postscript end...: remoteshell return with 0 Mark Gurevich Poughkeepsie Development Lab HPC Software Development - xCAT "If we knew what it was we were doing, it would not be called research, would it?" --Albert Einstein Inactive hide details for Nathan Harper ---09/03/2020 12:04:57 PM---As a bit more of a followup: No postscripts are running onNathan Harper ---09/03/2020 12:04:57 PM---As a bit more of a followup: No postscripts are running on stateful install, and so because From: Nathan Harper <nathan.har...@cfms.org.uk> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> Date: 09/03/2020 12:04 PM Subject: [EXTERNAL] Re: [xcat-user] postscripts on CentOS 8 As a bit more of a followup: No postscripts are running on stateful install, and so because 'remoteshell' isn't run, all of the other postscripts fail. We can SSH into the node, provide the password and then run /xcatpost/remoteshell which appears to work, as we can now SSH into the node without having to provide a password, and postscripts can be run via 'updatenode' On Thu, 3 Sep 2020 at 16:52, Nathan Harper <nathan.har...@cfms.org.uk> wrote: Version 2.16.1 (git commit aeaa863cb2712c9f7b4535656e980ffebaf1d19f, built Wed Aug 26 00:38:39 EDT 2020) On Thu, 3 Sep 2020 at 16:47, Mark Gurevich <gurev...@us.ibm.com> wrote: Which version of xCAT ? Mark Gurevich Poughkeepsie Development Lab HPC Software Development - xCAT "If we knew what it was we were doing, it would not be called research, would it?" --Albert Einstein Inactive hide details for Nathan Harper ---09/03/2020 09:42:34 AM---Hi, We've run into an issue with deploying CentOS 8.2 nodes Nathan Harper ---09/03/2020 09:42:34 AM---Hi, We've run into an issue with deploying CentOS 8.2 nodes (previously CentOS7 From: Nathan Harper <nathan.har...@cfms.org.uk> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> Date: 09/03/2020 09:42 AM Subject: [EXTERNAL] [xcat-user] postscripts on CentOS 8 Hi, We've run into an issue with deploying CentOS 8.2 nodes (previously CentOS7 cluster). The nodes will deploy, but postscripts aren't being run. Attempting to run them by hand gives an inconclusive result. On a working node, running: /xcatpost/mypostscript runs as expected. Running on a CentOS 8.2 system: ++ . /xcatpost/xcatlib.sh +++ declare -a array_nic_params +++ declare -a array_extra_param_names +++ declare -a array_extra_param_values ++ return_value=0 ++ set +x and that's it. Any clues what might be wrong? -- Nathan Harper // IT Systems Lead e: nathan.har...@cfms.org.uk t: 0117 906 1104 m: 0787 551 0891 w: www.cfms.org.uk CFMS Services Ltd // Bristol & Bath Science Park // Dirac Crescent // Emersons Green // Bristol // BS16 7FR CFMS Services Ltd is registered in England and Wales No 05742022 - a subsidiary of CFMS Ltd CFMS Services Ltd registered office // 43 Queens Square // Bristol // BS1 4QP_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user -- Nathan Harper // IT Systems Lead e: nathan.har...@cfms.org.uk t: 0117 906 1104 m: 0787 551 0891 w: www.cfms.org.uk CFMS Services Ltd // Bristol & Bath Science Park // Dirac Crescent // Emersons Green // Bristol // BS16 7FR CFMS Services Ltd is registered in England and Wales No 05742022 - a subsidiary of CFMS Ltd CFMS Services Ltd registered office // 43 Queens Square // Bristol // BS1 4QP -- Nathan Harper // IT Systems Lead e: nathan.har...@cfms.org.uk t: 0117 906 1104 m: 0787 551 0891 w: www.cfms.org.uk CFMS Services Ltd // Bristol & Bath Science Park // Dirac Crescent // Emersons Green // Bristol // BS16 7FR CFMS Services Ltd is registered in England and Wales No 05742022 - a subsidiary of CFMS Ltd CFMS Services Ltd registered office // 43 Queens Square // Bristol // BS1 4QP_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user -- Nathan Harper // IT Systems Lead e: nathan.har...@cfms.org.uk t: 0117 906 1104 m: 0787 551 0891 w: www.cfms.org.uk CFMS Services Ltd // Bristol & Bath Science Park // Dirac Crescent // Emersons Green // Bristol // BS16 7FR CFMS Services Ltd is registered in England and Wales No 05742022 - a subsidiary of CFMS Ltd CFMS Services Ltd registered office // 43 Queens Square // Bristol // BS1 4QP_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user