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

Issue 6449062: environs: add ListTools function and related refactoring.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by rog
Modified:
11 years, 9 months ago
Reviewers:
mp+117305
Visibility:
Public.

Description

environs: add ListTools function and related refactoring. With the proposed upgrade scheme, we will want to explicitly ask machines to run a particular version of the juju tools. That means that the upgrader needs to be able to decide for itself which tools are appropriate, so we factor out ListTools so it doesn't have to list the storage for each agent. As a knock-on effect, Environ.StartInstance now takes the tools to start. https://code.launchpad.net/~rogpeppe/juju-core/environs-list-tools/+merge/117305 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs: add ListTools function and related refactoring. #

Patch Set 3 : environs: add ListTools function and related refactoring. #

Patch Set 4 : environs: add ListTools function and related refactoring. #

Total comments: 22

Patch Set 5 : environs: add ListTools function and related refactoring. #

Patch Set 6 : environs: add ListTools function and related refactoring. #

Total comments: 1

Patch Set 7 : environs: add ListTools function and related refactoring. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+424 lines, -207 lines) Patch
A [revision details] View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/cmd_test.go View 2 chunks +5 lines, -1 line 0 comments Download
M cmd/juju/status_test.go View 1 chunk +1 line, -1 line 0 comments Download
D environs/config/current.go View 1 chunk +0 lines, -31 lines 0 comments Download
M environs/dummy/environs.go View 1 2 3 4 5 6 3 chunks +9 lines, -2 lines 0 comments Download
M environs/ec2/ec2.go View 3 chunks +20 lines, -16 lines 0 comments Download
M environs/ec2/live_test.go View 5 chunks +8 lines, -10 lines 0 comments Download
M environs/ec2/local_test.go View 3 chunks +2 lines, -3 lines 0 comments Download
M environs/ec2/state.go View 2 chunks +0 lines, -8 lines 0 comments Download
M environs/ec2/storage.go View 2 chunks +14 lines, -1 line 0 comments Download
M environs/interface.go View 1 chunk +5 lines, -2 lines 0 comments Download
M environs/jujutest/livetests.go View 1 2 3 4 5 6 5 chunks +35 lines, -3 lines 0 comments Download
M environs/jujutest/tests.go View 1 chunk +2 lines, -2 lines 0 comments Download
M environs/tools.go View 1 2 3 4 4 chunks +117 lines, -103 lines 0 comments Download
M environs/tools_test.go View 1 2 3 4 10 chunks +161 lines, -17 lines 0 comments Download
M version/current_test.go View 2 chunks +4 lines, -4 lines 0 comments Download
M version/export_test.go View 1 chunk +1 line, -1 line 0 comments Download
M version/version.go View 1 2 3 4 5 6 3 chunks +37 lines, -1 line 0 comments Download
M worker/provisioner/provisioner.go View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
rog
Please take a look.
11 years, 9 months ago (2012-07-30 17:26:54 UTC) #1
rog
Please take a look.
11 years, 9 months ago (2012-07-31 08:52:32 UTC) #2
fwereade
LGTM notwithstanding discomfort over additional arg to StartInstance. https://codereview.appspot.com/6449062/diff/5002/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/6449062/diff/5002/environs/dummy/environs.go#newcode407 environs/dummy/environs.go:407: func ...
11 years, 9 months ago (2012-07-31 10:16:42 UTC) #3
niemeyer
Huge step forward. A few trivials, but mainly concerned about testing below. https://codereview.appspot.com/6449062/diff/5002/environs/ec2/ec2.go File environs/ec2/ec2.go ...
11 years, 9 months ago (2012-07-31 18:35:06 UTC) #4
rog
Please take a look. https://codereview.appspot.com/6449062/diff/5002/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6449062/diff/5002/environs/ec2/ec2.go#newcode310 environs/ec2/ec2.go:310: arch: tools.Arch, On 2012/07/31 18:35:06, ...
11 years, 9 months ago (2012-08-01 07:33:31 UTC) #5
niemeyer
LGTM https://codereview.appspot.com/6449062/diff/5005/environs/jujutest/livetests.go File environs/jujutest/livetests.go (right): https://codereview.appspot.com/6449062/diff/5005/environs/jujutest/livetests.go#newcode297 environs/jujutest/livetests.go:297: // architectures with the "dummy" prefix as invalid. ...
11 years, 9 months ago (2012-08-01 15:37:41 UTC) #6
rog
11 years, 9 months ago (2012-08-01 16:10:08 UTC) #7
*** Submitted:

environs: add ListTools function and related refactoring.

With the proposed upgrade scheme, we will want to explicitly
ask machines to run a particular version of the juju tools.
That means that the upgrader needs to be able to decide for
itself which tools are appropriate, so we factor out ListTools
so it doesn't have to list the storage for each agent.

As a knock-on effect, Environ.StartInstance now takes
the tools to start.

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

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