Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75870

'Check Current Spot Price' cannot resolve any instance type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • ec2-plugin
    • Jenkins Version: 2.504.2
      EC2-Plugin-Version: Amazon EC2 Version 1935.v9b_77210472b_1
    • 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.

            olliatwork Oliver
            olliatwork Oliver
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: