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

Assign address_type for any EC2 instance in powertest.py

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.6
    • Sprint:
      TIG 2018-03-12
    • Linked BF Score:
      28

      Description

      We need ensure that address_type is assigned before accessing this code block:

              if options.crash_method == "aws_ec2" or not instance_running:
                  ret, aws_status = ec2.control_instance(
                      mode="start", image_id=options.instance_id, wait_time_secs=600, show_progress=True)
                  LOGGER.info("Start instance: %d %s****", ret, aws_status)
                  if ret:
                      raise Exception("Start instance failed: {}".format(aws_status))
                  if not hasattr(aws_status, address_type):
                      raise Exception("Cannot determine address_type {} from AWS EC2 status {}".format(
                          address_type, aws_status))
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: