`juju bootstrap` 获取地址失败

`juju bootstrap` 获取地址失败

我正在尝试这样做juju bootstrap lxd lxd-local但失败并出现以下错误:

Select a cloud [localhost]: 

Enter a name for the Controller [localhost-localhost]: 

Resolved LXD host address on bridge lxdbr0: 10.122.27.1:8443
no credentials found, checking environment
Adding contents of "/home/lurscher/.local/share/juju/ssh/juju_id_rsa.pub" to authorized-keys
Creating Juju controller "localhost-localhost" on localhost/localhost
Loading image metadata
Looking for packaged Juju agent version 2.2.5 for amd64
Starting new instance for initial controller
To configure your system to better support LXD containers, please see: https://github.com/lxc/lxd/blob/master/doc/production-setup.md
Launching controller instance(s) on localhost/localhost...
 - juju-5d7c6c-0 (arch=amd64)          
Fetching Juju GUI 2.10.2
Waiting for address
ERROR failed to bootstrap model: waited for 20m0s without getting any addresses

我正在运行 kubuntu 17.04,juju 版本 2.2.5-zesty-amd64,lxd 和 lxc 都是版本 2.19

在等待地址消息时,我转储了内容,/var/log/cloud-init.log它位于此 pastebin 链接

另一方面,/var/log/cloud-init-output.log只有一行:

lxc exec juju-a9264f-0 cat /var/log/cloud-init-output.log
Cloud-init v. 0.7.9 running 'init-local' at Wed, 25 Oct 2017 23:50:41 +0000. Up 1.00 seconds.

答案1

您需要一个活动的 DHCP 来为 LXD 上新形成的控制器分配正确的 IP

相关内容