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

Issue 37850043: state: AddMachine revamp continues

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by rog
Modified:
10 years, 4 months ago
Reviewers:
mp+197934, dimitern
Visibility:
Public.

Description

state: AddMachine revamp continues We bring the exported State methods closer to the underlying implementation. The old interface is still visible in the API, which we can't easily change for backward compatibility reasons. As a drive-by fix, we also remove state.Machine.TxnRevno because it's unnecessary. https://code.launchpad.net/~rogpeppe/juju-core/468-state-addmachines/+merge/197934 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: AddMachine revamp continues #

Patch Set 3 : state: AddMachine revamp continues #

Total comments: 31

Patch Set 4 : state: AddMachine revamp continues #

Patch Set 5 : state: AddMachine revamp continues #

Patch Set 6 : state: AddMachine revamp continues #

Patch Set 7 : state: AddMachine revamp continues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+585 lines, -679 lines) Patch
A [revision details] View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M agent/bootstrap.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/addmachine.go View 1 2 3 4 5 6 1 chunk +14 lines, -8 lines 0 comments Download
M cmd/juju/addmachine_test.go View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M cmd/juju/addunit_test.go View 1 chunk +4 lines, -6 lines 0 comments Download
M cmd/juju/deploy_test.go View 1 2 3 4 5 6 1 chunk +4 lines, -5 lines 0 comments Download
M cmd/juju/status_test.go View 1 2 3 4 5 6 2 chunks +6 lines, -9 lines 0 comments Download
M cmd/jujud/machine_test.go View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M environs/manual/provisioner.go View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M juju/deploy.go View 1 2 3 4 5 6 1 chunk +7 lines, -10 lines 0 comments Download
M provider/common/bootstrap_test.go View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M state/addmachine.go View 1 2 3 4 5 6 8 chunks +128 lines, -171 lines 0 comments Download
M state/address.go View 1 2 chunks +9 lines, -1 line 0 comments Download
M state/api/client.go View 1 2 3 4 5 6 1 chunk +0 lines, -10 lines 0 comments Download
M state/api/params/params.go View 1 2 3 4 5 6 1 chunk +25 lines, -5 lines 0 comments Download
M state/api/provisioner/provisioner_test.go View 1 2 3 4 5 6 4 chunks +13 lines, -19 lines 0 comments Download
M state/apiserver/agent/agent_test.go View 1 2 3 4 5 6 1 chunk +5 lines, -6 lines 0 comments Download
M state/apiserver/client/client.go View 1 2 3 4 5 6 3 chunks +50 lines, -60 lines 0 comments Download
M state/apiserver/client/client_test.go View 1 2 3 4 5 6 5 chunks +64 lines, -89 lines 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 2 3 4 5 6 3 chunks +7 lines, -9 lines 0 comments Download
M state/assign_test.go View 1 2 3 4 5 6 4 chunks +16 lines, -28 lines 0 comments Download
M state/cleanup_test.go View 1 2 3 4 5 6 1 chunk +4 lines, -6 lines 0 comments Download
M state/export_test.go View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M state/machine.go View 1 2 3 4 5 6 3 chunks +1 line, -7 lines 0 comments Download
M state/machine_test.go View 1 2 3 4 5 6 6 chunks +21 lines, -42 lines 0 comments Download
M state/state_test.go View 1 2 3 4 5 6 19 chunks +136 lines, -130 lines 0 comments Download
M state/unit.go View 1 4 chunks +5 lines, -6 lines 0 comments Download
M state/watcher.go View 1 2 3 4 5 6 6 chunks +30 lines, -10 lines 0 comments Download
M worker/provisioner/container_initialisation_test.go View 1 2 3 chunks +8 lines, -12 lines 0 comments Download
M worker/provisioner/kvm-broker_test.go View 1 1 chunk +4 lines, -6 lines 0 comments Download
M worker/provisioner/lxc-broker_test.go View 1 1 chunk +4 lines, -6 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 1 2 3 4 5 6 2 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
10 years, 5 months ago (2013-12-05 18:46:07 UTC) #1
dimitern
Looks great so far, just a bunch of mostly trivials. TxnRevNo removal should be part ...
10 years, 5 months ago (2013-12-06 13:13:37 UTC) #2
rog
Please take a look. https://codereview.appspot.com/37850043/diff/40001/juju/conn.go File juju/conn.go (left): https://codereview.appspot.com/37850043/diff/40001/juju/conn.go#oldcode366 juju/conn.go:366: // See https://bugs.launchpad.net/juju-core/+bug/1252799 On 2013/12/06 ...
10 years, 4 months ago (2013-12-19 21:03:25 UTC) #3
dimitern
LGTM, thank you. https://codereview.appspot.com/37850043/diff/40001/state/apiserver/client/client_test.go File state/apiserver/client/client_test.go (right): https://codereview.appspot.com/37850043/diff/40001/state/apiserver/client/client_test.go#newcode1650 state/apiserver/client/client_test.go:1650: c.Assert(machineResult.Error, gc.NotNil) On 2013/12/19 21:03:26, rog ...
10 years, 4 months ago (2013-12-19 21:09:29 UTC) #4
rog
Please take a look.
10 years, 4 months ago (2013-12-19 21:11:29 UTC) #5
rog
10 years, 4 months ago (2013-12-20 12:17:12 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