proxy not used when launching lxc-create

Bug #1271115 reported by Roberto
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Tim Penhey

Bug Description

I'm deploying juju on a local LXC environment behind a proxy. All my environment variables are well set (http_proxy, https_proxy, no_proxy).
After bootstrapping, when launching
juju deploy mysql
I get the following error:

agent-state-info: '(error: error executing "lxc-create": + ''['' amd64 == i686
      '']''; + ''['' amd64 ''!='' i386 -a amd64 ''!='' amd64 -a amd64 ''!='' armhf
      -a amd64 ''!='' armel '']''; + ''['' amd64 ''!='' i386 -a amd64 ''!='' amd64
      -a amd64 ''!='' armhf -a amd64 ''!='' armel '']''; + ''['' amd64 = amd64 -a
      amd64 ''!='' amd64 -a amd64 ''!='' i386 '']''; + ''['' amd64 = i386 -a amd64
      ''!='' i386 '']''; + ''['' amd64 = armhf -o amd64 = armel '']''; + ''['' released
      ''!='' daily -a released ''!='' released '']''; + ''['' -z /var/lib/lxc/vagrant-local-machine-1
      '']''; ++ id -u; + ''['' 0 ''!='' 0 '']''; + config=/var/lib/lxc/vagrant-local-machine-1/config;
      + ''['' -z /usr/lib/x86_64-linux-gnu/lxc '']''; + type ubuntu-cloudimg-query;
      ubuntu-cloudimg-query is /usr/bin/ubuntu-cloudimg-query; + type wget; wget is
      /usr/bin/wget; + cache=/var/cache/lxc/cloud-precise; + mkdir -p /var/cache/lxc/cloud-precise;
      + ''['' -n '''' '']''; ++ ubuntu-cloudimg-query precise released amd64 --format
      ''%{url}\n''; failed to get https://cloud-images.ubuntu.com/query/precise/server/released-dl.current.txt;
      + url1=; lxc_container: container creation template for vagrant-local-machine-1
      failed; lxc_container: Error creating container vagrant-local-machine-1)'

but if I run before lxc-create (that takes into account through wget the proxy settings)
sudo lxc-create -t ubuntu-cloud -n test

and then run again
juju deploy mysql

the command passes - as the previously downloaded lxc base is used.

Roberto (robertomigli)
tags: added: precise
Curtis Hovey (sinzui)
tags: added: local-provider lxc proxy
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0
Tim Penhey (thumper)
Changed in juju-core:
status: Triaged → Fix Committed
milestone: 2.0 → 1.17.5
assignee: nobody → Tim Penhey (thumper)
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
Revision history for this message
gavin.kemp (gavin-robert-kemp) wrote :

do :
juju deploy cs:precise/mysql

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.