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

Issue 22980045: Hook up container setup logic (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by wallyworld
Modified:
10 years, 5 months ago
Reviewers:
axw, mp+195344
Visibility:
Public.

Description

Hook up container setup logic The main focus of this branch is to wore up the logic to intialise container infrastructure when they are first provisioned. Right now, that means apt-get install any required packages, but that may expand to include downloading/sync images etc. A new container.Initialisation interface is created, with implementations for lxc and kvm. This allows the current simple package install logic to be expanded later. The lxc package install in cloudinit is removed since it is no longer needed there. The provisioner worker has been tweaked to add in kvm support (but waiting on kvm broker). Some test code was moved from the apt util to testbase to that the apt cmd output could be captured in several tests. https://code.launchpad.net/~wallyworld/juju-core/container-dependencies/+merge/195344 Requires: https://code.launchpad.net/~wallyworld/juju-core/lazy-container-provisioners/+merge/194795 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -106 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M container/interface.go View 1 chunk +8 lines, -0 lines 2 comments Download
A container/kvm/initialisation.go View 1 chunk +35 lines, -0 lines 2 comments Download
A container/lxc/initialisation.go View 1 chunk +33 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 chunk +0 lines, -5 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 chunk +0 lines, -3 lines 0 comments Download
A testing/testbase/cmd.go View 1 chunk +27 lines, -0 lines 2 comments Download
A testing/testbase/cmd_test.go View 1 chunk +32 lines, -0 lines 0 comments Download
M utils/apt.go View 3 chunks +4 lines, -4 lines 0 comments Download
M utils/apt_test.go View 7 chunks +6 lines, -24 lines 0 comments Download
M worker/provisioner/container_initialisation.go View 2 chunks +27 lines, -17 lines 0 comments Download
M worker/provisioner/container_initialisation_test.go View 6 chunks +110 lines, -40 lines 0 comments Download
M worker/provisioner/provisioner.go View 2 chunks +25 lines, -13 lines 0 comments Download

Messages

Total messages: 3
wallyworld
Please take a look.
10 years, 5 months ago (2013-11-15 06:46:35 UTC) #1
axw
LGTM with below https://codereview.appspot.com/22980045/diff/1/container/interface.go File container/interface.go (right): https://codereview.appspot.com/22980045/diff/1/container/interface.go#newcode33 container/interface.go:33: // Initialiser is responsible for performing ...
10 years, 5 months ago (2013-11-15 07:48:16 UTC) #2
wallyworld
10 years, 5 months ago (2013-11-18 03:15:45 UTC) #3
https://codereview.appspot.com/22980045/diff/1/container/interface.go
File container/interface.go (right):

https://codereview.appspot.com/22980045/diff/1/container/interface.go#newcode33
container/interface.go:33: // Initialiser is responsible for performing the
steps required to initialise
On 2013/11/15 07:48:17, axw wrote:
> HostInitializer would be more informative: I expected it to be about
> initialising the container itself.
>
 
Done.

> Also, I've been told that we should standardize on U.S. spellings.

Ewww. I checked with Tim and he said there's no such policy :-)

https://codereview.appspot.com/22980045/diff/1/container/kvm/initialisation.go
File container/kvm/initialisation.go (right):

https://codereview.appspot.com/22980045/diff/1/container/kvm/initialisation.g...
container/kvm/initialisation.go:24: func NewContainerInitialiser()
container.Initialiser {
On 2013/11/15 07:48:17, axw wrote:
> I would prefer NewHostInitializer, to go with the other suggestion.

Done.

https://codereview.appspot.com/22980045/diff/1/testing/testbase/cmd.go
File testing/testbase/cmd.go (right):

https://codereview.appspot.com/22980045/diff/1/testing/testbase/cmd.go#newcode11
testing/testbase/cmd.go:11: // actual command and it's output back via a
channel, and returns the error
On 2013/11/15 07:48:17, axw wrote:
> s/it's/its/

Done.
Sign in to reply to this message.

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