|
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)
Total comments: 7
|
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
|
Total messages: 6
|