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

Issue 6938072: jujud: machine agent removes dead units

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

Description

jujud: machine agent removes dead units This was accomplished by using a Deployer in place of a Machiner, thereby rendering redundant and enabling the removal of: * the container package * the worker/machiner package * the state.MachinePrincipalUnitsWatcher type In the name of clarity and convenience, the following methods were added: * (*state.State) Addrs() []string * (*state.State) CACert() []byte * (*state.UnitsWatcher) EntityName() string ...allowing for neater Manager and Deployer creation. https://code.launchpad.net/~fwereade/juju-core/machine-agent-deployer/+merge/140174 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : jujud: machine agent removes dead units #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -930 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 2 chunks +8 lines, -2 lines 0 comments Download
D container/container.go View 1 chunk +0 lines, -114 lines 0 comments Download
D container/container_test.go View 1 chunk +0 lines, -111 lines 0 comments Download
M state/machine_test.go View 2 chunks +3 lines, -259 lines 0 comments Download
M state/open.go View 4 chunks +20 lines, -9 lines 0 comments Download
M state/state.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/state_test.go View 1 chunk +6 lines, -0 lines 0 comments Download
M state/watcher.go View 6 chunks +32 lines, -166 lines 0 comments Download
M worker/deployer/deployer.go View 1 chunk +2 lines, -2 lines 0 comments Download
M worker/deployer/deployer_test.go View 4 chunks +4 lines, -4 lines 0 comments Download
M worker/deployer/simple.go View 1 chunk +2 lines, -2 lines 0 comments Download
D worker/machiner/export_test.go View 1 chunk +0 lines, -10 lines 0 comments Download
D worker/machiner/machiner.go View 1 chunk +0 lines, -95 lines 0 comments Download
D worker/machiner/machiner_test.go View 1 chunk +0 lines, -156 lines 0 comments Download

Messages

Total messages: 4
fwereade
Please take a look.
11 years, 4 months ago (2012-12-17 11:25:41 UTC) #1
dimitern
On 2012/12/17 11:25:41, fwereade wrote: > Please take a look. LGTM, nice!
11 years, 4 months ago (2012-12-17 12:21:29 UTC) #2
rog
On 2012/12/17 12:21:29, dimitern wrote: > On 2012/12/17 11:25:41, fwereade wrote: > > Please take ...
11 years, 4 months ago (2012-12-17 13:52:10 UTC) #3
fwereade
11 years, 4 months ago (2012-12-17 14:41:41 UTC) #4
*** Submitted:

jujud: machine agent removes dead units

This was accomplished by using a Deployer in place of a Machiner, thereby
rendering redundant and enabling the removal of:

  * the container package
  * the worker/machiner package
  * the state.MachinePrincipalUnitsWatcher type

In the name of clarity and convenience, the following methods were added:

  * (*state.State) Addrs() []string
  * (*state.State) CACert() []byte
  * (*state.UnitsWatcher) EntityName() string

...allowing for neater Manager and Deployer creation.

R=dimitern, rog
CC=
https://codereview.appspot.com/6938072
Sign in to reply to this message.

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