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

Issue 40670043: cmd/juju/addmachine: compat with 1.16

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by jameinel
Modified:
10 years, 4 months ago
Reviewers:
mp+198503, axw, fwereade
CC:
axw1
Visibility:
Public.

Description

cmd/juju/addmachine: compat with 1.16 This addresses bug #1253631. It changes the 'juju add-machine ssh:foo' to fall back to direct DB access when it is unable to make the new API calls. Some of the code is also refactored a bit to make it clearer when we are gathering information, vs when we are acting on that information (recording it in state, etc). This also required bringing DestroyMachines back somewhere that we could share the code (instead of only living in cmd/juju/destroymachine). I went for state/statecmd even though I didn't end up sharing that code with the API server. (We could, but we're quite likely to be deleting it soon, and it seemed like busy work to move it just to move it back.) https://code.launchpad.net/~jameinel/juju-core/add-machine-manual-compat-1253631/+merge/198503 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 7

Patch Set 2 : cmd/juju/addmachine: compat with 1.16 #

Patch Set 3 : cmd/juju/addmachine: compat with 1.16 #

Patch Set 4 : cmd/juju/addmachine: compat with 1.16 #

Patch Set 5 : cmd/juju/addmachine: compat with 1.16 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+785 lines, -626 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cloudinit/sshinit/configure.go View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cmd/juju/destroymachine.go View 1 2 3 3 chunks +5 lines, -35 lines 0 comments Download
M environs/authenticationprovider.go View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M environs/manual/provisioner.go View 1 2 3 4 6 chunks +145 lines, -40 lines 0 comments Download
M environs/manual/provisioner_test.go View 1 2 3 4 2 chunks +10 lines, -8 lines 0 comments Download
state/apiserver/client/client.go View 1 2 3 2 chunks +2 lines, -39 lines 0 comments Download
state/apiserver/client/status.go View 1 2 3 1 chunk +0 lines, -21 lines 0 comments Download
state/apiserver/client/status.go View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
A state/statecmd/destroymachines.go View 1 chunk +43 lines, -0 lines 0 comments Download
A state/statecmd/machineconfig.go View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
state/statecmd/status.go View 1 2 3 1 chunk +0 lines, -476 lines 0 comments Download
D state/statecmd/status.go View 1 2 3 4 1 chunk +476 lines, -0 lines 0 comments Download
M worker/provisioner/provisioner.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M worker/provisioner/provisioner_task.go View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
worker/provisioner/provisioner_test.go View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 6
jameinel
Please take a look.
10 years, 4 months ago (2013-12-11 06:49:27 UTC) #1
axw
LGTM, just quibbles https://codereview.appspot.com/40670043/diff/1/environs/manual/provisioner.go File environs/manual/provisioner.go (right): https://codereview.appspot.com/40670043/diff/1/environs/manual/provisioner.go#newcode192 environs/manual/provisioner.go:192: Constraints: machineParams.Constraints, // not used If ...
10 years, 4 months ago (2013-12-18 08:47:04 UTC) #2
fwereade
LGTM modulo possible changes re authentication.go https://codereview.appspot.com/40670043/diff/1/environs/manual/provisioner.go File environs/manual/provisioner.go (right): https://codereview.appspot.com/40670043/diff/1/environs/manual/provisioner.go#newcode255 environs/manual/provisioner.go:255: nonce := fmt.Sprintf("%s:%s", ...
10 years, 4 months ago (2013-12-18 08:54:35 UTC) #3
jameinel
Please take a look. https://codereview.appspot.com/40670043/diff/1/environs/manual/provisioner.go File environs/manual/provisioner.go (right): https://codereview.appspot.com/40670043/diff/1/environs/manual/provisioner.go#newcode192 environs/manual/provisioner.go:192: Constraints: machineParams.Constraints, // not used ...
10 years, 4 months ago (2013-12-18 12:26:34 UTC) #4
jameinel
I went ahead with environs. I couldn't come up with something better, and I really ...
10 years, 4 months ago (2013-12-19 09:47:01 UTC) #5
jameinel
10 years, 4 months ago (2013-12-19 09:48:14 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