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

Issue 6294096: cmd/jujud: initial machine agent implementation

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

Description

cmd/jujud: initial machine agent implementation https://code.launchpad.net/~rogpeppe/juju-core/machine-agent/+merge/111256 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : cmd/jujud: initial machine agent implementation #

Patch Set 3 : cmd/jujud: initial machine agent implementation #

Total comments: 7

Patch Set 4 : cmd/jujud: initial machine agent implementation #

Total comments: 13

Patch Set 5 : cmd/jujud: initial machine agent implementation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -6 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 1 2 3 4 2 chunks +91 lines, -1 line 0 comments Download
M cmd/jujud/machine_test.go View 2 chunks +161 lines, -1 line 0 comments Download
M container/container.go View 1 1 chunk +1 line, -1 line 0 comments Download
M upstart/upstart.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M upstart/upstart_test.go View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 7
rog
Please take a look.
11 years, 10 months ago (2012-06-20 16:55:03 UTC) #1
fwereade
Not sure it's quite ready yet; would appreciate your thoughts on the following. https://codereview.appspot.com/6294096/diff/4002/cmd/jujud/machine.go File ...
11 years, 10 months ago (2012-06-20 17:10:06 UTC) #2
rog
Please take a look. https://codereview.appspot.com/6294096/diff/4002/cmd/jujud/machine.go File cmd/jujud/machine.go (right): https://codereview.appspot.com/6294096/diff/4002/cmd/jujud/machine.go#newcode67 cmd/jujud/machine.go:67: type Machiner struct { On ...
11 years, 10 months ago (2012-06-20 17:43:17 UTC) #3
niemeyer
LGTM. Very nice. https://codereview.appspot.com/6294096/diff/5007/cmd/jujud/machine.go File cmd/jujud/machine.go (right): https://codereview.appspot.com/6294096/diff/5007/cmd/jujud/machine.go#newcode43 cmd/jujud/machine.go:43: // TODO reconnect when the agent ...
11 years, 10 months ago (2012-06-20 21:08:14 UTC) #4
roger.peppe
https://codereview.appspot.com/6294096/diff/5007/cmd/jujud/machine.go File cmd/jujud/machine.go (right): https://codereview.appspot.com/6294096/diff/5007/cmd/jujud/machine.go#newcode48 cmd/jujud/machine.go:48: go m.loop() On 2012/06/20 21:08:14, niemeyer wrote: > Oops. ...
11 years, 10 months ago (2012-06-20 21:14:30 UTC) #5
niemeyer
https://codereview.appspot.com/6294096/diff/4002/cmd/jujud/machine.go File cmd/jujud/machine.go (right): https://codereview.appspot.com/6294096/diff/4002/cmd/jujud/machine.go#newcode77 cmd/jujud/machine.go:77: watcher := m.machine.WatchUnits() On 2012/06/20 17:10:06, fwereade wrote: > ...
11 years, 10 months ago (2012-06-20 21:23:46 UTC) #6
rog
11 years, 10 months ago (2012-06-21 09:18:16 UTC) #7
*** Submitted:

cmd/jujud: initial machine agent implementation

R=fwereade, niemeyer, roger.peppe
CC=
https://codereview.appspot.com/6294096

https://codereview.appspot.com/6294096/diff/5007/cmd/jujud/machine.go
File cmd/jujud/machine.go (right):

https://codereview.appspot.com/6294096/diff/5007/cmd/jujud/machine.go#newcode43
cmd/jujud/machine.go:43: // TODO reconnect when the agent fails.
On 2012/06/20 21:08:14, niemeyer wrote:
> s/agent/machiner/

Done.

https://codereview.appspot.com/6294096/diff/5007/cmd/jujud/machine.go#newcode56
cmd/jujud/machine.go:56: var err error
On 2012/06/20 21:08:14, niemeyer wrote:
> (m *Machiner, err error)

not entirely convinced, but done.

https://codereview.appspot.com/6294096/diff/5007/cmd/jujud/machine.go#newcode84
cmd/jujud/machine.go:84: // and restart them if not.
On 2012/06/20 21:08:14, niemeyer wrote:
> ... and track them so that we don't deploy units below
> that are already running.

Done.

https://codereview.appspot.com/6294096/diff/5007/cmd/jujud/machine.go#newcode109
cmd/jujud/machine.go:109: // TODO what should we do in this case?
On 2012/06/20 21:08:14, niemeyer wrote:
> This one we can act more proactively, putting it in a local queue for
retrying,
> in addition to doing the normal verification when the process starts.

Done.
Sign in to reply to this message.

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