Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add support for apt-no-proxy option #7119
Conversation
wupeka
added some commits
Mar 17, 2017
|
!!testme!! |
|
!!test!! |
|
Did you look into whether plain "http-proxy" ends up mixed in with the apt
settings?
John
=:->
On Mar 17, 2017 19:14, "Witold Krecicki" <notifications@github.com> wrote:
!!test!!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7119 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAMYfSSYQxkmcjUme2g4JxLP8JQJsxcIks5rmqM5gaJpZM4MgrEH>
.
|
|
Currently - yes, it is a fallback if apt-*-proxy is not present and *-proxy is present. |
|
!!test!! |
jameinel
approved these changes
Mar 20, 2017
All the changes here look sane to me, but it doesn't seem to actually set Acquire:: sort of settings. Is that all done inside the 'utils' package?
|
FAIL: config_test.go:1090: ConfigSuite.TestAptProxyConfigMap config_test.go:1102: This sort of test suite failure should be something you can iterate on without needing to use the bot. Feel free to ping me if you're confused how to run a subset of the test suite on your own machine. |
|
I realize you might not know things like "go test -check.v -check.f REGEX" to run a subset of the tests for a particular package. |
|
!!test!! |
|
Did you get this to a point for another review? I see that the tests have passed |
|
Yes, it is ready for review. When this one is merged I'll add PR for https://bugs.launchpad.net/juju/+bug/1666353 as it depends on it. |
jameinel
approved these changes
Mar 23, 2017
One minor comment tweak
The changes look good to me. Have you tried running them on a live environment?
One thing I like to do is set up "apt install apt-cacher-ng" on the machine that hosts the main MAAS server, and then configure both MAAS and Juju environments on that machine to use the proxy. It generally makes "bootstrap" and "deploy" quite a bit faster, if you're doing repeated testing. And it gives you an excuse to test the APT settings and see that they are working as expected.
| @@ -664,6 +669,11 @@ func (c *Config) AptFTPProxy() string { | ||
| return addSchemeIfMissing("ftp", c.getWithFallback(AptFTPProxyKey, FTPProxyKey)) | ||
| } | ||
| +// AptNoProxy returns the 'apt-no proxy' for the environment. |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
wupeka commentedMar 17, 2017
Description of change
Add support for apt-no-proxy - disable proxy for apt for selected hosts.
QA steps
Documentation changes
This option has to be documented in juju/docs
Bug reference
https://bugs.launchpad.net/juju/+bug/1466951