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

Issue 74370044: Use lxc clone on trusty

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by thumper
Modified:
10 years, 1 month ago
Reviewers:
sidnei.da.silva, mp+210536, wallyworld
Visibility:
Public.

Description

Use lxc clone on trusty This branch speeds up lxc containers for the local provider only by creating a template as needed that persists between environments, and this template is then used as a basis for the machines created in the environment using lxc-clone. If /var/lib/lxc is a btrfs filesystem, the containers use btrfs snapshots. If not, the containers are created using aufs snapshots. In addition to this, the apt-get update/upgrade step is skipped during cloud-init for the cloned machines. Since the testing required a go routine to shut down the template container, the mock containers had to be made go routine safe for the state checking. Certain extra info was also added for the mock containers, being the config file and console log. https://code.launchpad.net/~thumper/juju-core/fast-lxc-no-apt-upgrade/+merge/210536 Requires: https://code.launchpad.net/~thumper/juju-core/update-golxc-version/+merge/210492 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 8

Patch Set 2 : Use lxc clone on trusty #

Unified diffs Side-by-side diffs Delta from patch set Stats (+528 lines, -64 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M container/interface.go View 1 1 chunk +16 lines, -0 lines 0 comments Download
M container/kvm/kvm.go View 1 1 chunk +3 lines, -8 lines 0 comments Download
M container/kvm/kvm_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
A container/lxc/clonetemplate.go View 1 chunk +219 lines, -0 lines 0 comments Download
M container/lxc/lxc.go View 1 9 chunks +75 lines, -30 lines 0 comments Download
M container/lxc/lxc_test.go View 1 7 chunks +110 lines, -3 lines 0 comments Download
M container/lxc/mock/mock-lxc.go View 10 chunks +87 lines, -19 lines 0 comments Download
M container/userdata.go View 1 3 chunks +9 lines, -3 lines 0 comments Download
M provider/local/environ.go View 2 chunks +2 lines, -0 lines 0 comments Download
M worker/provisioner/lxc-broker_test.go View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5
thumper
Please take a look.
10 years, 1 month ago (2014-03-12 04:59:07 UTC) #1
wallyworld
I'm not fully across the finer details about lxc cloning. I think this looks good. ...
10 years, 1 month ago (2014-03-12 05:42:24 UTC) #2
sidnei.da.silva
https://codereview.appspot.com/74370044/diff/1/container/lxc/clonetemplate.go File container/lxc/clonetemplate.go (right): https://codereview.appspot.com/74370044/diff/1/container/lxc/clonetemplate.go#newcode142 container/lxc/clonetemplate.go:142: if backingFilesystem == Btrfs { I find it odd ...
10 years, 1 month ago (2014-03-12 08:31:38 UTC) #3
thumper
Please take a look. https://codereview.appspot.com/74370044/diff/1/container/lxc/clonetemplate.go File container/lxc/clonetemplate.go (right): https://codereview.appspot.com/74370044/diff/1/container/lxc/clonetemplate.go#newcode142 container/lxc/clonetemplate.go:142: if backingFilesystem == Btrfs { ...
10 years, 1 month ago (2014-03-13 02:12:27 UTC) #4
wallyworld
10 years, 1 month ago (2014-03-13 02:47:59 UTC) #5
LGTM. Let's get this landed, but I'd still like to see tests that the template
doesn't start etc.
Sign in to reply to this message.

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