bad apt proxy config file in deployed nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Anastasia |
Bug Description
In a local provider installation:
The host system contains the following:
/etc/apt/
Acquire:
The host system has squid-deb-proxy running so this apt-proxy configuration works as it should.
When you juju deploy an instance within the local provider, that same apt-proxy configuration parameter is placed directly in /etc/apt/
The problem is that the network bridge for a local provider using lxc is something like 10.0.3.1, however, the deployed node thinks the the proxy server is sitting at http://
If I were to set apt-http-proxy in my environments.yaml file I could understand it being copied to the deployed node, however, the way juju seems to handle it now is just blindly copying over the proxy settings from an `apt-config dump`.
This type of scenario may have not been tested, however, this will put a damper on early users wishing to adopt juju and only having a single system to work with. This will also been seen a lot more since I believe a lot of users like to use squid-deb-proxy for their package caching.
The relevant code for this is in `utils/apt.go` and pretty much that entire package.
tags: | added: apt-http-proxy cloud-installer local-provider |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 1.19.1 |
Changed in juju-core: | |
milestone: | 1.20.0 → next-stable |
tags: |
added: proxy removed: apt-http-proxy |
Changed in juju-core: | |
assignee: | nobody → Anastasia (anastasia-macmood) |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
milestone: | 1.21 → 1.21-alpha3 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
So a workaround is to set apt-proxy=http:// 10.0.3. 1:8000 in your environments.yaml.