ec2-spotter icon indicating copy to clipboard operation
ec2-spotter copied to clipboard

Classic - Instance shuts down right after creation

Open amaury1093 opened this issue 8 years ago • 2 comments
trafficstars

After following the tutorial, I see my Spot Request on Amazon's console, I see an instance spawning, but before I can even SSH into it, this instance terminates, with code Client.UserInitiatedShutdown: User initiated shutdown.

Here are my exact steps:

  • Create an EBS volume (General Purpose SSD), and name it let's say ebs-volume.
  • Create a t2.micro, and follow steps 1-2 of the tutorial
  • In step 4, here's my conf:
ec2spotter_volume_name=ebs-volume
ec2spotter_bid_price=0.60
ec2spotter_instance_type=c4.8xlarge
# ami-d05e75b8 is Ubuntu 14.04 - 3.13.0-46-generic
ec2spotter_preboot_image_id=ami-d05e75b8
  • Depending on what I put for the last parameter, I have 2 scenarios:
    • If I leave ami-d05e75b8, then the new instance doesn't attach my ebs-volume, i.e. the volume is still available but not in-use, and a new 8GB volume is created and attached to the instance. The instance runs correctly.
    • If I put the current AMI version ami-c58c1dd3 (in N. Virginia, Amazon Linux AMI 2017.03.0.20170417 x86_64 HVM GP2), then the ebs-volume gets attached, the new instance starts running, but after ~3-4 minutes it shuts down and terminates, with the error code: Client.UserInitiatedShutdown: User initiated shutdown.

Am I missing something? Thanks in advance.

amaury1093 avatar Jul 24 '17 14:07 amaury1093

I used Ubuntu16.04 and the script would find my volume, but the volume wouldnt auto attach to the spot instance, would just sit in available state

togosh avatar Aug 12 '17 03:08 togosh

Please re-test on latest from 8/28/2017, PR#7. Do you still see this issue? Thanks.

refacktor avatar Aug 29 '17 04:08 refacktor