container-inherit-properties doesn't support apt-http-proxy

Bug #1855571 reported by Nobuto Murata
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

By default with MAAS provider, Juju nodes as physical hosts have a maas hostname as a apt-http-proxy through curtin.

$ apt-config dump | grep Acquire::http::Proxy
Acquire::http::Proxy "http://my-range.maas-internal:8000/";
Acquire::http::Proxy::127.0.0.1 "DIRECT";
Acquire::http::Proxy::::1 "DIRECT";
Acquire::http::Proxy::localhost "DIRECT";

$ cat /etc/apt/apt.conf.d/90curtin-aptproxy
Acquire::http::Proxy "http://my-range.maas-internal:8000/";

However, Juju created LXD containers do not have those inherited. So those containers would not get a benefit of cached packages in MAAS squid to speed up the deployment process.

[container] $ apt-config dump | grep Acquire::http::Proxy
Acquire::http::Proxy "";
Acquire::http::Proxy::127.0.0.1 "DIRECT";
Acquire::http::Proxy::::1 "DIRECT";
Acquire::http::Proxy::localhost "DIRECT";

It would be nice if container-inherit-properties covers those proxy configurations too.

$ juju version
2.6.10-bionic-amd64

$ juju model-config container-inherit-properties=apt-proxy
ERROR container-inherit-properties: apt-proxy not allowed

$ juju model-config container-inherit-properties=apt-http-proxy
ERROR container-inherit-properties: apt-http-proxy not allowed

A workaround is to set apt-http-proxy in a model or model-defaults by hand explicitly. So both physical hosts and LXD containers will use the same value by the overridden model config/default.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.