[JIRA] (JENKINS-56435) Spot instance requests use entirely different instance

5 views
Skip to first unread message

richard.bowater@gmail.com (JIRA)

unread,
Mar 6, 2019, 6:01:02 AM3/6/19
to jenkinsc...@googlegroups.com
Richard Bowater created an issue
 
Jenkins / Bug JENKINS-56435
Spot instance requests use entirely different instance
Issue Type: Bug Bug
Assignee: FABRIZIO MANFREDI
Components: ec2-plugin
Created: 2019-03-06 11:00
Environment: ec2 1.42, jenkins 2.167
Priority: Major Major
Reporter: Richard Bowater

Spinning up a build agent template that uses spot pricing appears to use the ID of an instance provisioned by a totally different spot request. e.g. 

Spot instance id in provision: sir-d29i7m7m
Mar 06, 2019 10:50:36 AM INFO hudson.plugins.ec2.EC2RetentionStrategy start
Start requested for jenkins-test-agent (sir-d29i7m7m)
Mar 06, 2019 10:50:36 AM INFO hudson.plugins.ec2.EC2Cloud log
Launching instance: i-0569a98d4e6447e66

In this example, instance i-0569a98d4e6447e66 is an instance fulfilled by a spot request created 1 hour prior. The spot instance provisioned by sir-d29i7m7m eventually starts but is untracked anywhere by Jenkins.

This is incredibly frustrating, because I'm ending up terminating totally unrelated instances because the config cannot be changed once the agent has been created and of course it cannot ssh in to instances created with an entirely different keypair.

I'm not sure how to debug this further, so would appreciate any advice in being able to provide more information or if this is a dupe.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

richard.bowater@gmail.com (JIRA)

unread,
Mar 6, 2019, 10:19:01 AM3/6/19
to jenkinsc...@googlegroups.com
Richard Bowater commented on Bug JENKINS-56435
 
Re: Spot instance requests use entirely different instance

Using version 1.39 of the plugin appears to work. It correctly waits for an instance to be created from the spot instance request and uses that for the build agent configuration. I have no idea why 1.42 is not respecting the spot instance request id when getting details of the instance to use for the agent.

fabrizio.manfredi@gmail.com (JIRA)

unread,
Aug 10, 2019, 4:08:04 PM8/10/19
to jenkinsc...@googlegroups.com

Some fix has been introduced in the 1.45 for the spot instace ID

fabrizio.manfredi@gmail.com (JIRA)

unread,
Aug 10, 2019, 4:08:05 PM8/10/19
to jenkinsc...@googlegroups.com
FABRIZIO MANFREDI started work on Bug JENKINS-56435
 
Change By: FABRIZIO MANFREDI
Status: Open In Progress

fabrizio.manfredi@gmail.com (JIRA)

unread,
Aug 10, 2019, 4:08:05 PM8/10/19
to jenkinsc...@googlegroups.com
FABRIZIO MANFREDI closed an issue as Fixed
 
Change By: FABRIZIO MANFREDI
Status: In Progress Closed
Resolution: Fixed
Released As: 1.45
Reply all
Reply to author
Forward
0 new messages