Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
even when the bridge has no addresses, still use DHCP #6985
Conversation
axw
approved these changes
Feb 15, 2017
LGTM. Can you leave a TODO to add a test for this?
|
Sure, this was originally part of: my fix for https://bugs.launchpad.net/juju/+bug/1656326 which got reverted (issue #6933). But I realized I probably needed it here as well. |
|
Also note: lxc/lxd#2885 |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Tests failed |
|
$$merge$$ the failure was in PubSub TestFirstMessage which I highly doubt is related. |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Tests failed |
|
$$merge$$ (also a bot failure vs an actual failure) |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Tests failed |
|
$$merge$$ lxd is failing to find instances |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
jameinel commentedFeb 15, 2017
Description of change
We had a bug where we saw 'lxdbr0' exist, but it didn't have an IP address associated with it. (This is true at least on Xenial.) And our code was deciding that we should use DHCP under certain circumstances, but not under this one, and the default path was to use Static allocation.
QA steps
With stock 2.1, the nested container that comes up will have an /etc/network/interfaces file with a line like:
instead of
With this change, the nested container will be configured to use DHCP.
Documentation changes
Should just enable what used to work in 2.0.
Bug reference
lp:1664409