invalid instance type should sort the valid instance types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Nam Nguyen |
Bug Description
I just did:
juju bootstrap aws ... --model-default instance-
And it came back with:
11:48:04 ERROR juju.cmd.
valid values are: [p2.8xlarge r3.8xlarge r3.4xlarge i2.4xlarge t2.medium d2.4xlarge m3.xlarge r4.4xlarge c3.large t2.nano i3.xlarge i3.8xlarge d2.2xlarge t2.2xlarge x1.32xlarge g3.8xlarge t2.large m3.large x1.16xlarge r4.16xlarge m4.large i3.4xlarge c4.4xlarge r4.xlarge i3.16xlarge g2.2xlarge m4.2xlarge m3.2xlarge t2.small c4.8xlarge m4.xlarge r3.xlarge d2.8xlarge i2.2xlarge d2.xlarge m3.medium i3.large c3.xlarge r3.large m4.4xlarge g3.4xlarge p2.xlarge c3.8xlarge c3.2xlarge r3.2xlarge i2.xlarge c3.4xlarge c4.2xlarge g2.8xlarge t2.xlarge g3.16xlarge m4.16xlarge i2.8xlarge t2.micro i3.2xlarge r4.8xlarge r4.2xlarge r4.large p2.16xlarge c4.large m4.10xlarge c4.xlarge]
This would be a lot more useful if that list was sorted:
[c3.2xlarge c3.4xlarge c3.8xlarge c3.large c3.xlarge c4.2xlarge c4.4xlarge c4.8xlarge c4.large c4.xlarge d2.2xlarge d2.4xlarge d2.8xlarge d2.xlarge g2.2xlarge g2.8xlarge g3.16xlarge g3.4xlarge g3.8xlarge i2.2xlarge i2.4xlarge i2.8xlarge i2.xlarge i3.16xlarge i3.2xlarge i3.4xlarge i3.8xlarge i3.large i3.xlarge m3.2xlarge m3.large m3.medium m3.xlarge m4.10xlarge m4.16xlarge m4.2xlarge m4.4xlarge m4.large m4.xlarge p2.16xlarge p2.8xlarge p2.xlarge r3.2xlarge r3.4xlarge r3.8xlarge r3.large r3.xlarge r4.16xlarge r4.2xlarge r4.4xlarge r4.8xlarge r4.large r4.xlarge t2.2xlarge t2.large t2.medium t2.micro t2.nano t2.small t2.xlarge x1.16xlarge x1.32xlarge]
That would let us scan through to find the "m4" and then do something with it. Arguably it should be "naturally" sorted, as that would put 2xlarge before 16xlarge (though it wouldn't put "xlarge" before "2xlarge").
tags: | added: bitesize |
Changed in juju: | |
status: | Triaged → Won't Fix |
status: | Won't Fix → Fix Committed |
milestone: | none → 2.7-beta1 |
Changed in juju: | |
assignee: | nobody → Nam Nguyen (nammn) |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Maybe even better if we did something like group them by prefix, so you would end up with:
[
c3.2xlarge c3.4xlarge c3.8xlarge c3.large c3.xlarge
c4.2xlarge c4.4xlarge c4.8xlarge c4.large c4.xlarge
d2.2xlarge d2.4xlarge d2.8xlarge d2.xlarge
g2.2xlarge g2.8xlarge
g3.16xlarge g3.4xlarge g3.8xlarge
i2.2xlarge i2.4xlarge i2.8xlarge i2.xlarge
i3.16xlarge i3.2xlarge i3.4xlarge i3.8xlarge i3.large i3.xlarge
m3.2xlarge m3.large m3.medium m3.xlarge
m4.10xlarge m4.16xlarge m4.2xlarge m4.4xlarge m4.large m4.xlarge
p2.16xlarge p2.8xlarge p2.xlarge
r3.2xlarge r3.4xlarge r3.8xlarge r3.large r3.xlarge
r4.16xlarge r4.2xlarge r4.4xlarge r4.8xlarge r4.large r4.xlarge
t2.2xlarge t2.large t2.medium t2.micro t2.nano t2.small t2.xlarge
x1.16xlarge x1.32xlarge
]