Does not use juju_http_proxy for cloud-images.ubuntu.com
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Incomplete
|
Undecided
|
Unassigned | ||
OpenStack Glance-Simplestreams-Sync Charm |
Triaged
|
High
|
Unassigned |
Bug Description
I'm using glance-
When running glance-
In /var/log/
Starting new HTTP connection (1): cloud-images.
Followed by a traceback ending in:
ConnectionE
In my model's config, I have juju proxy variables set but not the legacy proxy variables:
$ juju model-config | grep proxy
apt-ftp-proxy default ""
apt-http-proxy controller http://
apt-https-proxy controller http://
apt-no-proxy default ""
ftp-proxy default ""
http-proxy default ""
https-proxy default ""
juju-ftp-proxy default ""
juju-http-proxy controller http://
juju-
juju-no-proxy controller 127.0.0.
no-proxy default 127.0.0.
proxy-ssh default false
snap-http-proxy controller http://
snap-
snap-
snap-
A previously submitted fix adds two lines that read in /etc/profile.
[ -f "/etc/juju-
And /etc/juju-
In the charm hooks environment I have:
JUJU_
JUJU_
JUJU_
I was able to temporarily work around this by connecting to the unit and running:
export http_proxy=http://
export no_proxy=
sudo -E /usr/share/
(I had to run that last one several times to catch a free moment between the once-a-minute cron job updates.)
I would prefer not to use http_proxy in my model config because that would cover all system connections on all machines and my subnets are too big to fit in no_proxy (which doesn't support cidr like juju_no_proxy).
Can we use the juju proxy settings for the cloud-images.
tags: | added: field-medium |
description: | updated |
Added Juju since /etc/juju- proxy.conf is only written to when legacy proxy settings are set.