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

Issue 30300043: cmd/juju: make upgrade-juju compatible with 1.16 (Closed)

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

Description

cmd/juju: make upgrade-juju compatible with 1.16 Fixes bug lp:1253628 by introducting a workaround: when the EnvironmentGet API command is not available, the command runs with direct access to the state db, as it was in 1.16. Added a helper in state/api/params/apierror.go, useful to detect "no such request" errors from the API server. https://code.launchpad.net/~dimitern/juju-core/203-lp-1253628-upgrade-juju-1.16-compat/+merge/196118 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : cmd/juju: make upgrade-juju compatible with 1.16 #

Total comments: 6

Patch Set 3 : cmd/juju: make upgrade-juju compatible with 1.16 #

Patch Set 4 : cmd/juju: make upgrade-juju compatible with 1.16 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -0 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/upgradejuju.go View 1 2 3 3 chunks +51 lines, -0 lines 0 comments Download
M rpc/client.go View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M rpc/reflect_test.go View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6
dimitern
Please take a look.
11 years, 3 months ago (2013-11-21 14:16:23 UTC) #1
jameinel
This LGTM I think we're going to be using your helper a lot more in ...
11 years, 3 months ago (2013-11-21 14:26:18 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/30300043/diff/1/state/api/params/apierror.go File state/api/params/apierror.go (right): https://codereview.appspot.com/30300043/diff/1/state/api/params/apierror.go#newcode124 state/api/params/apierror.go:124: } On 2013/11/21 14:26:19, jameinel ...
11 years, 3 months ago (2013-11-21 14:43:35 UTC) #3
rog
LGTM modulo the below https://codereview.appspot.com/30300043/diff/20001/cmd/juju/upgradejuju.go File cmd/juju/upgradejuju.go (right): https://codereview.appspot.com/30300043/diff/20001/cmd/juju/upgradejuju.go#newcode127 cmd/juju/upgradejuju.go:127: if err != nil && ...
11 years, 3 months ago (2013-11-21 15:02:10 UTC) #4
dimitern
Please take a look. https://codereview.appspot.com/30300043/diff/20001/cmd/juju/upgradejuju.go File cmd/juju/upgradejuju.go (right): https://codereview.appspot.com/30300043/diff/20001/cmd/juju/upgradejuju.go#newcode127 cmd/juju/upgradejuju.go:127: if err != nil && ...
11 years, 3 months ago (2013-11-21 15:18:15 UTC) #5
dimitern
11 years, 3 months ago (2013-11-21 15:27:58 UTC) #6
Please take a look.
Sign in to reply to this message.

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