-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
Server Tooling & Methods
-
ALL
-
30
There are still cases in powertest.py where an ssh error is not handled properly causing an exit with an ssh error code. The ssh error code is used to designate the failed task as a system failure and not a test failure.
LOGGER.info("Crash server or Kill mongod: %d %s****", ret, output) # For internal crashes 'ret' is non-zero, because the ssh session unexpectedly terminates. if options.crash_method != "internal" and ret: raise Exception("Crash of server failed: {}".format(output)) if options.crash_method != "kill": # Check if the crash failed due to an ssh error. if options.crash_method == "internal" and local_ops.ssh_error(output): ssh_failure_exit(ret, output) # Wait a bit after sending command to crash the server to avoid connecting to the # server before the actual crash occurs. time.sleep(10)
The non-internal cases should check for ssh errors as well.