Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37489

Powercycle does not always fail with an ssh error

    XMLWordPrintable

    Details

    • Operating System:
      ALL
    • Linked BF Score:
      38

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: