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

'Check Current Spot Price' shows incorrect price for spot instance if 'AMI ID' field is empty

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ec2-plugin
    • jenkins 2.277.1
      ec2-plugin 1.56

      Hi,

       

      I have started using the AMI filters instead of static AMI configuration: https://github.com/jenkinsci/ec2-plugin/pull/533/commits/759e1fd10fe8ad9881d699fca198b081c8faed74 and noticed that 'Check Current Spot Price' funtionality shows price for on-demand instances if 'AMI ID' is not specified.

       

      STR:

      • Configure ec2 plugin and template to use spot configuration;
      • Press 'Check Current Spot Price' button and you will see the correct price
      • remove the field 'AMI ID'
      • Press 'Check Current Spot Price' button one more time

      Actual Result:

      ec2-plugin shows the price for on-demand instances now...

       

      I attached the screen-shots.

          [JENKINS-65259] 'Check Current Spot Price' shows incorrect price for spot instance if 'AMI ID' field is empty

          Yevhen Null created issue -
          Yevhen Null made changes -
          Description Original: Hi,

           

          I have started using the AMI filters instead of static AMI configuration: [https://github.com/jenkinsci/ec2-plugin/pull/533/commits/759e1fd10fe8ad9881d699fca198b081c8faed74]

           

          and noticed that 'Check Current Spot Price' funtionality shows price for on-demand instances if 'AMI ID' is not specified.

           

           

          STR:
           * Configure ec2 plugin and template to use spot configuration;
           * Press 'Check Current Spot Price' button and you will see the correct price
           * remove the field 'AMI ID'
           * Press 'Check Current Spot Price' button one more time

          Actual Result:

          ec2-plugin shows the price for on-demand instances now...

           

          I attached the screen-shots.
          New: Hi,

           

          I have started using the AMI filters instead of static AMI configuration: [https://github.com/jenkinsci/ec2-plugin/pull/533/commits/759e1fd10fe8ad9881d699fca198b081c8faed74]

           

          and noticed that 'Check Current Spot Price' funtionality shows price for on-demand instances if 'AMI ID' is not specified.

           

          STR:
           * Configure ec2 plugin and template to use spot configuration;
           * Press 'Check Current Spot Price' button and you will see the correct price
           * remove the field 'AMI ID'
           * Press 'Check Current Spot Price' button one more time

          Actual Result:

          ec2-plugin shows the price for on-demand instances now...

           

          I attached the screen-shots.
          Yevhen Null made changes -
          Description Original: Hi,

           

          I have started using the AMI filters instead of static AMI configuration: [https://github.com/jenkinsci/ec2-plugin/pull/533/commits/759e1fd10fe8ad9881d699fca198b081c8faed74]

           

          and noticed that 'Check Current Spot Price' funtionality shows price for on-demand instances if 'AMI ID' is not specified.

           

          STR:
           * Configure ec2 plugin and template to use spot configuration;
           * Press 'Check Current Spot Price' button and you will see the correct price
           * remove the field 'AMI ID'
           * Press 'Check Current Spot Price' button one more time

          Actual Result:

          ec2-plugin shows the price for on-demand instances now...

           

          I attached the screen-shots.
          New: Hi,

           

          I have started using the AMI filters instead of static AMI configuration: [https://github.com/jenkinsci/ec2-plugin/pull/533/commits/759e1fd10fe8ad9881d699fca198b081c8faed74 |https://github.com/jenkinsci/ec2-plugin/pull/533/commits/759e1fd10fe8ad9881d699fca198b081c8faed74]and noticed that 'Check Current Spot Price' funtionality shows price for on-demand instances if 'AMI ID' is not specified.

           

          STR:
           * Configure ec2 plugin and template to use spot configuration;
           * Press 'Check Current Spot Price' button and you will see the correct price
           * remove the field 'AMI ID'
           * Press 'Check Current Spot Price' button one more time

          Actual Result:

          ec2-plugin shows the price for on-demand instances now...

           

          I attached the screen-shots.
          Yevhen Null made changes -
          Labels New: ec2-plugin

          Yevhen Null added a comment -

          It looks like without AMI ID the following feature does not work: 

          JENKINS-56907 Query AMI for platform before checking spot price: https://github.com/jenkinsci/ec2-plugin/pull/348

          Yevhen Null added a comment - It looks like without AMI ID the following feature does not work:  JENKINS-56907 Query AMI for platform before checking spot price: https://github.com/jenkinsci/ec2-plugin/pull/348

            thoulen FABRIZIO MANFREDI
            aston_r Yevhen Null
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: