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

Issue 14231044: Fix upgrade 1.14 -> 1.15 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by dimitern
Modified:
10 years, 7 months ago
Reviewers:
mp+188802, jameinel, fwereade
Visibility:
Public.

Description

Fix upgrade 1.14 -> 1.15 This adds a Tools() API call to provisioner API, similarly to the upgrader API. Common code factored out into apiserver/common/tools.go. SetAgentTools() renamed to SetAgentVersion() in machine and unit state types. Also renamed a few types in params to be shorter or better reflect what are they about. Added DEPRECATE(v1.18) tags to bits of the API that need cleanup. Live tested on EC2 - after copying the tools from /tools/releases/ to /tools/ the upgrade proceeds and finishes successfully. https://code.launchpad.net/~dimitern/juju-core/150-fix-1.14-upgrade-upgrader/+merge/188802 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 21

Patch Set 2 : Fix upgrade 1.14 -> 1.15 #

Total comments: 18

Patch Set 3 : Fix upgrade 1.14 -> 1.15 #

Total comments: 2

Patch Set 4 : Fix upgrade 1.14 -> 1.15 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -225 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/status_test.go View 1 3 chunks +3 lines, -13 lines 0 comments Download
M cmd/jujud/agent.go View 1 2 chunks +4 lines, -3 lines 0 comments Download
M environs/testing/tools.go View 1 2 2 chunks +5 lines, -7 lines 0 comments Download
M state/api/params/internal.go View 1 2 3 1 chunk +28 lines, -21 lines 0 comments Download
M state/api/provisioner/provisioner.go View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
M state/api/provisioner/provisioner_test.go View 1 2 chunks +22 lines, -0 lines 0 comments Download
M state/api/upgrader/upgrader.go View 1 2 3 3 chunks +10 lines, -10 lines 0 comments Download
M state/api/upgrader/upgrader_test.go View 1 2 3 3 chunks +6 lines, -8 lines 0 comments Download
A state/apiserver/common/tools.go View 1 2 1 chunk +100 lines, -0 lines 0 comments Download
A state/apiserver/common/tools_test.go View 1 1 chunk +71 lines, -0 lines 0 comments Download
M state/apiserver/provisioner/provisioner.go View 2 chunks +2 lines, -0 lines 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 2 chunks +46 lines, -0 lines 0 comments Download
M state/apiserver/upgrader/upgrader.go View 1 2 3 6 chunks +20 lines, -60 lines 0 comments Download
M state/apiserver/upgrader/upgrader_test.go View 1 2 5 chunks +8 lines, -12 lines 0 comments Download
M state/interface.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M state/machine.go View 1 2 chunks +13 lines, -13 lines 0 comments Download
M state/machine_test.go View 1 3 chunks +2 lines, -13 lines 0 comments Download
M state/state_test.go View 1 4 chunks +4 lines, -14 lines 0 comments Download
M state/tools_test.go View 1 2 chunks +9 lines, -10 lines 0 comments Download
M state/unit.go View 1 2 chunks +9 lines, -7 lines 0 comments Download
M worker/provisioner/lxc-broker_test.go View 1 3 chunks +2 lines, -12 lines 0 comments Download
M worker/provisioner/provisioner.go View 2 chunks +1 line, -9 lines 0 comments Download
M worker/upgrader/upgrader.go View 1 2 3 1 chunk +2 lines, -11 lines 0 comments Download
M worker/upgrader/upgrader_test.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
dimitern
Please take a look.
10 years, 7 months ago (2013-10-02 10:24:58 UTC) #1
fwereade
comments mostly as discussed live, I think https://codereview.appspot.com/14231044/diff/1/state/api/provisioner/provisioner_test.go File state/api/provisioner/provisioner_test.go (right): https://codereview.appspot.com/14231044/diff/1/state/api/provisioner/provisioner_test.go#newcode377 state/api/provisioner/provisioner_test.go:377: s.machine.SetAgentTools(curTools) Eww. ...
10 years, 7 months ago (2013-10-02 11:22:04 UTC) #2
jameinel
I think the change in worker/upgrader/upgrader.go will actually break the worker because it can't get ...
10 years, 7 months ago (2013-10-02 12:21:31 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/14231044/diff/1/cmd/juju/destroyenvironment.go File cmd/juju/destroyenvironment.go (left): https://codereview.appspot.com/14231044/diff/1/cmd/juju/destroyenvironment.go#oldcode49 cmd/juju/destroyenvironment.go:49: } On 2013/10/02 12:21:31, jameinel ...
10 years, 7 months ago (2013-10-02 13:33:32 UTC) #4
jameinel
generally LGTM, though we discussed on IRC what was concerning me https://codereview.appspot.com/14231044/diff/10001/state/api/params/internal.go File state/api/params/internal.go (right): ...
10 years, 7 months ago (2013-10-02 13:53:21 UTC) #5
fwereade
More thoughts, open to some argument on most of them I think. https://codereview.appspot.com/14231044/diff/10001/environs/testing/tools.go File environs/testing/tools.go ...
10 years, 7 months ago (2013-10-02 14:21:03 UTC) #6
dimitern
Please take a look. https://codereview.appspot.com/14231044/diff/10001/environs/testing/tools.go File environs/testing/tools.go (right): https://codereview.appspot.com/14231044/diff/10001/environs/testing/tools.go#newcode59 environs/testing/tools.go:59: c.Assert(obtained.URL, gc.Equals, expected.URL) On 2013/10/02 ...
10 years, 7 months ago (2013-10-02 14:33:56 UTC) #7
fwereade
LGTM, but please drop the DEPRECATE business in favour of a bug to clean up ...
10 years, 7 months ago (2013-10-02 16:06:49 UTC) #8
dimitern
Please take a look. https://codereview.appspot.com/14231044/diff/10001/state/api/upgrader/upgrader.go File state/api/upgrader/upgrader.go (right): https://codereview.appspot.com/14231044/diff/10001/state/api/upgrader/upgrader.go#newcode32 state/api/upgrader/upgrader.go:32: // DEPRECATE(v1.18) Rename this to ...
10 years, 7 months ago (2013-10-02 16:29:55 UTC) #9
dimitern
10 years, 7 months ago (2013-10-02 16:30:59 UTC) #10
I also filed a bug about API cleanup:
https://bugs.launchpad.net/juju-core/+bug/1234287

So I'm landing this now.
Sign in to reply to this message.

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