hi,
would you please paste your "/install/postscripts/remoteshell" on you MN?
The following lines in the end of the remoteshell script should be there
to work around this:
````
...
# check whether the sshd daemon has been started successfully
# As we known that for rh7 the sshd cannot be started by systemctl in
chroot mode
ps aux | grep -v grep | grep sshd
if [ $? -ne 0 ]; then
if [ -e "/usr/sbin/sshd" ]; then
/usr/sbin/sshd
fi
fi
...
````
thanks
------------------------------------------------------------------------------
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
From: "Dr. Markus Hillenbrand" <hille...@rhrk.uni-kl.de>
To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Date: 05/03/2016 04:20 PM
Subject: Re: [xcat-user] Postscripts during stateful installation
of SL7.2 not working
This can be seen in the debug messages:
May 3 10:01:59 node802 xcat: + '[' -z 'systemctl restart sshd' ']'
May 3 10:01:59 node802 xcat: + eval systemctl restart sshd
May 3 10:01:59 node802 xcat: ++ systemctl restart sshd
May 3 10:01:59 node802 xcat: Running in chroot, ignoring request.
Markus
On 03.05.2016 04:38, Xiao Peng Wang wrote:
> The file /etc/ssh/ssh_host_dsa_key was generated by remoteshell
> postscript. The sshd would be restarted after generating the new keys in
> the compute node. I am not sure whether the ssh has been restarted
> successfully?
>
> Thanks
> Best Regards
> ----------------------------------------------------------------------
> Wang Xiaopeng (王晓朋)
> IBM China System Technology Laboratory
> Tel: 86-10-82453455
> Email: w...@cn.ibm.com
> Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road,
> Haidian District Beijing P.R.China 100193
>
>
>
> ----- Original message -----
> From: "Dr. Markus Hillenbrand" <hille...@rhrk.uni-kl.de>
> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
> Cc:
> Subject: Re: [xcat-user] Postscripts during stateful installation of
> SL7.2 not working
> Date: Mon, May 2, 2016 2:49 PM
>
> When Anaconda is running, I see
>
> root@hpcmanage2 [~] ssh node802
> Warning: Permanently added 'node802,10.255.8.102' (RSA) to the list
of
> known hosts.
> [anaconda root@node802 ~]# ls -alrt /etc/ssh/
> total 14
> -rw-r--r--. 1 root root 276 Sep 3 2015 sshd_config.anaconda
> -rw-r--r--. 1 root root 382 May 2 08:17 ssh_host_rsa_key.pub
> -rw-r-----. 1 root ssh_keys 1679 May 2 08:17 ssh_host_rsa_key
> -rw-r-----. 1 root ssh_keys 227 May 2 08:17 ssh_host_ecdsa_key
> -rw-r--r--. 1 root root 162 May 2 08:17
ssh_host_ecdsa_key.pub
> -rw-r--r--. 1 root root 82 May 2 08:17
ssh_host_ed25519_key.pub
> -rw-r-----. 1 root ssh_keys 387 May 2 08:17 ssh_host_ed25519_key
> drwxr-xr-x. 2 root root 1024 May 2 08:17 .
> drwxr-xr-x. 91 root root 5120 May 2 08:17 ..
>
>
> After OS deployment, I see
>
> root@node802 [~] ls -al /etc/ssh/
> total 296
> drwxr-xr-x. 2 root root 4096 May 2 08:32 .
> drwxr-xr-x. 81 root root 4096 May 2 2016 ..
> -rw-r--r--. 1 root root 242153 Nov 21 00:52 moduli
> -rw-r--r--. 1 root root 2203 May 2 2016 ssh_config
> -rw------- 1 root root 651 Jan 26 08:38 sshd_config
> -rw-------. 1 root root 4361 May 2 2016 sshd_config.ORIG
> -rw-------. 1 root root 668 May 2 2016 ssh_host_dsa_key
> -rw-r--r--. 1 root root 589 May 2 2016
ssh_host_dsa_key.pub
> -rw-r----- 1 root ssh_keys 227 May 2 08:32 ssh_host_ecdsa_key
> -rw-r--r-- 1 root root 162 May 2 08:32
ssh_host_ecdsa_key.pub
> -rw-r----- 1 root ssh_keys 387 May 2 08:32
ssh_host_ed25519_key
> -rw-r--r-- 1 root root 82 May 2 08:32
> ssh_host_ed25519_key.pub
> -rw-------. 1 root root 1675 May 2 2016 ssh_host_rsa_key
> -rw-r--r--. 1 root root 381 May 2 2016
ssh_host_rsa_key.pub
>
> I compared the two host keys as requested:
>
> # scp node802:/etc/ssh/ssh_host_dsa_key /tmp
> # diff /tmp/ssh_host_dsa_key /etc/xcat/hostkeys/ssh_host_dsa_key
>
> They are equal.
>
>
> Markus
>
>
>
>
>
>
> On 28.04.2016 09:00, Xiao Peng Wang wrote:
> > After the OS deployment for the compute node, you should see the
file
> > /etc/xcat/hostkeys/ssh_host_dsa_key on compute node. Could you
compare
> > this file with the one on the Management Node? They should be
same.
> >
> > Thanks
> > Best Regards
> >
----------------------------------------------------------------------
> > Wang Xiaopeng (王晓朋)
> > IBM China System Technology Laboratory
> > Tel: 86-10-82453455
> > Email: w...@cn.ibm.com
> > Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West
Road,
> > Haidian District Beijing P.R.China 100193
> >
> >
> >
> > ----- Original message -----
> > From: "Dr. Markus Hillenbrand" <hille...@rhrk.uni-kl.de>
> > To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
> > Cc:
> > Subject: Re: [xcat-user] Postscripts during stateful
installation of
> > SL7.2 not working
> > Date: Wed, Apr 27, 2016 2:22 PM
> >
> > Hi,
> >
> > > Please show output of 'lsxcatd -a'.
> >
> > # lsxcatd -a
> > Version 2.11.1 (git commit
b6e4c8ca1847bf574d7e86687d74a7f2576d428a,
> > built Thu Apr 14 09:32:27 EDT 2016)
> > This is a Management Node
> > dbengine=SQLite
> >
> > > Is there any error/warning message when running the
remoteshell postscript?
> >
> > Not on the console of the compute node, only in the logfile on
the
> > management node with site.xcatdebugmode=1 enabled.
> >
> > > Could you ssh to the compute node when the system is running
Postscript.
> >
> > Yes, the login to the compute node is possible when Anaconda
starts
> > installing RPMs.
> > During that time in /etc/ssh/ I can only see a
"ssh_host_rsa_key" and no
> > "ssh_host_dsa_key".
> >
> > > As a workaround, you can move the postscript syncfiles to
> > > postbootscripts attribute.
> >
> > I will give it a try. Thanks for the hint.
> >
> >
> >
> > Markus
> >
> >
> > >
> > >
> > > Thanks
> > > Best Regards
> > >
----------------------------------------------------------------------
> > > Wang Xiaopeng (王晓朋)
> > > IBM China System Technology Laboratory
> > > Tel: 86-10-82453455
> > > Email: w...@cn.ibm.com
> > > Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang
West Road,
> > > Haidian District Beijing P.R.China 100193
> > >
> > >
> > >
> > > ----- Original message -----
> > > From: "Dr. Markus Hillenbrand" <hille...@rhrk.uni-kl.de>
> > > To: "xcat-user@lists.sourceforge.net"
<xcat-user@lists.sourceforge.net>
> > > Cc:
> > > Subject: [xcat-user] Postscripts during stateful
installation of
> > > SL7.2 not working
> > > Date: Tue, Apr 26, 2016 11:27 PM
> > >
> > > Hi,
> > >
> > > I am trying to deploy compute nodes with a stateful
installation of
> > > SL7.2.
> > >
> > > The packages are installing fine and all but one
postscripts are being
> > > executed.
> > >
> > > The "syncfiles" script is not working correctly and
issues some SSH
> > > errors:
> > >
> > > Apr 26 15:23:49 node802 xcat: ++
/xcatpost/startsyncfiles.awk
> > > Apr 26 15:23:49 hpcmanage2 xcat[8514]: DEBUG xcatd:
connection from
> > > node802
> > > Apr 26 15:23:49 hpcmanage2 xcat[8514]: DEBUG xcatd: open
new process :
> > > xCATd SSL: syncfiles for node802
> > > Apr 26 15:23:49 hpcmanage2 xcat[8514]: xCAT: Allowing
syncfiles from
> > > node802
> > > Apr 26 15:23:49 node802 sshd[52987]: error: Could not
load host key:
> > > /etc/ssh/ssh_host_dsa_key
> > > Apr 26 15:23:49 node802 sshd[52987]: WARNING:
/etc/ssh/moduli does not
> > > exist, using fixed modulus
> > > Apr 26 15:23:49 node802 sshd[52987]: Accepted none for
root from
> > > 10.255.3.206 port 43852 ssh2
> > > Apr 26 15:23:49 node802 sshd[52987]: Received disconnect
from
> > > 10.255.3.206: 11: disconnected by user
> > > [...]
> > > Apr 26 15:23:54 node802 sshd[53038]: WARNING:
/etc/ssh/moduli does not
> > > exist, using fixed modulus
> > > Apr 26 15:23:54 node802 sshd[53038]: Accepted none for
root from
> > > 10.255.3.206 port 43905 ssh2
> > > Apr 26 15:23:55 node802 sshd[53038]: Received disconnect
from
> > > 10.255.3.206: 11: disconnected by user
> > > Apr 26 15:23:55 hpcmanage2 xcat[8514]: DEBUG xcatd:
close connection
> > > with node802
> > > Apr 26 15:23:55 node802 xcat: + returncode=0
> > > Apr 26 15:23:55 node802 xcat: + '[' 0 -eq 0 ']'
> > > Apr 26 15:23:55 node802 xcat: + quit=yes
> > > Apr 26 15:23:55 node802 xcat: + let count=count-1
> > > Apr 26 15:23:55 node802 xcat: + '[' yes = no ']'
> > > Apr 26 15:23:55 node802 xcat: + '[' 0 -eq 0 ']'
> > > Apr 26 15:23:55 node802 xcat: + logger -t xcat -p
local4.info
> > > './syncfiles: Perform Syncing File action successfully'
> > > Apr 26 15:23:55 node802 xcat: ./syncfiles: Perform
Syncing File action
> > > successfully
> > > Apr 26 15:23:55 node802 xcat: + exit 0
> > > Apr 26 17:23:55 node802 xcat: Tue Apr 26 17:23:55 CEST
2016 postscript
> > > syncfiles return with 0
> > >
> > > I guess our xCAT master (10.255.3.206) is not able to
ssh to the compute
> > > node during installation.
> > >
> > > After the installation process a "updatenode node802 -F"
will sync all
> > > the files normally.
> > >
> > > My osimage looks like
> > >
> > > # lsdef -t osimage Elwe-SL7.2-compute
> > > Object name: Elwe-SL7.2-compute
> > > imagetype=linux
> > > osarch=x86_64
> > > osdistroname=SL7.2-x86_64
> > > osname=Linux
> > > osvers=SL7.2
> > > otherpkgdir=/install/post/otherpkgs/SL7.2/x86_64
> > > pkgdir=/install/SL7.2/x86_64
> > > pkglist=/install/rhrk/xcat/Elwe-SL7/compute.pkglist
> > > profile=compute
> > > provmethod=install
> > > synclists=/install/rhrk/xcat/Elwe-SL7/compute.synclist
> > > template=/install/rhrk/xcat/Elwe-SL7/compute.tmpl
> > >
> > > We are using xCAT-2.11.1-snap201604140932.x86_64 on
RHEL6.7.
> > >
> > > With SL6.7 this was working fine, but now I am struck
and will be
> > > grateful for any help.
> > >
> > >
> > >
> > > Markus
> > >
> > >
> > >
------------------------------------------------------------------------------
> > > Find and fix application performance issues faster with
Applications
> > > Manager
> > > Applications Manager provides deep performance insights
into
> > > multiple tiers of
> > > your business applications. It resolves application
problems quickly and
> > > reduces your MTTR. Get your free trial!
> > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> > > _______________________________________________
> > > xCAT-user mailing list
> > > xCAT-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/xcat-user
> > >
> > >
> > >
> > >
> > >
------------------------------------------------------------------------------
> > > Find and fix application performance issues faster with
Applications Manager
> > > Applications Manager provides deep performance insights into
multiple tiers of
> > > your business applications. It resolves application problems
quickly and
> > > reduces your MTTR. Get your free trial!
> > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> > >
> > >
> > >
> > > _______________________________________________
> > > xCAT-user mailing list
> > > xCAT-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/xcat-user
> > >
> >
> > --
> >
> >
> >
------------------------------------------------------------------------
> > Dr.-Ing. Markus Hillenbrand E-Mail:
hille...@rhrk.uni-kl.de
> > Technische Universität Kaiserslautern Telefon: 0631/205-4173
> > Regionales Hochschulrechenzentrum Telefax: 0631/205-3056
> > Postfach 3049
> > 67653 Kaiserslautern
http://www.rhrk.uni-kl.de
> >
------------------------------------------------------------------------
> >
> >
> >
------------------------------------------------------------------------------
> > Find and fix application performance issues faster with
Applications
> > Manager
> > Applications Manager provides deep performance insights into
> > multiple tiers of
> > your business applications. It resolves application problems
quickly and
> > reduces your MTTR. Get your free trial!
> > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> > _______________________________________________
> > xCAT-user mailing list
> > xCAT-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xcat-user
> >
> >
> >
> >
> >
------------------------------------------------------------------------------
> > Find and fix application performance issues faster with
Applications Manager
> > Applications Manager provides deep performance insights into
multiple tiers of
> > your business applications. It resolves application problems
quickly and
> > reduces your MTTR. Get your free trial!
> > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> >
> >
> >
> > _______________________________________________
> > xCAT-user mailing list
> > xCAT-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xcat-user
> >
>
> --
>
>
> ------------------------------------------------------------------------
> Dr.-Ing. Markus Hillenbrand E-Mail:
hille...@rhrk.uni-kl.de
> Technische Universität Kaiserslautern Telefon: 0631/205-4173
> Regionales Hochschulrechenzentrum Telefax: 0631/205-3056
> Postfach 3049
> 67653 Kaiserslautern http://www.rhrk.uni-kl.de
> ------------------------------------------------------------------------
>
>
>
------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into
> multiple tiers of
> your business applications. It resolves application problems quickly
and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>
>
>
>
------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
Manager
> Applications Manager provides deep performance insights into multiple
tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>
>
>
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
--
------------------------------------------------------------------------
Dr.-Ing. Markus Hillenbrand E-Mail: hille...@rhrk.uni-kl.de
Technische Universität Kaiserslautern Telefon: 0631/205-4173
Regionales Hochschulrechenzentrum Telefax: 0631/205-3056
Postfach 3049
67653 Kaiserslautern http://www.rhrk.uni-kl.de
------------------------------------------------------------------------
[attachment "smime.p7s" deleted by Song BJ Yang/China/IBM]
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications
Manager
Applications Manager provides deep performance insights into multiple
tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user