|
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)
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
|
Total messages: 3
|