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

Issue 13278043: Bootstrap uses tools matching major.minor (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by wallyworld
Modified:
10 years, 8 months ago
Reviewers:
dave, mp+182378, fwereade, jameinel
Visibility:
Public.

Description

Bootstrap uses tools matching major.minor When finding tools to bootstrap with, we only used to look for tools with the same major version as the cli client. This branch tightens the check so that we find tools matching major.minor. A refactoring is also included for find tools functionality. The various find tools methods no longer take and env, and instead are given storage instances to load from. The FindBootstrapTools method is also cleaned up as a result so that it no longer both looks for tools and sets agent version back into the config. So the find tools methods are truly read only and do not have side effects. This will make the migration to simple streams more clean. https://code.launchpad.net/~wallyworld/juju-core/bootstrap-exact-tools/+merge/182378 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : Bootstrap uses tools matching major.minor #

Total comments: 6

Patch Set 3 : Bootstrap uses tools matching major.minor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+555 lines, -407 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 2 chunks +9 lines, -2 lines 0 comments Download
M cmd/juju/bootstrap_test.go View 1 6 chunks +15 lines, -7 lines 0 comments Download
M cmd/juju/main.go View 1 2 chunks +4 lines, -0 lines 0 comments Download
M cmd/juju/upgradejuju.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/upgradejuju_test.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/bootstrap/bootstrap.go View 1 chunk +25 lines, -1 line 0 comments Download
M environs/bootstrap/bootstrap_test.go View 1 2 8 chunks +115 lines, -9 lines 0 comments Download
M environs/storage.go View 1 chunk +5 lines, -0 lines 0 comments Download
M environs/sync/sync.go View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M environs/sync/sync_test.go View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M environs/testing/tools.go View 1 2 1 chunk +218 lines, -0 lines 0 comments Download
M environs/tools/storage.go View 1 2 2 chunks +9 lines, -3 lines 0 comments Download
M environs/tools/storage_test.go View 1 3 chunks +19 lines, -10 lines 0 comments Download
M environs/tools/tools.go View 1 5 chunks +46 lines, -66 lines 0 comments Download
M environs/tools/tools_test.go View 1 2 11 chunks +75 lines, -295 lines 0 comments Download
M provider/instance.go View 1 chunk +5 lines, -1 line 0 comments Download
M state/apiserver/upgrader/upgrader.go View 1 chunk +1 line, -6 lines 0 comments Download

Messages

Total messages: 11
wallyworld
Please take a look.
10 years, 8 months ago (2013-08-27 12:55:09 UTC) #1
dave_cheney.net
On 2013/08/27 12:55:09, wallyworld wrote: > Please take a look. This branch is in conflict, ...
10 years, 8 months ago (2013-08-27 12:58:22 UTC) #2
jameinel
Some quick feedback before I leave for the day. I haven't gone through everything yet. ...
10 years, 8 months ago (2013-08-27 13:08:52 UTC) #3
wallyworld
https://codereview.appspot.com/13278043/diff/1/environs/storage.go File environs/storage.go (right): https://codereview.appspot.com/13278043/diff/1/environs/storage.go#newcode33 environs/storage.go:33: } On 2013/08/27 13:08:52, jameinel wrote: > I wonder ...
10 years, 8 months ago (2013-08-27 13:13:18 UTC) #4
wallyworld
> I have a concern that currently on clouds which do not have tools deploy, ...
10 years, 8 months ago (2013-08-27 13:16:47 UTC) #5
wallyworld
Please take a look. https://codereview.appspot.com/13278043/diff/1/cmd/juju/bootstrap_test.go File cmd/juju/bootstrap_test.go (right): https://codereview.appspot.com/13278043/diff/1/cmd/juju/bootstrap_test.go#newcode231 cmd/juju/bootstrap_test.go:231: checkTools(c, env, v120All) On 2013/08/27 ...
10 years, 8 months ago (2013-08-27 13:26:23 UTC) #6
dave_cheney.net
> Only EC2 clouds use the s3 bucket. Other clouds use their own public > ...
10 years, 8 months ago (2013-08-27 13:30:23 UTC) #7
fwereade
On 2013/08/27 13:30:23, dfc wrote: > > I discussed this with William on irc and ...
10 years, 8 months ago (2013-08-27 14:41:00 UTC) #8
fwereade
The behaviour change is AFAICT properly restricted to bootstrap time, and appears to auto-sync tools ...
10 years, 8 months ago (2013-08-27 15:13:47 UTC) #9
wallyworld
Please take a look. https://codereview.appspot.com/13278043/diff/10001/environs/bootstrap/bootstrap_test.go File environs/bootstrap/bootstrap_test.go (right): https://codereview.appspot.com/13278043/diff/10001/environs/bootstrap/bootstrap_test.go#newcode199 environs/bootstrap/bootstrap_test.go:199: }} On 2013/08/27 15:13:47, fwereade ...
10 years, 8 months ago (2013-08-28 00:31:47 UTC) #10
dave_cheney.net
10 years, 8 months ago (2013-08-28 00:37:41 UTC) #11
NOT LGTM. Please do no submit this til after 1.13.3 has been cut.
Sign in to reply to this message.

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