使用 PXE 的 MAAS 无法完成登记

使用 PXE 的 MAAS 无法完成登记

按照https://maas.io/install在刀片服务器上,我卡在了登记步骤。PXE 引导加载了映像,但经过一段合理的等待时间后,没有发生任何其他事情。刀片未显示在机器部分中。这是 PXE 引导屏幕:

Intel(R) Boot Agent XE v2.3.58
Copyright (C) 1997-2015, Intel Corporation

CLIENT MAC ADDR: <BLADE_2_MAC_ADDRESS>  GUID: <GUID>
CLIENT IP: 10.10.10.191  MASK: 255.255.255.0  DHCP IP: 10.10.10.1
GATEWAY IP: 10.10.10.254

PXELINUX 6.03 PXE 20171017 Copyright (C) 1994-2014 H. Peter Anvin et al
Booting under MAAS direction...
nomodeset ro root=squash:http://10.10.10.1:5248/images/ubuntu/amd64/ga-18.04/bio
nic/daily/squashfs ip=::::maas-enlist:BOOTIF ip6=off overlayroot=tmpfs overlayro
ot_cfgdisk=disabled cc:{'datasource_list': ['MAAS']}end_cc cloud-config-url=http
://10.10.10.1:5240/MAAS/metadata/latest/enlist-preseed/?op=get_enlist_preseed ap
parmor=0 log_host=10.10.10.1 log_port=514
Loading ubuntu/amd64/ga-18.04/bionic/daily/boot-kernel... ok
Loading ubuntu/amd64/ga-18.04/bionic/daily/boot-initrd...ok

这是刀片 PXE 启动时的服务器日志

myuser@blade-one:~$ tail -f /var/log/maas/rackd.log
2018-01-28 15:59:54 provisioningserver.rpc.clusterservice: [info] Fully connected to all 4 event-loops on all 1 region controllers (blade-one).
2018-01-28 15:59:55 provisioningserver.rpc.clusterservice: [info] Rack controller 'fddh8e' registered (via blade-one:pid=1748) with MAAS version 2.4.2-7034-g2f5deb8b8-0ubuntu1.
2018-01-28 15:59:55 provisioningserver.rpc.clusterservice: [info] Rack controller 'fddh8e' registered (via blade-one:pid=1750) with MAAS version 2.4.2-7034-g2f5deb8b8-0ubuntu1.
2018-01-28 15:59:55 provisioningserver.rpc.clusterservice: [info] Rack controller 'fddh8e' registered (via blade-one:pid=1751) with MAAS version 2.4.2-7034-g2f5deb8b8-0ubuntu1.
2018-01-28 15:59:55 provisioningserver.rpc.clusterservice: [info] Rack controller 'fddh8e' registered (via blade-one:pid=1749) with MAAS version 2.4.2-7034-g2f5deb8b8-0ubuntu1.
2018-01-28 15:59:55 provisioningserver.utils.services: [info] New interface monitoring state: {'enp5s0': {'neighbour': False, 'mdns': True}, 'enp6s0': {'neighbour': True, 'mdns': True}, 'ens1f0': {'neighbour': True, 'mdns': True}, 'ens1f1': {'neighbour': False, 'mdns': True}, 'virbr0': {'neighbour': True, 'mdns': True}}
2018-01-28 15:59:55 provisioningserver.utils.services: [info] Starting neighbour discovery for interfaces: {'ens1f0', 'virbr0', 'enp6s0'}
2018-01-28 15:59:55 provisioningserver.utils.services: [info] Neighbour observation process for ens1f0 started.
2018-01-28 15:59:55 provisioningserver.utils.services: [info] Neighbour observation process for virbr0 started.
2018-01-28 15:59:55 provisioningserver.utils.services: [info] Neighbour observation process for enp6s0 started.
2018-01-28 15:59:55 provisioningserver.utils.services: [info] mDNS observation process started.
2018-01-28 15:59:55 sstreams: [info] maas:v2:download/maas:boot:grub-efi-signed:amd64:generic:uefi: to_add=['20190404.0'] to_remove=[]
2018-01-28 15:59:55 sstreams: [info] maas:v2:download/maas:boot:grub-efi:arm64:generic:uefi: to_add=['20190404.0'] to_remove=[]
2018-01-28 15:59:55 sstreams: [info] maas:v2:download/maas:boot:grub-ieee1275:ppc64el:generic:open-firmware: to_add=['20190506.0'] to_remove=[]
2018-01-28 15:59:55 sstreams: [info] maas:v2:download/maas:boot:pxelinux:i386:generic:pxe: to_add=['20180807.0'] to_remove=[]
2018-01-28 15:59:55 sstreams: [info] maas:v2:download/maas:boot:ubuntu:amd64:ga-18.04-lowlatency:bionic: to_add=['20190814'] to_remove=[]
2018-01-28 15:59:55 sstreams: [info] maas:v2:download/maas:boot:ubuntu:amd64:ga-18.04:bionic: to_add=['20190814'] to_remove=[]
2018-01-28 15:59:55 sstreams: [info] maas:v2:download/maas:boot:ubuntu:amd64:hwe-18.04-edge:bionic: to_add=['20190814'] to_remove=[]
2018-01-28 15:59:55 sstreams: [info] maas:v2:download/maas:boot:ubuntu:amd64:hwe-18.04-lowlatency-edge:bionic: to_add=['20190814'] to_remove=[]
2018-01-28 15:59:55 sstreams: [info] maas:v2:download/maas:boot:ubuntu:amd64:hwe-18.04-lowlatency:bionic: to_add=['20190814'] to_remove=[]
2018-01-28 15:59:55 sstreams: [info] maas:v2:download/maas:boot:ubuntu:amd64:hwe-18.04:bionic: to_add=['20190814'] to_remove=[]
2018-01-28 15:59:56 provisioningserver.utils.services: [info] observe-arp[ens1f0]: tcpdump: listening on ens1f0, link-type EN10MB (Ethernet), capture size 64 bytes
2018-01-28 15:59:56 provisioningserver.utils.services: [info] observe-arp[virbr0]: tcpdump: listening on virbr0, link-type EN10MB (Ethernet), capture size 64 bytes
2019-08-21 11:39:16 provisioningserver.utils.services: [info] observe-arp[enp6s0]: tcpdump: listening on enp6s0, link-type EN10MB (Ethernet), capture size 64 bytes
2019-08-21 11:39:19 provisioningserver.rackdservices.dhcp_probe_service: [info] Probe for external DHCP servers started on interfaces: ens1f0, enp6s0, virbr0.
2019-08-21 11:39:39 provisioningserver.dhcp.detect: [info] External DHCP server(s) discovered on interface 'enp6s0': <OFFICE_DHCP_SERVER_IP>
2019-08-21 11:39:49 provisioningserver.rackdservices.dhcp_probe_service: [info] External DHCP probe complete.
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.0 requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.0 requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] ldlinux.c32 requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/40a55f1c-cea7-e511-bb26-020ba5d5cb1c requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/<BLADE_2_MAC_ADDRESS_WITH_DASHES> requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/0A0A0ABF requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/0A0A0AB requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/0A0A0A requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/0A0A0 requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/0A0A requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/0A0 requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/0A requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/0 requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] pxelinux.cfg/default requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:39 provisioningserver.rackdservices.tftp: [info] ubuntu/amd64/ga-18.04/bionic/daily/boot-kernel requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:47:40 provisioningserver.rackdservices.tftp: [info] ubuntu/amd64/ga-18.04/bionic/daily/boot-initrd requested by <BLADE_2_MAC_ADDRESS>
2019-08-21 11:48:11 rackd: [info] 10.10.10.191 GET /images/ubuntu/amd64/ga-18.04/bionic/daily/squashfs HTTP/1.1 --> 200 OK (referrer: -; agent: Wget)
2019-08-21 11:49:09 provisioningserver.rackdservices.dhcp_probe_service: [info] Probe for external DHCP servers started on interfaces: ens1f0, enp6s0, virbr0.
2019-08-21 11:49:29 provisioningserver.dhcp.detect: [info] External DHCP server(s) discovered on interface 'enp6s0': <OFFICE_DHCP_SERVER_IP>

安装 MAAS 的 Blade 1 是Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-58-generic x86_64)MAAS2.4.2-7034-g2f5deb8b8-0ubuntu1

我按照以下步骤进行安装:

  • 使用以下方式安装 maas 包sudo apt install maas
  • 添加了第一个管理员用户sudo maas init(没有添加任何 ssh 密钥)
  • 登录到 http://:5240/MAAS/ 并保留所有默认值。在密钥步骤中添加为 blade-one 服务器生成的 ssh 密钥
  • 在子网下,访问其他刀片将进行 PXE 引导的子网的 VLAN,并执行“提供 DHCP”
  • 将 Blade 2 配置为 PXE 启动并启动

答案1

解决方案是在 MAAS 设置的“常规”选项卡上。我必须将全局内核参数设置为console=ttyS0,115200

相关内容