Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3456)

Issue 14523052: support asking for ec2 instance types by name

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by natefinch
Modified:
10 years, 5 months ago
Reviewers:
mue, mp+190270, thumper, fwereade
Visibility:
Public.

Description

support asking for ec2 instance types by name added a new constraint called "type" which is only implemented by ec2 right now and matches against instance type name https://code.launchpad.net/~natefinch/juju-core/020-instance-type/+merge/190270 (do not edit description out of merge proposal)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -2 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/help_topics.go View 1 chunk +5 lines, -0 lines 0 comments Download
M constraints/constraints.go View 7 chunks +23 lines, -1 line 0 comments Download
M constraints/constraints_test.go View 3 chunks +16 lines, -0 lines 0 comments Download
M environs/instances/instancetype.go View 2 chunks +4 lines, -0 lines 0 comments Download
M instance/instance.go View 4 chunks +14 lines, -0 lines 0 comments Download
M provider/dummy/environs.go View 1 chunk +1 line, -0 lines 0 comments Download
M provider/ec2/ec2.go View 1 chunk +1 line, -0 lines 0 comments Download
M provider/ec2/instancetype.go View 19 chunks +22 lines, -0 lines 0 comments Download
M provider/ec2/local_test.go View 3 chunks +4 lines, -1 line 0 comments Download
M state/constraints.go View 3 chunks +3 lines, -0 lines 0 comments Download
M state/machine.go View 3 chunks +3 lines, -0 lines 0 comments Download
M state/state.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/state_test.go View 2 chunks +2 lines, -0 lines 0 comments Download
M state/unit.go View 1 chunk +3 lines, -0 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
natefinch
Please take a look.
10 years, 6 months ago (2013-10-09 23:54:02 UTC) #1
mue
Looks fine to me regarding the coding but would like somebodies expertise who knows the ...
10 years, 6 months ago (2013-10-10 14:49:53 UTC) #2
natefinch
So the only thing that might be controversial here is how the type constraint interacts ...
10 years, 5 months ago (2013-11-04 21:44:44 UTC) #3
thumper
LGTM I feel that we should make sure the upgrades work fine, but the code ...
10 years, 5 months ago (2013-11-04 22:01:47 UTC) #4
fwereade
10 years, 5 months ago (2013-11-05 15:43:44 UTC) #5
On 2013/11/04 21:44:44, nate.finch wrote:
> So the only thing that might be controversial here is how the type constraint
> interacts with other constraints.... it neither overrides nor is overridden by
> the other constraints.  So, if you specify m1.small and 4GB of RAM, no
instances
> will match (since there's no m1.small instance that has 4GB of RAM).  In
theory
> this should get caught when we add code to do sanity checks of constraints...
> but for now, it'll just fail to provision anything.

It's worse than that, I think -- anyone who set generic environment constraints
will be unable to use smaller instances for their services, and anyone who sets
instance-type environment constraints will be unable to use larger generic
constraints for their services; and it will be really hard to figure *why*, I
fear.

And this patch leaves the GUI out in the cold, and has no other providers, and I
don't see a path towards fixing any of this in a timely way -- we need you doing
HA work as a matter of urgency, and I don't see how to free up anyone else to
pick this work up.

So, unless we can come up with some plan to address the above, I think this is a
reasonable sketch but not LGTM as it stands.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b