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

Issue 71920043: New FindTools API call for upgrades (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by wallyworld
Modified:
10 years, 1 month ago
Reviewers:
mp+209582, fwereade, thumper, mfoord
Visibility:
Public.

Description

New FindTools API call for upgrades The upgrade command was directly instantiating an environ instance in order to call FindTools. A new API call is provided to allow this to be moved to the server side where it belongs. The existing 1.16 compatibility code has grown a fair bit to accommodate this change, but is being removed after 1.18 anyway. A consequence of this work is a change to how upgrades internally implement --upload-tools. There was an inconsistency in that bootstrap and sync-tools commands used Prepare, and upgrade used the env directly from state. Now all 3 commands share a common implementation, using Prepare. It is reasonable to expect that users running juju upgradde-juju --upload-tools will have the environ config locally. Other work involved moving common tools test code so it can be shared. https://code.launchpad.net/~wallyworld/juju-core/upgrade-remove-legacy/+merge/209582 Requires: https://code.launchpad.net/~wallyworld/juju-core/enable-major-upgrades/+merge/209378 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : New FindTools API call for upgrades #

Patch Set 3 : New FindTools API call for upgrades #

Total comments: 9

Patch Set 4 : New FindTools API call for upgrades #

Patch Set 5 : New FindTools API call for upgrades #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -202 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 2 chunks +5 lines, -27 lines 0 comments Download
A cmd/juju/common.go View 1 1 chunk +46 lines, -0 lines 0 comments Download
M cmd/juju/synctools.go View 1 2 chunks +5 lines, -19 lines 0 comments Download
M cmd/juju/upgradejuju.go View 1 2 3 10 chunks +137 lines, -74 lines 0 comments Download
M environs/tools/testing/testing.go View 1 2 3 3 chunks +76 lines, -0 lines 0 comments Download
M environs/tools/tools_test.go View 1 4 chunks +4 lines, -82 lines 0 comments Download
M state/api/client.go View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M state/api/params/internal.go View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M state/apiserver/client/client.go View 1 2 3 4 3 chunks +23 lines, -0 lines 0 comments Download
M state/apiserver/client/client_test.go View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9
wallyworld
Please take a look.
10 years, 2 months ago (2014-03-06 05:50:42 UTC) #1
fwereade
pre-review comment: man, we should have in-env storage, so that clients can upload tools directly ...
10 years, 2 months ago (2014-03-06 15:24:02 UTC) #2
mfoord
https://codereview.appspot.com/71920043/diff/1/cmd/juju/bootstrap.go File cmd/juju/bootstrap.go (left): https://codereview.appspot.com/71920043/diff/1/cmd/juju/bootstrap.go#oldcode116 cmd/juju/bootstrap.go:116: if _, err := store.ReadInfo(c.EnvName); !errors.IsNotFoundError(err) { We're in ...
10 years, 2 months ago (2014-03-06 15:39:06 UTC) #3
wallyworld
Please take a look.
10 years, 1 month ago (2014-03-10 00:48:11 UTC) #4
wallyworld
Please take a look.
10 years, 1 month ago (2014-03-11 01:25:08 UTC) #5
thumper
https://codereview.appspot.com/71920043/diff/40001/cmd/juju/upgradejuju.go File cmd/juju/upgradejuju.go (right): https://codereview.appspot.com/71920043/diff/40001/cmd/juju/upgradejuju.go#newcode179 cmd/juju/upgradejuju.go:179: availableTools, err = findTools1dot17(cfg) Why 1dot17 and not 1dot16? ...
10 years, 1 month ago (2014-03-11 02:30:35 UTC) #6
wallyworld
Please take a look. https://codereview.appspot.com/71920043/diff/40001/cmd/juju/upgradejuju.go File cmd/juju/upgradejuju.go (right): https://codereview.appspot.com/71920043/diff/40001/cmd/juju/upgradejuju.go#newcode179 cmd/juju/upgradejuju.go:179: availableTools, err = findTools1dot17(cfg) On ...
10 years, 1 month ago (2014-03-11 02:57:24 UTC) #7
wallyworld
Please take a look.
10 years, 1 month ago (2014-03-11 03:02:08 UTC) #8
thumper
10 years, 1 month ago (2014-03-11 03:48:52 UTC) #9
LGTM

I have a feeling there will be more work soon around finding the appropriate
tools for the cloud, but that is outside the scope of this change.
Sign in to reply to this message.

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