我正在尝试在测试环境中配置 MAAS 和 Juju。我的 MAAS 区域和集群控制器位于一台具有两个 NIC 的机器上。eth1 连接到具有互联网访问权限的 LAN;IP 为 192.168.181.32。eth0 是私有网络。我已将其配置为使用 192.168.212.0/24。
MAAS 配置为管理 eth0 上的 DHCP 和 DNS。我已向集群添加了 3 个节点,所有节点都报告状态为“就绪”。但是,当我尝试引导 Juju 时,一切都变糟了:
> juju bootstrap --upload-tools
WARNING ignoring environments.yaml: using bootstrap config in file "/home/dannyb/.juju/environments/maas.jenv"
uploading tools for series [trusty precise]
Launching instance
WARNING picked arbitrary tools &{"1.18.4.1-trusty-amd64" "http://192.168.212.1:80/MAAS/api/1.0/files/?key=2bbe30ca-560c-11e4-9ea3-0800272d5f95&op=get_by_key" "1f9d6f5eda1ebb85106259be5ba91aa700fe7c772437d8b38f3adf231d09b4de" %!q(int64=7358699)}
- /MAAS/api/1.0/nodes/node-da4858c2-5603-11e4-b417-0800272d5f95/
Waiting for address
Attempting to connect to cloud2.maas.allworx.com:22
Attempting to connect to 192.168.212.8:22
到目前为止一切顺利。云2节点启动并连接到 PXE,但随后我开始得到:
IP-Config: eth0 hardware address 08:00:27:1d:ea:91 mtu 1500 DHCP RARP
hostname cloud2 hostname cloud2 hostname cloud2 hostname cloud2 IP-Config: no response after 2 secs - giving up
IP-Config: eth0 hardware address 08:00:27:1d:ea:91 mtu 1500 DHCP RARP
hostname cloud2 hostname cloud2 hostname cloud2 hostname cloud2 IP-Config: no response after 3 secs - giving up
etc...
我的集群控制器上的系统日志显示:
Oct 17 11:58:20 maas-master dhcpd: DHCPDISCOVER from 08:00:27:1d:ea:91 via eth0
Oct 17 11:58:20 maas-master dhcpd: DHCPOFFER on 192.168.212.8 to 08:00:27:1d:ea:91 via eth0
Oct 17 11:58:22 maas-master dhcpd: Dynamic and static leases present for 192.168.212.8.
Oct 17 11:58:22 maas-master dhcpd: Remove host declaration 192.168.212.8 or remove 192.168.212.8
Oct 17 11:58:22 maas-master dhcpd: from the dynamic address pool for 192.168.212.0/24
Oct 17 11:58:22 maas-master dhcpd: DHCPREQUEST for 192.168.212.8 (192.168.212.1) from 08:00:27:1d:ea:91 via eth0
Oct 17 11:58:22 maas-master dhcpd: DHCPACK on 192.168.212.8 to 08:00:27:1d:ea:91 via eth0
Oct 17 11:58:42 maas-master dhcpd: DHCPDISCOVER from 08:00:27:1d:ea:91 via eth0
Oct 17 11:58:42 maas-master dhcpd: DHCPOFFER on 192.168.212.8 to 08:00:27:1d:ea:91 via eth0
Oct 17 11:58:42 maas-master dhcpd: DHCPREQUEST for 192.168.212.6 (192.168.212.3) from 08:00:27:1d:ea:91 via eth0: lease 192.168.212.6 unavailable.
Oct 17 11:58:42 maas-master dhcpd: DHCPNAK on 192.168.212.6 to 08:00:27:1d:ea:91 via eth0
Oct 17 11:58:43 maas-master dhcpd: DHCPDISCOVER from 08:00:27:1d:ea:91 via eth0
Oct 17 11:58:43 maas-master dhcpd: DHCPOFFER on 192.168.212.8 to 08:00:27:1d:ea:91 via eth0
Oct 17 11:58:43 maas-master dhcpd: DHCPREQUEST for 192.168.212.6 (192.168.212.3) from 08:00:27:1d:ea:91 via eth0: lease 192.168.212.6 unavailable.
Oct 17 11:58:43 maas-master dhcpd: DHCPNAK on 192.168.212.6 to 08:00:27:1d:ea:91 via eth0
看起来节点获得了 192.168.212.8 地址,并使用它来下载内核和 initrd,但是一旦内核启动并初始化节点上的 eth0 接口,它就会拒绝接受 212.8 地址,并坚持使用 212.6 地址,而 DHCP 服务器并不想给它这个地址。
有任何想法吗?
答案1
我遇到过类似问题,但并不完全相同。我将其追溯到为群集控制器使用的网络设置了“静态 IP 低”和“静态 IP 高”。一旦我清除了这些字段,问题就消失了,它启动正常。或者更准确地说,我遇到了其他问题。