ec2-spotter
ec2-spotter copied to clipboard
Classic - Instance shuts down right after creation
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 myebs-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 theebs-volumegets 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.
- If I leave
Am I missing something? Thanks in advance.
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
Please re-test on latest from 8/28/2017, PR#7. Do you still see this issue? Thanks.