projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add utils.IsNormAbsPath function
[ganeti-local]
/
lib
/
ssh.py
diff --git
a/lib/ssh.py
b/lib/ssh.py
index
5d94b1a
..
40df999
100644
(file)
--- a/
lib/ssh.py
+++ b/
lib/ssh.py
@@
-219,6
+219,9
@@
class SshRunner:
output = retval.output
if output:
msg += ": %s" % output
output = retval.output
if output:
msg += ": %s" % output
+ else:
+ msg += ": %s (no output)" % retval.fail_reason
+ logging.error("Command %s failed: %s" % (retval.cmd, msg))
return False, msg
remotehostname = retval.stdout.strip()
return False, msg
remotehostname = retval.stdout.strip()
@@
-233,6
+236,6
@@
def WriteKnownHostsFile(cfg, file_name):
"""Writes the cluster-wide equally known_hosts file.
"""
"""Writes the cluster-wide equally known_hosts file.
"""
- utils.WriteFile(file_name, mode=0700,
+ utils.WriteFile(file_name, mode=0600,
data="%s ssh-rsa %s\n" % (cfg.GetClusterName(),
cfg.GetHostKey()))
data="%s ssh-rsa %s\n" % (cfg.GetClusterName(),
cfg.GetHostKey()))