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

Issue 6572064: Refactor of local provider to use Cloud Images

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by clint.byrum
Modified:
11 years, 6 months ago
Reviewers:
mp+126865, hazmat
Visibility:
Public.

Description

Refactor of local provider to use Cloud Images - Boots a full container with cloud-init each time, No more template container + clone - Removes upstart job for storage server. Also fixes machine-agent to be killable on destroy-env - Uses LXC's default networking rather than libvirt. Removes dependency on libvirt entirely. - Regresses HTTPS apt support for local provider because cloud-init doesn't have a way to make the distinction. - Regresses performance for the case where the download is cached. rsync'ing from the debootstrap is a little faster than extracting the tar.gz. Also we now do a full apt-get upgrade, so all updates have to be unpacked/configured. https://code.launchpad.net/~clint-fewbar/juju/local-cloud-img/+merge/126865 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+585 lines, -838 lines) Patch
M Makefile View 1 chunk +1 line, -1 line 0 comments Download
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M juju/agents/tests/test_base.py View 1 chunk +1 line, -1 line 0 comments Download
M juju/control/options.py View 1 chunk +1 line, -1 line 0 comments Download
M juju/lib/lxc/__init__.py View 8 chunks +42 lines, -93 lines 2 comments Download
D juju/lib/lxc/data/juju-create View 1 chunk +0 lines, -156 lines 0 comments Download
D juju/lib/lxc/data/lxc.conf View 1 chunk +0 lines, -3 lines 0 comments Download
M juju/lib/lxc/tests/test_lxc.py View 13 chunks +34 lines, -88 lines 0 comments Download
A juju/machine/tests/data/test_get_container View 1 chunk +44 lines, -0 lines 0 comments Download
M juju/machine/tests/test_unit_deployment.py View 5 chunks +22 lines, -40 lines 4 comments Download
M juju/machine/unit.py View 5 chunks +55 lines, -59 lines 0 comments Download
M juju/providers/common/cloudinit.py View 9 chunks +78 lines, -6 lines 0 comments Download
A juju/providers/common/tests/data/cloud_init_no_machine_id View 1 chunk +10 lines, -0 lines 0 comments Download
A juju/providers/common/tests/data/cloud_init_ppa_apt_proxy View 1 chunk +39 lines, -0 lines 0 comments Download
M juju/providers/common/tests/test_cloudinit.py View 4 chunks +36 lines, -2 lines 0 comments Download
M juju/providers/common/utils.py View 3 chunks +7 lines, -1 line 0 comments Download
M juju/providers/local/__init__.py View 7 chunks +17 lines, -14 lines 0 comments Download
M juju/providers/local/agent.py View 2 chunks +3 lines, -9 lines 1 comment Download
M juju/providers/local/files.py View 3 chunks +11 lines, -9 lines 0 comments Download
M juju/providers/local/network.py View 1 chunk +66 lines, -118 lines 0 comments Download
M juju/providers/local/tests/test_files.py View 2 chunks +9 lines, -51 lines 0 comments Download
M juju/providers/local/tests/test_network.py View 1 chunk +106 lines, -184 lines 0 comments Download
M juju/providers/local/tests/test_provider.py View 1 chunk +1 line, -1 line 0 comments Download
M setup.py View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 5
clint.byrum
Please take a look.
11 years, 7 months ago (2012-09-28 07:09:06 UTC) #1
hazmat
this looks great, thanks clint. i'm gonna run through some functional passes in the morning. ...
11 years, 6 months ago (2012-10-05 03:54:07 UTC) #2
hazmat
https://codereview.appspot.com/6572064/diff/1/juju/providers/local/agent.py File juju/providers/local/agent.py (right): https://codereview.appspot.com/6572064/diff/1/juju/providers/local/agent.py#newcode65 juju/providers/local/agent.py:65: "/var/run/juju/%s-machine-agent.zksession" % juju_unit_namespace] The session file should be in ...
11 years, 6 months ago (2012-10-05 13:50:57 UTC) #3
clint.byrum
https://codereview.appspot.com/6572064/diff/1/juju/lib/lxc/__init__.py File juju/lib/lxc/__init__.py (right): https://codereview.appspot.com/6572064/diff/1/juju/lib/lxc/__init__.py#newcode54 juju/lib/lxc/__init__.py:54: cloud_init_file=None, On 2012/10/05 03:54:07, hazmat wrote: > cloud init ...
11 years, 6 months ago (2012-10-05 14:13:11 UTC) #4
hazmat
11 years, 6 months ago (2012-10-05 15:02:37 UTC) #5
The env passing here doesn't work, as sudo will strip. see this for an
alternative

http://bazaar.launchpad.net/~hazmat/juju/lxc-killpid/view/head:/juju/lib/serv...
Sign in to reply to this message.

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