olopez32 / ganeti

Automatically exported from code.google.com/p/ganeti
0 stars 0 forks source link

Unable to restart sshd on el7 #891

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What software version are you running?
gnt-cluster (ganeti v2.11.3) 2.11.3
Software version: 2.11.3
Internode protocol: 2110000
Configuration format: 2110000
OS api version: 20
Export interface: 0
VCS version: (ganeti) version v2.11.3

What distribution are you using?
CenOS 7 / RHEL7

What steps will reproduce the problem?
1. gnt-node add NODENAME

What do you see instead?
/usr/lib64/ganeti/daemon-util: line 371: /etc/rc.d/init.d/sshd: No such file or 
directory
2014-07-19 15:05:35,039: Unhandled Ganeti error: Could not reload SSH keys, 
command '/usr/lib64/ganeti/daemon-util reload-ssh-keys' had exitcode 1 and 
error 
Failure: command execution error:
Command 'ssh -oEscapeChar=none -oHashKnownHosts=no 
-oGlobalKnownHostsFile=/var/lib/ganeti/known_hosts 
-oUserKnownHostsFile=/dev/null -oCheckHostIp=no -oPort=22 
-oStrictHostKeyChecking=ask -4 root@NODENAME '/bin/sh -c '\''test -d 
/usr/lib64/ganeti/2.11 && ln -s -f -T /usr/lib64/ganeti/2.11 /etc/ganeti/lib && 
ln -s -f -T /usr/share/ganeti/2.11 /etc/ganeti/share && 
/usr/lib64/ganeti/prepare-node-join'\'''' failed: exited with exit code 1

Please provide any additional information below.
el7 changed Daemon-Management to systemd-based - Patch from Fedora should work 
https://github.com/jfut/ganeti-rpm/blob/master/rpmbuild/ganeti/SOURCES/ganeti-2.
8.0-fedora.patch

Original issue reported on code.google.com by gre...@googlemail.com on 19 Jul 2014 at 1:15

GoogleCodeExporter commented 9 years ago
I wonder whether the --with-ssh-initscript configure option can
be used to solve your problem in a clean way. Also note that Ganeti
from 2.12 onwards (yes, only about to reach beta1) has support for use
with systemd; Apollon should know most about the details of systemd
support.

Original comment by aeh...@google.com on 21 Jul 2014 at 12:29

GoogleCodeExporter commented 9 years ago
Unfortunately you cannot use --with-ssh-initscript directly with systemd, 
because the arguments in systemd are in reverse order ("systemctl restart 
sshd.service"). On Debian it will work because we have transparent wrappers 
around the initscripts and/or invoke-rc.d.

What ganeti could do to resolve this, would be to deprecate 
--with-ssh-initscript and replace it with "--with-ssh-restart-command" and 
accept the full command restarting the ssh service.

Original comment by apoi...@gmail.com on 21 Jul 2014 at 1:04

GoogleCodeExporter commented 9 years ago

Original comment by aeh...@google.com on 21 Jul 2014 at 1:16

GoogleCodeExporter commented 9 years ago

Original comment by pud...@google.com on 10 Jun 2015 at 1:33