tools download in cloud-init should not go through http[s]_proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Cheryl Jennings | ||
1.22 |
Fix Released
|
Critical
|
Cheryl Jennings | ||
1.23 |
Fix Released
|
High
|
Cheryl Jennings |
Bug Description
GOOD: setting http_proxy in your environment worked for the bootstrap
GOOD: secondary machines that were launched also got the http proxy settings
BAD: they tried to download tools through the proxy from the bootstrap node
The curl in cloud-init should either run with no proxy, or the addresses of the bootstrap node should be added to the no_proxy setting (the later sounds flaky).
+ printf %s\n export http_proxy=http://
export HTTP_PROXY=http://
export https_proxy=http://
export HTTPS_PROXY=http://
export no_proxy=
export NO_PROXY=
+ chown ubuntu:ubuntu /home/ubuntu/
+ mkdir -p /var/lib/juju/locks
+
+ id ubuntu
+ chown ubuntu:ubuntu /var/lib/juju/locks
+ mkdir -p /var/log/juju
+ chown syslog:adm /var/log/juju
+ bin=/var/
+ mkdir -p /var/lib/
+ echo Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --insecure -o $bin/tools.tar.gz <[https:/
Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --insecure -o $bin/tools.tar.gz <[https:/
uid=1000(ubuntu) gid=1000(ubuntu) groups=
uid=1000(ubuntu) gid=1000(ubuntu) groups=
+ seq 5
+ printf Attempt 1 to download tools from %s...\n https:/
Attempt 1 to download tools from https:/
+ curl -sSfw tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s --insecure -o /var/lib/
curl: (22) The requested URL returned error: 403
The error is unclear a bit because of all the formatting params on the curl command (not sure why all that is there). This one is clearer:
ubuntu@
sty-amd64
curl: (56) Received HTTP code 403 from proxy after CONNECT
ubuntu@
description: | updated |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 1.24-alpha1 |
Changed in juju-core: | |
assignee: | nobody → Cheryl Jennings (cherylj) |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Just so it's clear, the node 0 tools download needs to go through the proxy (of course). anything that tries to download from an internal address should not (like the other nodes).