gpstart logs commands' stderr
I have seen too many "[CRITICAL]:-gpstart failed. (Reason='')
exiting..." errors, and there was nothing in the log. The reason could
be "SSH PATH", "Python modules" or some other issues.
Log the stderr to save debugging efforts.
@@ -234,6 +234,8 @@ class StartSegmentsOperation:
resultOut.addSuccess(segment)
else:
resultOut.addFailure(segment, reasonStr, reasonCode)
+ if cmd.get_results().stderr is not None:
+ logger.info(cmd.get_results().stderr)
else:
for segment in cmd.dblist:
resultOut.addFailure(segment, cmd.get_results(), gp.SEGSTART_ERROR_UNKNOWN_ERROR)
