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

Assign address_type for any EC2 instance in powertest.py

    • Fully Compatible
    • ALL
    • v3.6
    • TIG 2018-03-12
    • 28

      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))
      

            Assignee:
            jonathan.abrahams Jonathan Abrahams
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: