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

Issue 7735045: environs: StartInstance accepts constraints

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by fwereade
Modified:
12 years, 9 months ago
Reviewers:
mp+153862, jameinel, thumper, dimitern
Visibility:
Public.

Description

environs: StartInstance accepts constraints ...and in ec2 honours them. https://code.launchpad.net/~fwereade/juju-core/bootstrap-constraints-6/+merge/153862 Requires: https://code.launchpad.net/~fwereade/juju-core/bootstrap-constraints-5/+merge/153788 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : environs: StartInstance accepts constraints #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -51 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/ssh_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/status_test.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M environs/dummy/environs.go View 1 3 chunks +15 lines, -13 lines 0 comments Download
M environs/ec2/ec2.go View 1 1 chunk +6 lines, -5 lines 0 comments Download
M environs/ec2/live_test.go View 1 5 chunks +17 lines, -6 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 chunks +5 lines, -5 lines 0 comments Download
M environs/interface.go View 1 1 chunk +1 line, -2 lines 0 comments Download
M environs/jujutest/livetests.go View 1 5 chunks +6 lines, -6 lines 0 comments Download
M environs/jujutest/tests.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M environs/openstack/local_test.go View 1 3 chunks +4 lines, -4 lines 0 comments Download
M environs/openstack/provider.go View 1 2 chunks +4 lines, -1 line 0 comments Download
M worker/firewaller/firewaller_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M worker/provisioner/provisioner.go View 1 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8
fwereade
Please take a look.
12 years, 9 months ago (2013-03-18 16:23:22 UTC) #1
thumper
LGTM Part of me thinks we should keep track of things that should be refactored ...
12 years, 9 months ago (2013-03-19 01:36:40 UTC) #2
jameinel
LGTM Though your overview says that ec2 honors the contstraints, but I don't see any ...
12 years, 9 months ago (2013-03-19 08:26:56 UTC) #3
dimitern
LGTM, but I'd suggest to change the argument to *state.Constraints, so nil can be passed ...
12 years, 9 months ago (2013-03-19 09:26:43 UTC) #4
fwereade
On 2013/03/19 08:26:56, jameinel wrote: > LGTM > > Though your overview says that ec2 ...
12 years, 9 months ago (2013-03-20 11:53:27 UTC) #5
fwereade
On 2013/03/19 08:26:56, jameinel wrote: > LGTM > > Though your overview says that ec2 ...
12 years, 9 months ago (2013-03-20 11:55:16 UTC) #6
fwereade
On 2013/03/19 09:26:43, dimitern wrote: > LGTM, but I'd suggest to change the argument to ...
12 years, 9 months ago (2013-03-20 11:56:03 UTC) #7
fwereade
12 years, 9 months ago (2013-03-20 13:34:37 UTC) #8
*** Submitted:

environs: StartInstance accepts constraints

...and in ec2 honours them.

R=
CC=
https://codereview.appspot.com/7735045

https://codereview.appspot.com/7735045/diff/1/environs/ec2/local_test.go
File environs/ec2/local_test.go (right):

https://codereview.appspot.com/7735045/diff/1/environs/ec2/local_test.go#newc...
environs/ec2/local_test.go:252: bsstate, err := ec2.LoadState(t.env)
On 2013/03/19 01:36:40, thumper wrote:
> Personally I'd prefer bootstrapState, but I don't mind typing.  At least you
> didn't call it 's'.

Done.

https://codereview.appspot.com/7735045/diff/1/environs/jujutest/livetests.go
File environs/jujutest/livetests.go (right):

https://codereview.appspot.com/7735045/diff/1/environs/jujutest/livetests.go#...
environs/jujutest/livetests.go:104: inst, err := t.Env.StartInstance("0",
state.Constraints{}, testing.InvalidStateInfo("0"), testing.InvalidAPIInfo("0"),
nil)
On 2013/03/19 01:36:40, thumper wrote:
> I see the same change in six places in this file and immediately think "this
> needs to be factored out", but not now.

Agreed on both points.
Sign in to reply to this message.

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