juju uses proxy to access bootstrap node
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | juju-core |
High
|
Cheryl Jennings | ||
| | 1.22 |
High
|
Cheryl Jennings | ||
| | 1.23 |
High
|
Cheryl Jennings | ||
| | 1.24 |
High
|
Cheryl Jennings | ||
Bug Description
When using proxy in juju enviroment, juju uses this proxy to access bootstrap node and failed.
I added the following in ~/.juju/
http-proxy: http://
https-proxy: http://
no-proxy: localhost,
and got the following error:
"4":
agent-state: started
agent-version: 1.24.2
dns-name: hayward-35.oil
instance-id: /MAAS/api/
series: trusty
containers:
4/lxc/0:
creation failed: error executing "lxc-create": + ''['' amd64 = i686 '']'';
+ ''['' 0 = 0 '']''; + case "$hostarch:$arch" in; + :; + ''['' tryreleased
''!='' daily -a tryreleased ''!='' released -a tryreleased ''!='' tryreleased
'']''; + ''['' -z /var/lib/
+ ''['' 0 ''!='' 0 '']''; + config=
+ ''['' -z /var/lib/
is /tmp/wget084105
0 -eq 1 '']''; + mkdir -p /var/cache/
= tryreleased '']''; + stream=released; + ubuntu-
amd64; + ''['' -n https:/
'']''; + url2=https:/
++ basename https:/
+ filename=
'']''; + do_extract_rootfs; + cd /var/cache/
-eq 1 '']''; + trap wgetcleanup EXIT SIGHUP SIGINT SIGTERM; + ''['' ''!''
-f ubuntu-
to establish SSL connection.; + build_root_tgz ubuntu-
+ url=ubuntu-
-d -p .; + xdir=./
+ tarname=
+ trap buildcleanup EXIT SIGHUP SIGINT SIGTERM; + ''['' 0 -eq 1 -o ''!''
-f /var/cache/
'']''; + rm -f ubuntu-
cloud image from ubuntu-
cloud image from ubuntu-
Couldn''t find cloud image ubuntu-
+ exit 1; + buildcleanup; + cd /var/lib/
+ umount -l /var/cache/
not mounted; + true; + rm -rf /var/cache/
Error creating container juju-trusty-
series: trusty
hardware: arch=amd64 cpu-cores=8 mem=16384M tags=oil-
10.245.0.10 - maas server
10.245.0.117 - bootstrap node
| Ashley Lai (alai) wrote : | #1 |
| Changed in juju-core: | |
| assignee: | nobody → Cheryl Jennings (cherylj) |
| status: | New → In Progress |
| Cheryl Jennings (cherylj) wrote : | #2 |
I believe a workaround would be for you to add 10.245.0.177, and the IPs of any additional state servers you may have to the no-proxy list.
I'm still investigating the creation of the lxc containers to see if there's a way to specify to not use the proxy when creating them.
| Ian Booth (wallyworld) wrote : | #3 |
wget is used to grab the lxc image from the state server(s).
wget accepts a --no-proxy arg to disable use of any proxies configured via env vars or whatever.
So the wget script generated by the container code just needs to have this arg added.
| Cheryl Jennings (cherylj) wrote : | #4 |
Review request: http://
| Changed in juju-core: | |
| status: | In Progress → Fix Committed |
| Cheryl Jennings (cherylj) wrote : | #5 |
1.24 review request: http://
| John A Meinel (jameinel) wrote : | #6 |
Shouldn't we really be setting the local network (10.245.* in this case?). Consider any HTTP request between machines in the environment. The Admin should really not need to pay close attention to the IP addresses that the cloud assigns their machines and add them to the no-proxy list. That really seems like Juju's job.
| John A Meinel (jameinel) wrote : | #7 |
It looks like we'll go ahead with this fix and land wget --no-proxy into 1.24 and master. But we'll look to update our network model so that in whatever network space a given service/machine is in, it has a no-proxy setting the related subnets.
| tags: | added: landscape |
| Changed in juju-core: | |
| milestone: | none → 1.25.0 |
| importance: | Undecided → High |
| Cheryl Jennings (cherylj) wrote : | #8 |
This problem does not apply to KVM instances, but if using a proxy when deploying with KVM, users must include "http://" or "https://" in their proxy settings, or else the deploy will fail with a vague exit code 1 error. This stems from the uvt-simplestrea
Proxy URLs must have explicit schemes
| Changed in juju-core: | |
| status: | Fix Committed → Fix Released |
| Ashley Lai (alai) wrote : | #9 |
Bug to add all nodes' IPs no no-proxy list.
Hello Ashley, or anyone else affected,
Accepted juju-core into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| tags: | added: verification-needed |


Adding the bootstrap node to no-proxy list may work but this should be done automatically.