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

Issue 6294066: cmd/jujud: provisioner can now start and stop instances (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by dave
Modified:
12 years, 6 months ago
Reviewers:
mp+109753
Visibility:
Public.

Description

cmd/jujud: provisioner can now start and stop instances This branch adds the ability for the provisioning agent to start and stop instances according to changes in state. To be implemented in a later branch is the ability for the PA to reconcile the set of instances running with the set of instances known to the state. https://code.launchpad.net/~dave-cheney/juju-core/go-cmd-provisioning-start-stop-instance/+merge/109753 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : cmd/jujud: provisioner can now start and stop instances #

Total comments: 36

Patch Set 3 : cmd/jujud: provisioner can now start and stop instances #

Patch Set 4 : cmd/jujud: provisioner can now start and stop instances #

Patch Set 5 : cmd/jujud: provisioner can now start and stop instances #

Total comments: 20

Patch Set 6 : cmd/jujud: provisioner can now start and stop instances #

Patch Set 7 : cmd/jujud: provisioner can now start and stop instances #

Patch Set 8 : cmd/jujud: provisioner can now start and stop instances #

Patch Set 9 : cmd/jujud: provisioner can now start and stop instances #

Total comments: 4

Patch Set 10 : cmd/jujud: provisioner can now start and stop instances #

Patch Set 11 : cmd/jujud: provisioner can now start and stop instances #

Total comments: 49

Patch Set 12 : cmd/jujud: provisioner can now start and stop instances #

Total comments: 6

Patch Set 13 : cmd/jujud: provisioner can now start and stop instances #

Patch Set 14 : cmd/jujud: provisioner can now start and stop instances #

Total comments: 5

Patch Set 15 : cmd/jujud: provisioner can now start and stop instances #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -16 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/provisioning.go View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +147 lines, -8 lines 0 comments Download
M cmd/jujud/provisioning_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +293 lines, -8 lines 0 comments Download

Messages

Total messages: 24
dave_cheney.net
Please take a look.
12 years, 6 months ago (2012-06-12 07:17:11 UTC) #1
rog
this is looking good. https://codereview.appspot.com/6294066/diff/2001/cmd/jujud/provisioning.go File cmd/jujud/provisioning.go (right): https://codereview.appspot.com/6294066/diff/2001/cmd/jujud/provisioning.go#newcode56 cmd/jujud/provisioning.go:56: providerIdToInstance map[string]environs.Instance i'm not sure ...
12 years, 6 months ago (2012-06-12 09:34:02 UTC) #2
dave_cheney.net
Thanks for your feedback Rog, lots of little things to fix. I'll take another pass ...
12 years, 6 months ago (2012-06-12 09:40:22 UTC) #3
dave_cheney.net
Great feedback Rog, thanks. https://codereview.appspot.com/6294066/diff/2001/cmd/jujud/provisioning.go File cmd/jujud/provisioning.go (right): https://codereview.appspot.com/6294066/diff/2001/cmd/jujud/provisioning.go#newcode153 cmd/jujud/provisioning.go:153: // step 1. filter machines ...
12 years, 6 months ago (2012-06-12 10:14:27 UTC) #4
dave_cheney.net
Please take a look.
12 years, 6 months ago (2012-06-12 10:20:25 UTC) #5
dave_cheney.net
Please take a look. https://codereview.appspot.com/6294066/diff/2001/cmd/jujud/provisioning_test.go File cmd/jujud/provisioning_test.go (right): https://codereview.appspot.com/6294066/diff/2001/cmd/jujud/provisioning_test.go#newcode40 cmd/jujud/provisioning_test.go:40: // seed /environment to point ...
12 years, 6 months ago (2012-06-13 04:27:07 UTC) #6
rog
a few more comments... https://codereview.appspot.com/6294066/diff/2001/cmd/jujud/provisioning.go File cmd/jujud/provisioning.go (right): https://codereview.appspot.com/6294066/diff/2001/cmd/jujud/provisioning.go#newcode56 cmd/jujud/provisioning.go:56: providerIdToInstance map[string]environs.Instance nice to see ...
12 years, 6 months ago (2012-06-13 08:25:13 UTC) #7
niemeyer
I'll let you polish this with Roger until you're both happy or would like another ...
12 years, 6 months ago (2012-06-13 20:04:02 UTC) #8
dave_cheney.net
Understood, thanks, Rogers feedback has been very useful. On 14/06/2012, at 6:04, n13m3y3r@gmail.com wrote: > ...
12 years, 6 months ago (2012-06-13 21:59:23 UTC) #9
dave_cheney.net
Please take a look. https://codereview.appspot.com/6294066/diff/5/cmd/jujud/provisioning.go File cmd/jujud/provisioning.go (right): https://codereview.appspot.com/6294066/diff/5/cmd/jujud/provisioning.go#newcode56 cmd/jujud/provisioning.go:56: // TODO(dfc) machineId should be ...
12 years, 6 months ago (2012-06-14 00:32:03 UTC) #10
dave_cheney.net
Please take a look.
12 years, 6 months ago (2012-06-14 01:33:13 UTC) #11
dave_cheney.net
Please take a look.
12 years, 6 months ago (2012-06-14 04:19:23 UTC) #12
dave_cheney.net
Please take a look.
12 years, 6 months ago (2012-06-14 04:25:10 UTC) #13
rog
LGTM https://codereview.appspot.com/6294066/diff/5/cmd/jujud/provisioning.go File cmd/jujud/provisioning.go (right): https://codereview.appspot.com/6294066/diff/5/cmd/jujud/provisioning.go#newcode56 cmd/jujud/provisioning.go:56: // TODO(dfc) machineId should be a uint On ...
12 years, 6 months ago (2012-06-14 07:30:51 UTC) #14
dave_cheney.net
Please take a look. https://codereview.appspot.com/6294066/diff/5/cmd/jujud/provisioning.go File cmd/jujud/provisioning.go (right): https://codereview.appspot.com/6294066/diff/5/cmd/jujud/provisioning.go#newcode56 cmd/jujud/provisioning.go:56: // TODO(dfc) machineId should be ...
12 years, 6 months ago (2012-06-14 07:40:52 UTC) #15
dave_cheney.net
Please take a look.
12 years, 6 months ago (2012-06-15 05:47:28 UTC) #16
niemeyer
Great work, Dave. Have some comments, but they are pretty simple stuff. https://codereview.appspot.com/6294066/diff/8005/cmd/jujud/provisioning.go File cmd/jujud/provisioning.go ...
12 years, 6 months ago (2012-06-16 01:18:43 UTC) #17
dave_cheney.net
Please take a look. https://codereview.appspot.com/6294066/diff/8005/cmd/jujud/provisioning.go File cmd/jujud/provisioning.go (right): https://codereview.appspot.com/6294066/diff/8005/cmd/jujud/provisioning.go#newcode56 cmd/jujud/provisioning.go:56: machineIdToInstance map[int]environs.Instance On 2012/06/16 01:18:43, ...
12 years, 6 months ago (2012-06-18 05:15:01 UTC) #18
niemeyer
Almost there. https://codereview.appspot.com/6294066/diff/8005/cmd/jujud/provisioning_test.go File cmd/jujud/provisioning_test.go (right): https://codereview.appspot.com/6294066/diff/8005/cmd/jujud/provisioning_test.go#newcode167 cmd/jujud/provisioning_test.go:167: s.checkStartInstance(c, op) On 2012/06/18 05:15:01, dfc wrote: ...
12 years, 6 months ago (2012-06-18 22:08:49 UTC) #19
dave_cheney.net
Thank you for review, i'll address these points now. https://codereview.appspot.com/6294066/diff/8005/cmd/jujud/provisioning_test.go File cmd/jujud/provisioning_test.go (right): https://codereview.appspot.com/6294066/diff/8005/cmd/jujud/provisioning_test.go#newcode167 cmd/jujud/provisioning_test.go:167: ...
12 years, 6 months ago (2012-06-18 22:47:40 UTC) #20
dave_cheney.net
Please take a look.
12 years, 6 months ago (2012-06-18 23:01:02 UTC) #21
niemeyer
A couple of ideas for your appraisal, but it LGTM in either case. Thanks for ...
12 years, 6 months ago (2012-06-19 01:08:46 UTC) #22
dave_cheney.net
Thanks for sticking with me, will address your final comments and submit. Then it's on ...
12 years, 6 months ago (2012-06-19 01:13:00 UTC) #23
dave_cheney.net
12 years, 6 months ago (2012-06-19 01:35:13 UTC) #24
*** Submitted:

cmd/jujud: provisioner can now start and stop instances

This branch adds the ability for the provisioning agent to 
start and stop instances according to changes in state.

To be implemented in a later branch is the ability for the PA
to reconcile the set of instances running with the set of 
instances known to the state.

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

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