DescriptionFix instance type selection
Instance type selection will, by default, choose
an instance with enough memory for mong (1024M).
That is unless the user has specified a memory
constraint. If no matching instances are found,
an error is returned. Previously, instead of
an error an arbitary instance with 1024M would
be chosen.
It's perhaps easiest to see the behaviour by
looking at the tests in instancetype_test. With
the old code, several of the tests fail, especially
the memory ones where other constraints are used also.
BTW - I tested on Canonistack and EC2. On Canonistack, the default instance
selection was m1.tiny (512MB) but this branch fixes that so that now
cpu1-ram1-disk10-ephemeral20 (1024MB) is used. On EC2, attempting to deploy with
cpu-cores=9000 results in an error.
https://code.launchpad.net/~wallyworld/juju-core/fix-instance-type-matching/+merge/204159
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Fix instance type selection #Patch Set 3 : Fix instance type selection #
Total comments: 9
Patch Set 4 : Fix instance type selection #
Total comments: 2
MessagesTotal messages: 8
|