![MAAS KVM 无法调试节点:节点操作“调试”在 30 分钟后超时](https://linux22.com/image/919989/MAAS%20KVM%20%E6%97%A0%E6%B3%95%E8%B0%83%E8%AF%95%E8%8A%82%E7%82%B9%EF%BC%9A%E8%8A%82%E7%82%B9%E6%93%8D%E4%BD%9C%E2%80%9C%E8%B0%83%E8%AF%95%E2%80%9D%E5%9C%A8%2030%20%E5%88%86%E9%92%9F%E5%90%8E%E8%B6%85%E6%97%B6.png)
更新
我发现,在提示登录之前,短暂的图像会闪现一条消息,说“无法应用阶段配置,未找到数据源“。经过一番研究,这可能与网络配置错误导致节点无法到达区域控制器有关。
节点位于配置为 10.17.17.0/24 的虚拟网络上,而 MAAS 服务器部署在 10.10.9.34
我应该如何更正我的网络配置?
机架日志
2020-01-23 16:02:46 provisioningserver.rackdservices.http: [info] ipxe.cfg requested by 10.17.17.191
2020-01-23 16:02:46 provisioningserver.rackdservices.http: [info] ipxe.cfg-52:54:00:bb:ce:ad requested by 10.17.17.191
2020-01-23 16:02:46 provisioningserver.rackdservices.http: [info] /images/ubuntu/amd64/generic/bionic/daily/boot-kernel requested by 10.17.17.191
2020-01-23 16:02:46 provisioningserver.rackdservices.http: [info] /images/ubuntu/amd64/generic/bionic/daily/boot-initrd requested by 10.17.17.191
2020-01-23 16:02:55 provisioningserver.rackdservices.http: [info] /images/ubuntu/amd64/generic/bionic/daily/squashfs requested by 10.17.17.191
区域日志
2020-01-23 16:02:04 regiond: [info] 127.0.0.1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
2020-01-23 16:02:19 maasserver.rpc.leases: [info] Lease update: expiry for 10.17.17.191 on 52:54:0:bb:ce:ad at 2020-01-23 16:02:19
2020-01-23 16:02:23 maasserver.region_controller: [info] Reloaded DNS configuration; ip 10.17.17.191 released
2020-01-23 16:02:32 maasserver.rpc.leases: [info] Lease update: commit for 10.17.17.191 on 52:54:0:bb:ce:ad at 2020-01-23 16:02:32 (lease time: 30s)
2020-01-23 16:02:34 regiond: [info] 127.0.0.1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
2020-01-23 16:02:36 maasserver.region_controller: [info] Reloaded DNS configuration; ip 10.17.17.191 connected to golden-bee on eth0
2020-01-23 16:02:55 maasserver.rpc.leases: [info] Lease update: commit for 10.17.17.191 on 52:54:0:bb:ce:ad at 2020-01-23 16:02:55 (lease time: 600s) (hostname: golden-bee)
2020-01-23 16:03:00 maasserver.rpc.leases: [info] Lease update: commit for 10.17.17.191 on 52:54:0:bb:ce:ad at 2020-01-23 16:03:00 (lease time: 600s) (hostname: ubuntu)
2020-01-23 16:03:00 maasserver.models.dnsresource: [info] Updated dynamic hostname 'ubuntu.maas'. Added IP address 'sip.ip'.
2020-01-23 16:03:04 maasserver.region_controller: [info] Reloaded DNS configuration; ip 10.17.17.191 linked to resource ubuntu on zone maas
2020-01-23 16:03:04 regiond: [info] 127.0.0.1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
2020-01-23 16:03:34 regiond: [info] 127.0.0.1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
2020-01-23 16:04:04 regiond: [info] 127.0.0.1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
2020-01-23 16:04:34 regiond: [info] 127.0.0.1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
2020-01-23 16:05:04 regiond: [info] 127.0.0.1 GET /MAAS/rpc/ HTTP/1.1 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
一些参考资料来源:
https://bugs.launchpad.net/maas/+bug/1665459
https://bugs.launchpad.net/maas/+bug/1666719
https://answers.launchpad.net/maas/+question/196791
原始问题
我有 MAAS 2.7,并且正在尝试调试使用 KVM 组成的节点,调试过程总是卡在“加载临时”状态,然后在 30 分钟后超时。
当我查看虚拟机时,它挂在ubuntu 登录屏幕PXE 启动后,我不知道该输入什么,我尝试了许多可能的凭证组合,但总是显示“登录不正确”。重新启动/重新调试后,它将再次通过 PXE 启动 -> 提示登录过程。
我可能搞错了我的网络配置:MAAS 服务器部署在物理机器上,然后我在同一台机器上使用 virt manager 创建了一个虚拟网络,并在虚拟网络上添加了 ssh 密钥。通过 MAAS 在此虚拟网络上启用了 DHCP。
答案1
虽然不是真正的修复,但我最终通过将 MAAS 降级到 2.6 来让它正常工作