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

Issue 57110043: Update the proxy settings for the uniter process

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by thumper
Modified:
10 years, 3 months ago
Reviewers:
dimitern, mp+203259
Visibility:
Public.

Description

Update the proxy settings for the uniter process Some parts of the standard library functions can take advantage of proxy settings when downloading things. We should make sure that the agent process gets these values too. https://code.launchpad.net/~thumper/juju-core/uniter-set-osenv/+merge/203259 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -0 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M juju/osenv/proxy.go View 1 chunk +16 lines, -0 lines 1 comment Download
M juju/osenv/proxy_test.go View 2 chunks +25 lines, -0 lines 0 comments Download
M worker/uniter/uniter.go View 1 chunk +2 lines, -0 lines 0 comments Download
M worker/uniter/uniter_test.go View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 3
thumper
Please take a look.
10 years, 3 months ago (2014-01-26 20:24:06 UTC) #1
dimitern
LGTM. Is the uniter the only thing that might need the proxy settings? How about ...
10 years, 3 months ago (2014-01-27 00:12:55 UTC) #2
thumper
10 years, 3 months ago (2014-01-27 00:28:49 UTC) #3
On 2014/01/27 00:12:55, dimitern wrote:
> LGTM. Is the uniter the only thing that might need the proxy settings? How
about
> the upgrader and deployer?

I have a branch following that will add an environment watcher to the machine
agent.
We need a place to keep the files on disk correct, and it will also make sure
that
the environment settings for the process are good.

The golang net module will use the proxy settings if they are set.

> https://codereview.appspot.com/57110043/diff/1/juju/osenv/proxy.go
> File juju/osenv/proxy.go (right):
> 
> https://codereview.appspot.com/57110043/diff/1/juju/osenv/proxy.go#newcode78
> juju/osenv/proxy.go:78: //
> Why both upper-case and lower-case?

It seems to be historical. To the best of my knowledge most processes look for
the
lower-case versions, but unfortunately not all. Better to be safe and just set
both.

I would love to be proved wrong, but at this stage, it seems like the best
approach.
Sign in to reply to this message.

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