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

Issue 13635044: Implement manual bootstrapping

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by axw
Modified:
12 years ago
Reviewers:
mp+184714, axw1, fwereade, thumper, rog
Visibility:
Public.

Description

Implement manual bootstrapping environs/bootstrap: - Added BootstrapStorage interface. If an Environ implements this interface, its BootstrapStorage will be used by cmd/juju bootstrap. cmd/juju: - Updated bootstrap subcommand to use environs/bootstrap.BootstrapStorage, as described above. provider/local/storage: - Added LocalStorageConfig interface, which an Environ may implement to describe the configuration of a "localstorage". environs/filestorage: - Added NewFileStorage (i.e. implement StorageWrite) for testing in environs/manual. environs/manual: - Refactored existing code to support bootstrap machines. - Added "Bootstrap" function to manually bootstrap an existing machine. To manually bootstrap, you must provide an environment that implements the new LocalStorageConfig and BootstrapStorage interfaces. In other words, you can (currently) only manually bootstrap a machine which is expected to manage the storage for its environment. This may be relaxed later if needed. Next up is the null provider, which uses this new Bootstrap function. I need to address one last issue with it first: the null provider mustn't narrow the tools to default-series. https://code.launchpad.net/~axwalk/juju-core/manual-bootstrap/+merge/184714 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Implement manual bootstrapping #

Total comments: 18

Patch Set 3 : Implement manual bootstrapping #

Total comments: 64

Patch Set 4 : Implement manual bootstrapping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -150 lines) Patch
M .lbox.check View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M environs/filestorage/filestorage.go View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M environs/interface.go View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M environs/manual/agent.go View 1 2 3 4 chunks +28 lines, -40 lines 0 comments Download
A environs/manual/bootstrap.go View 1 2 3 1 chunk +135 lines, -0 lines 0 comments Download
A environs/manual/bootstrap_test.go View 1 2 3 1 chunk +163 lines, -0 lines 0 comments Download
M environs/manual/detection.go View 1 2 3 5 chunks +14 lines, -3 lines 0 comments Download
M environs/manual/detection_test.go View 1 2 3 5 chunks +7 lines, -63 lines 0 comments Download
A environs/manual/fakessh_test.go View 1 2 3 1 chunk +113 lines, -0 lines 0 comments Download
M environs/manual/provisioner.go View 1 2 3 2 chunks +17 lines, -10 lines 0 comments Download
M environs/manual/provisioner_test.go View 1 2 3 4 chunks +27 lines, -23 lines 0 comments Download
A environs/manual/tools.go View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M testing/checkers/set.go View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M testing/checkers/set_test.go View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
A worker/localstorage/config.go View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M worker/localstorage/worker.go View 1 2 3 3 chunks +15 lines, -8 lines 0 comments Download

Messages

Total messages: 15
axw
Please take a look.
12 years ago (2013-09-10 02:36:14 UTC) #1
axw
Please take a look.
12 years ago (2013-09-11 05:16:27 UTC) #2
fwereade
Looking very nice; just a few questions, and a suggestion that you consider moving the ...
12 years ago (2013-09-11 13:51:21 UTC) #3
axw1
Thank you for the review. I have moved provider/local/storage to worker/localstorage. https://codereview.appspot.com/13635044/diff/4001/cmd/juju/bootstrap.go File cmd/juju/bootstrap.go (right): ...
12 years ago (2013-09-12 07:59:00 UTC) #4
axw
Please take a look.
12 years ago (2013-09-12 08:07:52 UTC) #5
fwereade
This is great, thanks. Modulo the /tmp-filesystem issue, this LGTM, on the understanding that the ...
12 years ago (2013-09-13 09:24:59 UTC) #6
axw1
Haven't pushed changes yet, need to sort out the storage issues. Here's my answers anyway. ...
12 years ago (2013-09-13 09:41:25 UTC) #7
rog
Looks good. Some minor comments and suggestions below. https://codereview.appspot.com/13635044/diff/14001/cmd/juju/bootstrap.go File cmd/juju/bootstrap.go (right): https://codereview.appspot.com/13635044/diff/14001/cmd/juju/bootstrap.go#newcode76 cmd/juju/bootstrap.go:76: environ ...
12 years ago (2013-09-14 07:28:03 UTC) #8
thumper
Still some changes needed here I think https://codereview.appspot.com/13635044/diff/14001/cmd/juju/bootstrap.go File cmd/juju/bootstrap.go (right): https://codereview.appspot.com/13635044/diff/14001/cmd/juju/bootstrap.go#newcode76 cmd/juju/bootstrap.go:76: environ = ...
12 years ago (2013-09-16 03:02:08 UTC) #9
axw1
https://codereview.appspot.com/13635044/diff/14001/cmd/juju/bootstrap.go File cmd/juju/bootstrap.go (right): https://codereview.appspot.com/13635044/diff/14001/cmd/juju/bootstrap.go#newcode76 cmd/juju/bootstrap.go:76: environ = &bootstrapStorageEnviron{environ, bootstrapStorage} On 2013/09/16 03:02:08, thumper wrote: ...
12 years ago (2013-09-16 04:56:48 UTC) #10
axw
Please take a look.
12 years ago (2013-09-16 06:12:37 UTC) #11
rog
https://codereview.appspot.com/13635044/diff/14001/environs/manual/bootstrap.go File environs/manual/bootstrap.go (right): https://codereview.appspot.com/13635044/diff/14001/environs/manual/bootstrap.go#newcode28 environs/manual/bootstrap.go:28: bootstrap.BootstrapStorager On 2013/09/16 04:56:48, axw1 wrote: > On 2013/09/16 ...
12 years ago (2013-09-16 16:51:34 UTC) #12
thumper
On 2013/09/16 16:51:34, rog wrote: > https://codereview.appspot.com/13635044/diff/14001/environs/manual/bootstrap.go > File environs/manual/bootstrap.go (right): > > https://codereview.appspot.com/13635044/diff/14001/environs/manual/bootstrap.go#newcode28 > ...
12 years ago (2013-09-16 21:01:31 UTC) #13
rog
On 16 September 2013 22:01, <tim.penhey@canonical.com> wrote: > Why not then just call the interface ...
12 years ago (2013-09-16 21:41:47 UTC) #14
fwereade
12 years ago (2013-09-19 09:28:28 UTC) #15
If the only remaining contentious point is (Has)BootstrapStorage(r), then I call
dealer's choice and LGTM whatever he picks; I don't think any of the names are
great, but I also don't think any of them are so bad as to unacceptably reduce
the quality of the codebase ;).

If there are other problems, carry on as usual, ofc, but let's not block this on
naming arguments.
Sign in to reply to this message.

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