Public bug reported:

In my environment, most outbound ports are closed, but a squid proxy is
available.

The client seems to work if http_proxy/https_proxy environment variables
are defined, and this allows me to add a remote and list images on it.

However, when I try to launch an image, it seems to be the server that
tries to fetch the image itself, and it fails to use the proxy, even if
http_proxy and https_proxy are defined. I tried by defining these in the
environment and then running "lxd ... --debug" manually. tcpdump shows
me that it is still attempting direct outbound connections on port 443
instead of speaking to the proxy (I had to use 443 as other ports are
not permitted through my proxy either).

I expect to be able to configure lxd to use a proxy using some defined
method, and then for it to work seamlessly.

Using lxd 0.20-0ubuntu4.1 on Wily.

To reproduce, I am basically just doing:

export http_proxy=http://squid.internal:3128/
export https_proxy=http://squid.internal:3128/
lxc remote add images images.linuxcontainers.org:443
lxc launch images:debian/jessie/amd64 jessie-test

And to try to get it to work:
sudo -i
service stop lxd
export http_proxy=http://squid.internal:3128/
export https_proxy=http://squid.internal:3128/
/usr/bin/lxd --group lxd --logfile=/var/log/lxd/lxd.log --debug

** Affects: lxd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1546085

Title:
  Cannot launch images from behind a proxy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1546085/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to