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

Issue 7943043: Add series to StartInstance, and remove the tools

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by thumper
Modified:
11 years, 1 month ago
Reviewers:
mp+154635, jameinel, fwereade
Visibility:
Public.

Description

Add series to StartInstance, and remove the tools In order to facilitate some simpler testing, a helper method was added for StartInstance. An unknown series for the dummy provider now raises a NotFoundError saying no tools, as this is the behaviour that is now happening with the ec2 and openstack providers. The series is passed through to the private start instance for the providers where it is used to find tools, and is also passed into the findInstanceSpec. https://code.launchpad.net/~thumper/juju-core/start-instance-series/+merge/154635 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add series to StartInstance, and remove the tools #

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

Messages

Total messages: 5
thumper
Please take a look.
11 years, 1 month ago (2013-03-21 09:31:37 UTC) #1
jameinel
LGTM https://codereview.appspot.com/7943043/diff/1/environs/interface.go File environs/interface.go (right): https://codereview.appspot.com/7943043/diff/1/environs/interface.go#newcode175 environs/interface.go:175: StartInstance(machineId string, series string, cons constraints.Value, info *state.Info, ...
11 years, 1 month ago (2013-03-21 10:00:28 UTC) #2
fwereade
LGTM on the assumption that there's a bit more coming (see my comment in ec2.go). ...
11 years, 1 month ago (2013-03-21 10:14:06 UTC) #3
thumper
https://codereview.appspot.com/7943043/diff/1/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/7943043/diff/1/environs/ec2/ec2.go#newcode441 environs/ec2/ec2.go:441: v := version.Current On 2013/03/21 10:14:07, fwereade wrote: > ...
11 years, 1 month ago (2013-03-21 20:39:49 UTC) #4
thumper
11 years, 1 month ago (2013-03-21 20:49:18 UTC) #5
*** Submitted:

Add series to StartInstance, and remove the tools

In order to facilitate some simpler testing, a helper method was added for
StartInstance.

An unknown series for the dummy provider now raises a NotFoundError saying no
tools, as this is the behaviour that is now happening with the ec2 and
openstack providers.

The series is passed through to the private start instance for the providers
where it is used to find tools, and is also passed into the findInstanceSpec.

R=jameinel, fwereade
CC=
https://codereview.appspot.com/7943043
Sign in to reply to this message.

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