weixin_39565777
weixin_39565777
2020-11-29 08:36

even when the bridge has no addresses, still use DHCP

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

该提问来源于开源项目:juju/juju

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

13条回答

  • weixin_39565777 weixin_39565777 5月前

    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.

    点赞 评论 复制链接分享
  • weixin_39565777 weixin_39565777 5月前

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

    点赞 评论 复制链接分享
  • weixin_39565777 weixin_39565777 5月前

    $$merge$$

    点赞 评论 复制链接分享
  • weixin_39751195 weixin_39751195 5月前

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

    点赞 评论 复制链接分享
  • weixin_39751195 weixin_39751195 5月前

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

    点赞 评论 复制链接分享
  • weixin_39565777 weixin_39565777 5月前

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

    点赞 评论 复制链接分享
  • weixin_39751195 weixin_39751195 5月前

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

    点赞 评论 复制链接分享
  • weixin_39751195 weixin_39751195 5月前

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

    点赞 评论 复制链接分享
  • weixin_39565777 weixin_39565777 5月前

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

    点赞 评论 复制链接分享
  • weixin_39751195 weixin_39751195 5月前

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

    点赞 评论 复制链接分享
  • weixin_39751195 weixin_39751195 5月前

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

    点赞 评论 复制链接分享
  • weixin_39565777 weixin_39565777 5月前

    $$merge$$ lxd is failing to find instances

    点赞 评论 复制链接分享
  • weixin_39751195 weixin_39751195 5月前

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

    点赞 评论 复制链接分享

相关推荐