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

Issue 12143043: Fetch apt proxy config via host apt-config (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by sidnei.da.silva
Modified:
10 years, 8 months ago
Reviewers:
mp+177737, dimitern, rog
Visibility:
Public.

Description

Fetch apt proxy config via host apt-config Since we're passing custom userdata to the ubuntu-cloud lxc template, it ends up not setting the apt_mirror to the MIRROR setting. Read apt proxy configuration from the container's host instead via the apt-config command and inject that into the container via apt_proxy cloud init setting for the http proxy plus a runcmd that writes /etc/apt/apt.conf.d/99proxy-extra with the same config as the host for the remaing settings not supported explicitly by cloud-init at the moment. https://code.launchpad.net/~sidnei/juju-core/lxc-mirror/+merge/177737 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Fetch MIRROR setting from /etc/default/lxc #

Patch Set 3 : Fetch apt proxy config via host apt-config #

Total comments: 2

Patch Set 4 : Fetch apt proxy config via host apt-config #

Patch Set 5 : Fetch apt proxy config via host apt-config #

Patch Set 6 : Fetch apt proxy config via host apt-config #

Total comments: 11

Patch Set 7 : Fetch apt proxy config via host apt-config #

Total comments: 4

Patch Set 8 : Fetch apt proxy config via host apt-config #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -19 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cloudinit/cloudinit_test.go View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M cloudinit/options.go View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M container/lxc/lxc.go View 1 2 3 4 5 6 7 4 chunks +30 lines, -0 lines 0 comments Download
M container/lxc/lxc_test.go View 1 2 3 4 5 6 7 4 chunks +29 lines, -2 lines 0 comments Download
M utils/apt.go View 1 2 3 4 5 6 7 3 chunks +34 lines, -8 lines 0 comments Download
M utils/apt_test.go View 1 2 3 4 5 6 3 chunks +71 lines, -9 lines 0 comments Download

Messages

Total messages: 10
sidnei.da.silva
Please take a look.
10 years, 9 months ago (2013-08-05 09:22:32 UTC) #1
sidnei.da.silva
Please take a look.
10 years, 9 months ago (2013-08-05 09:26:33 UTC) #2
dimitern
LGTM, although I think I reviewed part of that as a previous CL (AddFile, AddScripts, ...
10 years, 9 months ago (2013-08-05 10:46:08 UTC) #3
sidnei.da.silva
Please take a look.
10 years, 9 months ago (2013-08-05 11:05:46 UTC) #4
sidnei.da.silva
Please take a look. https://codereview.appspot.com/12143043/diff/7001/container/lxc/lxc_test.go File container/lxc/lxc_test.go (right): https://codereview.appspot.com/12143043/diff/7001/container/lxc/lxc_test.go#newcode46 container/lxc/lxc_test.go:46: []byte(aptConfig), 0755) On 2013/08/05 10:46:08, ...
10 years, 9 months ago (2013-08-05 11:48:58 UTC) #5
sidnei.da.silva
Please take a look.
10 years, 9 months ago (2013-08-05 11:55:41 UTC) #6
rog
Looks OK to me, although I'm not qualified to review it - I have no ...
10 years, 9 months ago (2013-08-05 16:05:34 UTC) #7
sidnei.da.silva
Please take a look. https://codereview.appspot.com/12143043/diff/15002/container/lxc/lxc_test.go File container/lxc/lxc_test.go (right): https://codereview.appspot.com/12143043/diff/15002/container/lxc/lxc_test.go#newcode124 container/lxc/lxc_test.go:124: c.Assert(scripts[len(scripts)-4], gc.Equals, "start jujud-machine-1-lxc-0") On ...
10 years, 9 months ago (2013-08-05 17:19:06 UTC) #8
rog
LGTM with a couple of trivials. Thanks a lot. https://codereview.appspot.com/12143043/diff/22001/container/lxc/lxc_test.go File container/lxc/lxc_test.go (right): https://codereview.appspot.com/12143043/diff/22001/container/lxc/lxc_test.go#newcode128 container/lxc/lxc_test.go:128: ...
10 years, 9 months ago (2013-08-05 17:35:38 UTC) #9
sidnei.da.silva
10 years, 9 months ago (2013-08-05 17:47:05 UTC) #10
Please take a look.

https://codereview.appspot.com/12143043/diff/22001/container/lxc/lxc_test.go
File container/lxc/lxc_test.go (right):

https://codereview.appspot.com/12143043/diff/22001/container/lxc/lxc_test.go#...
container/lxc/lxc_test.go:128: "ifconfig"})
On 2013/08/05 17:35:39, rog wrote:
> 
> We'd usually put the }) on a new line here, so each string gets its own line.

Done.

https://codereview.appspot.com/12143043/diff/22001/utils/apt.go
File utils/apt.go (right):

https://codereview.appspot.com/12143043/diff/22001/utils/apt.go#newcode61
utils/apt.go:61: "Acquire::ftp::Proxy"}
On 2013/08/05 17:35:39, rog wrote:
> 
> newline before } please

Done.
Sign in to reply to this message.

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