'Check Current Spot Price' cannot resolve any instance type

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 1949.vf7e0fa_c3b_5b_c

      `Check Current Spot Price` in configuration form cannot resolve any instance type.

      When add/modifying an EC2-Spot-Template with any specified well known instance type (e.g. `m5a.large`) the `Check Current Spot Price` function fails with the following message:

      `Could not resolve instance type: m5a.large`
      I tested several instance types available in that AWS region all resulting in the same error.
      Please find an example screenshot attached.

      I investigated the plugins-code and I suspect this line in code to be the reason for the fault. It compares the value of the SDKs enumeration `InstanceType` to the name property of the enumeration entry. I would expect it to compare the given value from the form to the value properties of the `InstanceType` enumeration

      The provisioning code correctly interprets the given instant type when creating spot requests.

            Assignee:
            Oliver
            Reporter:
            Oliver
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: