Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
apt proxy setting in cloud-init data not honored by Ubuntu 14.04 lxc image #3975
Comments
|
I'm reasonably sure that this is because cloud-init in trusty doesn't know about vendor-data. Testing here to confirm. |
|
hmm, no, vendor-data works fine, only proxy is ignored |
|
Yeah, the cloud-init version in trusty doesn't support that particular configuration. |
Looks like this syntax is still supported in xenial, so switching to that for both should fix it. Closing this since it's not a LXD issue in the first place and the example above should be a valid workaround. |
stgraber
closed this
Oct 25, 2017
|
Might be worth a bug against cloud-init to try to get things in sync in 14.04 though. |
Roadmaster
commented
Oct 25, 2017
|
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Roadmaster commentedOct 25, 2017
Github issues are used for bug reports. For support questions, please use our forum.
Please fill the template below as it will greatly help us track down your issue and reproduce it on our side.
Feel free to remove anything which doesn't apply to you and add more information where it makes sense.
Required information
Issue description
This could be a cloud-init issue, let me know if that's the case and I'll file it with them, but cloud-init has supposedly supported apt proxy config since 2013 or so :(.
When passing a profile with an apt proxy defined in cloud-config data, it isn't honored for Ubuntu 14.04, but it is for 16.04 and 17.10 (I've only tried those).
Steps to reproduce
Assuming you have an apt-cacher-ng or similar at 1.2.3.4:
Expected result:
Both lxc exec commands should show something like:
Actual result:
Only the command on the 16.04 container shows this, the other container has no proxy settings.
THe 14.04 image has cloud-init Installed: 0.7.5-0ubuntu1.22
The 16.04 image has Installed: 0.7.9-233-ge586fe35-0ubuntu1~16.04.2
Information to attach
dmesg)lxc info NAME --show-log)lxc config show NAME --expanded)lxc monitorwhile reproducing the issue)