Use proxy from /etc/environment or other system-wide config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
In the Canonical DC one needs to use a proxy to download images from outside, such as images.
AFAIUI, lxd-images is being deprecated, in favor of adding and launching from remotes. The lxd-images command used the proxy information from the current shell, but with "lxc launch images:..." it is the running lxd daemon which does the download, and thus the proxy info on the current shell is meaningless. But the lxd daemon process does not have any proxy environment set.
So I'm looking for a sensible way to configure a default proxy for image downloads. In my local test I just added "EnvironmentFil
/etc/environment is normally read by pam_env and thus is mostly meant for user sessions, cron jobs etc.¸ but there's some precedent for sourcing /etc/environment in init.d scripts and upstart jobs.
Alternatively, is there some way that this can be configured in a different file, so that it applies to lxd as soon as it gets apt-get install'ed (via a test dependency)?
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lxd 2.0.0~rc3-0ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-12-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: i3
Date: Mon Mar 14 21:18:33 2016
EcryptfsInUse: Yes
SourcePackage: lxd
UpgradeStatus: No upgrade log present (probably fresh install)
rc3 introduces new config options for that.
See https:/ /linuxcontainer s.org/lxd/ news/ or the package changelog for rc3 :)