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

Issue 6203083: jujud: add primordial provisioning agent (Closed)

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

Description

jujud: add primordial provisioning agent https://code.launchpad.net/~dave-cheney/juju/go-provisioning-agent/+merge/105912 Requires: https://code.launchpad.net/~dave-cheney/juju/go-environ-schema/+merge/105769 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : jujud: add primordial provisioning agent #

Patch Set 3 : jujud: add primordial provisioning agent #

Patch Set 4 : jujud: add primordial provisioning agent #

Patch Set 5 : jujud: add primordial provisioning agent #

Total comments: 5

Patch Set 6 : jujud: add primordial provisioning agent #

Patch Set 7 : jujud: add primordial provisioning agent #

Patch Set 8 : jujud: add primordial provisioning agent #

Patch Set 9 : jujud: add primordial provisioning agent #

Total comments: 5

Patch Set 10 : jujud: add primordial provisioning agent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -2 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A cmd/jujud/environ.go View 1 2 3 4 5 6 7 8 9 1 chunk +178 lines, -0 lines 0 comments Download
A cmd/jujud/machines.go View 1 2 3 4 5 6 7 8 9 1 chunk +152 lines, -0 lines 0 comments Download
M cmd/jujud/provisioning.go View 1 2 3 4 5 6 7 8 9 2 chunks +36 lines, -2 lines 0 comments Download
M state/state.go View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5
fwereade
LGTM apart from NewProviderService; I'm not sure whether it should take a State, or just ...
11 years, 11 months ago (2012-05-18 09:08:25 UTC) #1
dave_cheney.net
The requirement to pass in the state.Info is a wart, currently environ.StartInstance needs it. I'll ...
11 years, 11 months ago (2012-05-18 09:16:20 UTC) #2
rog
as discussed on IRC this morning, i think there might be a better approach. we ...
11 years, 11 months ago (2012-05-18 13:42:12 UTC) #3
TheMue
I'm missing some helpful comments to get a better understanding of what happens here and ...
11 years, 11 months ago (2012-05-21 07:23:28 UTC) #4
dave_cheney.net
11 years, 11 months ago (2012-05-21 07:26:47 UTC) #5
Thanks frank, this is still an WIP, i'll let you know when it's ready
for review.

On Mon, May 21, 2012 at 5:23 PM,  <themue@gmail.com> wrote:
> I'm missing some helpful comments to get a better understanding of what
> happens here and why.
>
>
> https://codereview.appspot.com/6203083/diff/12001/cmd/jujud/machines.go
> File cmd/jujud/machines.go (right):
>
>
https://codereview.appspot.com/6203083/diff/12001/cmd/jujud/machines.go#newco...
> cmd/jujud/machines.go:13: mu  sync.Mutex       // protects mm
> mutex or mux is better than mu.
>
>
https://codereview.appspot.com/6203083/diff/12001/cmd/jujud/machines.go#newco...
> cmd/jujud/machines.go:14: mm  map[int]*machine // maps from state
> machine id to *machine worker
> machineMap or just machines will make it easier to read the code later.
>
>
https://codereview.appspot.com/6203083/diff/12001/cmd/jujud/machines.go#newco...
> cmd/jujud/machines.go:30: m.mu.Unlock()
> defer m.mu.Unlock() after Lock() unlocks even if createMachine() panics.
>
>
https://codereview.appspot.com/6203083/diff/12001/cmd/jujud/machines.go#newco...
> cmd/jujud/machines.go:45: // must be called with m.mu locked, see
> StartMachine
> // createMachine returns a new machine with the given id. It has
> // to be called with m.mutex locked due to the registration of
> // the machine in m.machines.
>
>
https://codereview.appspot.com/6203083/diff/12001/cmd/jujud/machines.go#newco...
> cmd/jujud/machines.go:67: type machine struct {
> Missing comments, also for many methods.
>
> https://codereview.appspot.com/6203083/
Sign in to reply to this message.

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