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

Issue 54230044: state: deprecate JobManageState

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by rog
Modified:
10 years, 3 months ago
Reviewers:
mue, dimitern, mp+202916, fwereade
Visibility:
Public.

Description

state: deprecate JobManageState It doesn't really make sense to have the two kinds of job. There shouldn't be a compatibility problem as all existing environments have a single state server machine with both jobs configured. https://code.launchpad.net/~rogpeppe/juju-core/487-remove-job-managestate/+merge/202916 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: deprecate JobManageState #

Total comments: 11

Patch Set 3 : state: deprecate JobManageState #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -144 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M charm/repo_test.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/status_test.go View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M cmd/jujud/bootstrap.go View 1 chunk +0 lines, -1 line 0 comments Download
M cmd/jujud/bootstrap_test.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/jujud/machine.go View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M cmd/jujud/machine_test.go View 1 2 15 chunks +18 lines, -27 lines 0 comments Download
M cmd/plugins/juju-restore/restore.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M juju/testing/utils.go View 1 chunk +1 line, -1 line 0 comments Download
M state/address.go View 1 chunk +1 line, -1 line 0 comments Download
M state/api/charmrevisionupdater/updater_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/api/keyupdater/authorisedkeys_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/api/params/constants.go View 1 chunk +3 lines, -5 lines 0 comments Download
M state/api/provisioner/provisioner_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/agent/agent_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/charmrevisionupdater/updater.go View 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/charmrevisionupdater/updater_test.go View 2 chunks +3 lines, -3 lines 0 comments Download
M state/apiserver/client/destroy_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/common/interfaces.go View 1 chunk +0 lines, -4 lines 0 comments Download
M state/apiserver/common/password_test.go View 5 chunks +3 lines, -6 lines 0 comments Download
M state/apiserver/deployer/deployer_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/machine/common_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 3 chunks +46 lines, -32 lines 0 comments Download
M state/apiserver/root.go View 1 chunk +0 lines, -6 lines 0 comments Download
M state/apiserver/root_test.go View 1 chunk +0 lines, -1 line 0 comments Download
M state/apiserver/testing/fakeauthorizer.go View 2 chunks +0 lines, -5 lines 0 comments Download
M state/assign_test.go View 1 chunk +0 lines, -7 lines 0 comments Download
M state/cleanup_test.go View 2 chunks +2 lines, -7 lines 0 comments Download
M state/machine.go View 1 2 3 chunks +9 lines, -5 lines 0 comments Download
M state/machine_test.go View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M state/open.go View 1 chunk +1 line, -1 line 0 comments Download
M state/state_test.go View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M testing/checkers/deepequal_test.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M worker/charmrevisionworker/revisionupdater_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/firewaller/firewaller.go View 1 chunk +1 line, -0 lines 0 comments Download
M worker/provisioner/kvm-broker_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/provisioner/lxc-broker_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/provisioner/provisioner_test.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8
rog
Please take a look.
10 years, 3 months ago (2014-01-23 19:04:35 UTC) #1
mue
Mostly LGTM from my side, pretty straightforward change. But would like a second review to ...
10 years, 3 months ago (2014-01-24 13:05:50 UTC) #2
rog
https://codereview.appspot.com/54230044/diff/20001/cmd/jujud/machine_test.go File cmd/jujud/machine_test.go (right): https://codereview.appspot.com/54230044/diff/20001/cmd/jujud/machine_test.go#newcode159 cmd/jujud/machine_test.go:159: m, _, _ := s.primeAgent(c, state.JobHostUnits) On 2014/01/24 13:05:51, ...
10 years, 3 months ago (2014-01-24 13:10:34 UTC) #3
mue
On 2014/01/24 13:10:34, rog wrote: > https://codereview.appspot.com/54230044/diff/20001/cmd/jujud/machine_test.go > File cmd/jujud/machine_test.go (right): > > https://codereview.appspot.com/54230044/diff/20001/cmd/jujud/machine_test.go#newcode159 > ...
10 years, 3 months ago (2014-01-24 13:25:11 UTC) #4
dimitern
Excellent! LGTM, with just a few comments. https://codereview.appspot.com/54230044/diff/20001/state/assign_test.go File state/assign_test.go (left): https://codereview.appspot.com/54230044/diff/20001/state/assign_test.go#oldcode794 state/assign_test.go:794: // Add ...
10 years, 3 months ago (2014-01-24 13:31:38 UTC) #5
rog
https://codereview.appspot.com/54230044/diff/20001/state/assign_test.go File state/assign_test.go (left): https://codereview.appspot.com/54230044/diff/20001/state/assign_test.go#oldcode794 state/assign_test.go:794: // Add a state management machine which can host ...
10 years, 3 months ago (2014-01-24 13:34:41 UTC) #6
rog
Please take a look.
10 years, 3 months ago (2014-01-24 14:44:54 UTC) #7
fwereade
10 years, 3 months ago (2014-01-24 14:49:28 UTC) #8
This is delightful. To add to the chorus, LGTM.

https://codereview.appspot.com/54230044/diff/20001/worker/firewaller/firewall...
File worker/firewaller/firewaller.go (right):

https://codereview.appspot.com/54230044/diff/20001/worker/firewaller/firewall...
worker/firewaller/firewaller.go:178: delete(fw.machineds, tag)
On 2014/01/24 13:31:38, dimitern wrote:
> On 2014/01/24 13:10:35, rog wrote:
> > On 2014/01/24 13:05:51, mue wrote:
> > > How is this related? Or just a catch?
> > 
> > It made the tests pass for me. And it definitely seems like a bug.
> 
> Please, make sure to test this live as well.

Looks solid to me, but yes, I am +1 on live tests of obvious driveby fixes.
Sign in to reply to this message.

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