even when the bridge has no addresses, still use DHCP #6985

Merged
merged 2 commits into from Feb 15, 2017

Conversation

Projects
None yet
3 participants
Owner

jameinel commented Feb 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

  $ juju bootstrap lxd
  $ lxc profile edit juju-default # add 'security.privileged: true'
  $ juju deploy cs:~jameinel/ubuntu-lite-nested

With stock 2.1, the nested container that comes up will have an /etc/network/interfaces file with a line like:

  iface eth0 inet manual

instead of

  iface eth0 inet dhcp

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

axw approved these changes Feb 15, 2017

LGTM. Can you leave a TODO to add a test for this?

Owner

jameinel commented Feb 15, 2017

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.

Owner

jameinel commented Feb 15, 2017

Also note: lxc/lxd#2885
security.nesting = true doesn't seem to be enough because of their new changes around UID maps.

Owner

jameinel commented Feb 15, 2017

$$merge$$

Contributor

jujubot commented Feb 15, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Feb 15, 2017

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/10292

Owner

jameinel commented Feb 15, 2017

$$merge$$ the failure was in PubSub TestFirstMessage which I highly doubt is related.

Contributor

jujubot commented Feb 15, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Feb 15, 2017

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/10293

Owner

jameinel commented Feb 15, 2017

$$merge$$ (also a bot failure vs an actual failure)

Contributor

jujubot commented Feb 15, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Feb 15, 2017

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/10297

Owner

jameinel commented Feb 15, 2017

$$merge$$ lxd is failing to find instances

Contributor

jujubot commented Feb 15, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit c3bb276 into juju:2.1 Feb 15, 2017

@jameinel jameinel deleted the jameinel:2.1-nested-container-dhcp-1664409 branch Apr 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment