Commit a162cf5b authored by Iustin Pop's avatar Iustin Pop
Browse files

ssh: more details on failure

In case we fail without output from the ssh command, we should at least
add the exit code or any other failure reason to the error message, and
log it and the cmdline used to the node daemon log.

Reviewed-by: imsnah
parent a3f9f296
......@@ -219,6 +219,9 @@ class SshRunner:
output = retval.output
if output:
msg += ": %s" % output
msg += ": %s (no output)" % retval.fail_reason
logging.error("Command %s failed: %s" % (retval.cmd, msg))
return False, msg
remotehostname = retval.stdout.strip()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment