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

Issue 6819115: environs: add a certificate argument to Bootstrap

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

Description

environs: add a certificate argument to Bootstrap https://code.launchpad.net/~rogpeppe/juju-core/139-bootstrap-cert/+merge/133537 Requires: https://code.launchpad.net/~rogpeppe/juju-core/138-cloudinit-cert/+merge/133516 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs: add a certificate argument to Bootstrap #

Total comments: 2

Patch Set 3 : environs: add a certificate argument to Bootstrap #

Total comments: 18

Patch Set 4 : environs: add a certificate argument to Bootstrap #

Patch Set 5 : environs: add a certificate argument to Bootstrap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -67 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/builddb/main.go View 1 chunk +2 lines, -1 line 0 comments Download
M cmd/juju/bootstrap.go View 1 chunk +2 lines, -1 line 0 comments Download
M environs/dummy/environs.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/ec2/ec2.go View 1 2 3 4 chunks +39 lines, -42 lines 0 comments Download
M environs/ec2/live_test.go View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M environs/interface.go View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M environs/jujutest/livetests.go View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M environs/jujutest/tests.go View 1 2 3 4 chunks +9 lines, -8 lines 0 comments Download
M environs/open_test.go View 1 chunk +1 line, -1 line 0 comments Download
M juju/conn_test.go View 6 chunks +6 lines, -6 lines 0 comments Download
M juju/testing/conn.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
rog
Please take a look.
11 years, 6 months ago (2012-11-08 18:19:57 UTC) #1
dave_cheney.net
LGTM. https://codereview.appspot.com/6819115/diff/2001/environs/interface.go File environs/interface.go (right): https://codereview.appspot.com/6819115/diff/2001/environs/interface.go#newcode136 environs/interface.go:136: Bootstrap(uploadTools bool, certAndKey []byte) error I think the ...
11 years, 6 months ago (2012-11-09 00:24:26 UTC) #2
rog
https://codereview.appspot.com/6819115/diff/2001/environs/interface.go File environs/interface.go (right): https://codereview.appspot.com/6819115/diff/2001/environs/interface.go#newcode136 environs/interface.go:136: Bootstrap(uploadTools bool, certAndKey []byte) error On 2012/11/09 00:24:26, dfc ...
11 years, 5 months ago (2012-11-09 12:29:48 UTC) #3
rog
Please take a look.
11 years, 5 months ago (2012-11-12 12:43:30 UTC) #4
niemeyer
LGTM https://codereview.appspot.com/6819115/diff/5001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6819115/diff/5001/environs/ec2/ec2.go#newcode210 environs/ec2/ec2.go:210: func (e *environ) Bootstrap(uploadTools bool, certAndKey []byte) error ...
11 years, 5 months ago (2012-11-14 13:59:06 UTC) #5
TheMue
LGTM, only small comments. https://codereview.appspot.com/6819115/diff/5001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6819115/diff/5001/environs/ec2/ec2.go#newcode352 environs/ec2/ec2.go:352: config *config.Config config inside a ...
11 years, 5 months ago (2012-11-14 14:02:20 UTC) #6
rog
11 years, 5 months ago (2012-11-14 15:04:14 UTC) #7
*** Submitted:

environs: add a certificate argument to Bootstrap

R=dfc, niemeyer, TheMue
CC=
https://codereview.appspot.com/6819115

https://codereview.appspot.com/6819115/diff/5001/environs/ec2/ec2.go
File environs/ec2/ec2.go (right):

https://codereview.appspot.com/6819115/diff/5001/environs/ec2/ec2.go#newcode210
environs/ec2/ec2.go:210: func (e *environ) Bootstrap(uploadTools bool,
certAndKey []byte) error {
On 2012/11/14 13:59:07, niemeyer wrote:
> s/certAndKey/stateServerPEM/

Done.

https://codereview.appspot.com/6819115/diff/5001/environs/ec2/ec2.go#newcode323
environs/ec2/ec2.go:323: master:    false,
On 2012/11/14 13:59:07, niemeyer wrote:
> The default is false.

Done.

https://codereview.appspot.com/6819115/diff/5001/environs/ec2/ec2.go#newcode351
environs/ec2/ec2.go:351: master     bool
On 2012/11/14 13:59:07, niemeyer wrote:
> stateServer

done, but i'm not sure. being a state server is just one of the potential
attributes of the bootstrap instance, and that's what "master" signifies in this
context. given that the only field it affects in cloudinit.MachineConfig is
StateServer, it's probably ok, but might change back in the future.

https://codereview.appspot.com/6819115/diff/5001/environs/ec2/ec2.go#newcode352
environs/ec2/ec2.go:352: config     *config.Config
On 2012/11/14 14:02:20, TheMue wrote:
> config inside a config? Hmm, maybe startInstanceParams or something like that
is
> better.

Done.

https://codereview.appspot.com/6819115/diff/5001/environs/ec2/ec2.go#newcode353
environs/ec2/ec2.go:353: certAndKey []byte
On 2012/11/14 13:59:07, niemeyer wrote:
> stateServerPEM

Done.

https://codereview.appspot.com/6819115/diff/5001/environs/ec2/live_test.go
File environs/ec2/live_test.go (right):

https://codereview.appspot.com/6819115/diff/5001/environs/ec2/live_test.go#ne...
environs/ec2/live_test.go:60: ServerCertAndKey: []byte("fake cert"), // TODO
On 2012/11/14 14:02:20, TheMue wrote:
> What is to do? Didn't we wanted to write 
> 
> // TODO(wrtp) Do this and that.
> 
> So in case of an unplanned absence a colleague easier could continue.

Done.

https://codereview.appspot.com/6819115/diff/5001/environs/interface.go
File environs/interface.go (right):

https://codereview.appspot.com/6819115/diff/5001/environs/interface.go#newcod...
environs/interface.go:135: // key are specified in PEM format.
On 2012/11/14 13:59:07, niemeyer wrote:
> s/certAndKey/stateServerPEM/
> 
> // The stateServerPEM parameter holds both the private key and the
> // respective certificate to be used by the initial state server.

Done.

https://codereview.appspot.com/6819115/diff/5001/environs/jujutest/livetests.go
File environs/jujutest/livetests.go (right):

https://codereview.appspot.com/6819115/diff/5001/environs/jujutest/livetests....
environs/jujutest/livetests.go:26: ServerCertAndKey []byte
On 2012/11/14 13:59:07, niemeyer wrote:
> StateServerPEM

Done.

https://codereview.appspot.com/6819115/diff/5001/environs/jujutest/tests.go
File environs/jujutest/tests.go (right):

https://codereview.appspot.com/6819115/diff/5001/environs/jujutest/tests.go#n...
environs/jujutest/tests.go:25: ServerCertAndKey []byte
On 2012/11/14 13:59:07, niemeyer wrote:
> StateServerPEM

Done.
Sign in to reply to this message.

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