thelastpickle / tlp-cluster

tlp-cluster, a tool for launching Cassandra clusters in AWS
http://thelastpickle.com/tlp-cluster/
Other
21 stars 11 forks source link

fix default ami selection #150

Closed rustyrazorblade closed 4 years ago

rustyrazorblade commented 5 years ago

using some instance types just doesn't work. I believe we are selecting the wrong AMI for a given type, probably due to EBS backed vs instance backed.

rustyrazorblade commented 5 years ago

I asked on Twitter if anyone knew where to find this information: https://twitter.com/rustyrazorblade/status/1186714791940968453

AWS support directed me to this page under the storage tab: https://aws.amazon.com/ec2/instance-types/?sc_channel=sm&sc_campaign=Support&sc_publisher=TWITTER&sc_country=Global&sc_geo=GLOBAL&sc_outcome=AWS+Support&trk=Support_TWITTER&sc_content=Support&linkId=75750167

First test:

tlp-cluster init tlp cluster-150 "testing root devices" --instance c5d.9xlarge -s 1
tlp-cluster up --yes

Starting the nodes fails with this error message:

* aws_instance.cassandra.1: Error launching source instance: UnsupportedOperation: AMI 'ami-0fdf0d5b47d0cba88' with an instance-store root device is not supported for the instance type 'c5d.9xlarge'.

As a stopgap I'm going to add some simple logic for known EBS backed instance types.