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

Issue 6845120: worker/deployer: initial implementation

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

Description

worker/deployer: initial implementation Please consider this as both a serious proposal, from a logic point of view, and as a strawman intended to provoke discussion of the best way to get this merged. Please note that, if we use a Deployer in place of a Machiner: * the container package becomes redundant * the machiner package becomes redundant * Machine.WatchPrincipalUnits becomes redundant, and can be discarded to make way for the implementation currently known as WatchPrincipalUnits2 ...and all of this is great, but the best way to merge this in has caused some contention in IRC, so I'd appreciate guidance here. https://code.launchpad.net/~fwereade/juju-core/deployer-worker/+merge/137359 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 51

Patch Set 2 : worker/deployer: initial implementation #

Total comments: 3

Patch Set 3 : worker/deployer: initial implementation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+851 lines, -15 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/assign_test.go View 1 chunk +39 lines, -0 lines 0 comments Download
M state/export_test.go View 1 chunk +0 lines, -15 lines 0 comments Download
M state/unit.go View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M state/watcher.go View 1 chunk +15 lines, -0 lines 0 comments Download
A worker/deployer/deployer.go View 1 2 1 chunk +194 lines, -0 lines 0 comments Download
A worker/deployer/deployer_test.go View 1 1 chunk +228 lines, -0 lines 0 comments Download
A worker/deployer/simple.go View 1 1 chunk +164 lines, -0 lines 0 comments Download
A worker/deployer/simple_test.go View 1 1 chunk +198 lines, -0 lines 0 comments Download

Messages

Total messages: 11
fwereade
Please take a look.
11 years, 4 months ago (2012-12-01 00:29:37 UTC) #1
aram
I haven't fully reviewed this, but I like the direction things are going.
11 years, 4 months ago (2012-12-03 17:08:34 UTC) #2
TheMue
So far LGTM, some points discussed on irc. https://codereview.appspot.com/6845120/diff/1/worker/deployer/deployer.go File worker/deployer/deployer.go (right): https://codereview.appspot.com/6845120/diff/1/worker/deployer/deployer.go#newcode12 worker/deployer/deployer.go:12: type ...
11 years, 4 months ago (2012-12-05 10:22:39 UTC) #3
aram
https://codereview.appspot.com/6845120/diff/1/worker/deployer/deployer.go File worker/deployer/deployer.go (right): https://codereview.appspot.com/6845120/diff/1/worker/deployer/deployer.go#newcode12 worker/deployer/deployer.go:12: type Context interface { I was unhappy with Context ...
11 years, 4 months ago (2012-12-05 10:49:33 UTC) #4
rog
looks good. some minor comments below. https://codereview.appspot.com/6845120/diff/1/state/unit.go File state/unit.go (right): https://codereview.appspot.com/6845120/diff/1/state/unit.go#newcode212 state/unit.go:212: func (u *Unit) ...
11 years, 4 months ago (2012-12-05 16:36:06 UTC) #5
fwereade
Thanks for the comments; I'd appreciate a little more discussion on some points before I ...
11 years, 4 months ago (2012-12-05 23:00:01 UTC) #6
rog
LGTM with a few further thoughts below. https://codereview.appspot.com/6845120/diff/1/worker/deployer/deployer.go File worker/deployer/deployer.go (right): https://codereview.appspot.com/6845120/diff/1/worker/deployer/deployer.go#newcode70 worker/deployer/deployer.go:70: // changed ...
11 years, 4 months ago (2012-12-06 07:49:38 UTC) #7
niemeyer
Good stuff, thanks! https://codereview.appspot.com/6845120/diff/1/worker/deployer/deployer.go File worker/deployer/deployer.go (right): https://codereview.appspot.com/6845120/diff/1/worker/deployer/deployer.go#newcode12 worker/deployer/deployer.go:12: type Context interface { I think ...
11 years, 4 months ago (2012-12-06 17:11:36 UTC) #8
fwereade
Please take a look. https://codereview.appspot.com/6845120/diff/1/worker/deployer/deployer.go File worker/deployer/deployer.go (right): https://codereview.appspot.com/6845120/diff/1/worker/deployer/deployer.go#newcode12 worker/deployer/deployer.go:12: type Context interface { On ...
11 years, 4 months ago (2012-12-11 15:46:52 UTC) #9
niemeyer
LGTM https://codereview.appspot.com/6845120/diff/13001/worker/deployer/deployer.go File worker/deployer/deployer.go (right): https://codereview.appspot.com/6845120/diff/13001/worker/deployer/deployer.go#newcode119 worker/deployer/deployer.go:119: log.Printf("worker/deployer: deploying agent for unit %q", unit) "deploying ...
11 years, 4 months ago (2012-12-14 16:51:46 UTC) #10
fwereade
11 years, 4 months ago (2012-12-14 17:11:11 UTC) #11
*** Submitted:

worker/deployer: initial implementation

Please consider this as both a serious proposal, from a logic point of view,
and as a strawman intended to provoke discussion of the best way to get this
merged. Please note that, if we use a Deployer in place of a Machiner:

  * the container package becomes redundant
  * the machiner package becomes redundant
  * Machine.WatchPrincipalUnits becomes redundant, and can be discarded to
    make way for the implementation currently known as WatchPrincipalUnits2

...and all of this is great, but the best way to merge this in has caused
some contention in IRC, so I'd appreciate guidance here.

R=aram, TheMue, rog, niemeyer
CC=
https://codereview.appspot.com/6845120
Sign in to reply to this message.

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