Skip to content

Commit

Permalink
remove t2 types from placement group types list
Browse files Browse the repository at this point in the history
  • Loading branch information
jtriley committed Nov 5, 2014
1 parent eb7ada2 commit 1c5e23f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion starcluster/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def create_sc_config_dirs():
HVM_TYPES = (HVM_ONLY_TYPES + HI_IO_TYPES + HI_STORAGE_TYPES + SEC_GEN_TYPES +
M3_COMPUTE_TYPES)

EBS_ONLY_TYPES = (T1_INSTANCE_TYPES + T2_INSTANCE_TYPES)
EBS_ONLY_TYPES = T1_INSTANCE_TYPES + T2_INSTANCE_TYPES

# Always make sure these match instances listed here:
# http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
Expand All @@ -189,6 +189,10 @@ def create_sc_config_dirs():
# still works for some older accounts.
PLACEMENT_GROUP_TYPES = (M3_COMPUTE_TYPES + HVM_ONLY_TYPES + HI_IO_TYPES +
HI_STORAGE_TYPES)
# T2 instances are HVM_ONLY_TYPES however they're not compatible with placement
# groups so remove them from the list
for itype in T2_INSTANCE_TYPES:
PLACEMENT_GROUP_TYPES.remove(itype)

# Only add a region to this list after testing that you can create and delete a
# placement group there.
Expand Down

0 comments on commit 1c5e23f

Please sign in to comment.