Debian Image not being deployed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Medium
|
Unassigned |
Bug Description
Hi all,
As per the following thread: https:/
I am using the latest Maas version (3.4) with Ubuntu 20.04 LTS (the default) as the comissioning distro.
I tried to follow the instructions present at https:/
Server Specs:
HP DL380 Gen 10+ with EFI enabled
My commands for the image generation:
git clone https:/
cd packer-maas/debian/
make debian SERIES=bookworm
sudo cp curtin_
maas admin $PROFILE boot-resources create name='custom/
The error after trying the deploy on MaaS (checked at Logs->Event Logs)
HTTP Request - /images/
Marking node failed - Missing boot image custom/
Thanks a lot
BR
Changed in maas-images: | |
status: | New → Triaged |
affects: | maas-images → maas |
Changed in maas: | |
milestone: | 3.5.0 → 3.5.x |
managed to reproduce locally.
The ephemeral image to install debian is fetched properly
``` ver.rackdservic es.tftp: [info] bootx64.efi requested by 172.0.2.7 ver.rackdservic es.tftp: [info] bootx64.efi requested by 172.0.2.7 ver.rackdservic es.tftp: [info] grubx64.efi requested by 172.0.2.7 ver.rackdservic es.tftp: [info] /grub/x86_ 64-efi/ command. lst requested by 172.0.2.7 ver.rackdservic es.tftp: [info] /grub/x86_ 64-efi/ fs.lst requested by 172.0.2.7 ver.rackdservic es.tftp: [info] /grub/x86_ 64-efi/ crypto. lst requested by 172.0.2.7 ver.rackdservic es.tftp: [info] /grub/x86_ 64-efi/ terminal. lst requested by 172.0.2.7 ver.rackdservic es.tftp: [info] /grub/grub.cfg requested by 172.0.2.7 ver.rackdservic es.tftp: [info] /grub/grub. cfg-40: 01:7a:cb: 80:ac requested by 172.0.2.7 ver.rackdservic es.http: [info] /images/ ubuntu/ amd64/ga- 20.04/focal/ stable/ boot-kernel requested by 172.0.2.7 ver.rackdservic es.http: [info] /images/ ubuntu/ amd64/ga- 20.04/focal/ stable/ boot-initrd requested by 172.0.2.7 ver.rackdservic es.http: [info] /images/ ubuntu/ amd64/ga- 20.04/focal/ stable/ squashfs requested by 172.0.2.7 ver.rackdservic es.http: [info] /images/ custom/ amd64/generic/ debian- 12/uploaded/ root-tgz requested by 172.0.2.7
2023-12-15 15:10:42 provisioningser
2023-12-15 15:10:42 provisioningser
2023-12-15 15:10:43 provisioningser
2023-12-15 15:10:45 provisioningser
2023-12-15 15:10:45 provisioningser
2023-12-15 15:10:45 provisioningser
2023-12-15 15:10:45 provisioningser
2023-12-15 15:10:45 provisioningser
2023-12-15 15:10:45 provisioningser
2023-12-15 15:10:45 provisioningser
2023-12-15 15:10:46 provisioningser
2023-12-15 15:11:01 provisioningser
2023-12-15 15:12:04 provisioningser
```
but then when the machine reboots the grub configuration returned by MAAS is wrong 5248/grub/ grub.cfg- 40:01:7a: cb:80:ac
```
$ curl localhost:
set default="0"
set timeout=0
menuentry 'Ephemeral' { custom/ amd64/ga- 20.04/debian- 12/no-such- image/boot- kernel nomodeset ro root=squash:http:// 127.0.0. 1:5248/ images/ custom/ amd64/ga- 20.04/debian- 12/no-such- image/squashfs ip=:::: ciscom4: BOOTIF ip6=off overlayroot=tmpfs overlayroot_ cfgdisk= disabled cc:\{'datasourc e_list' : ['MAAS']\}end_cc cloud-config-url=http:// 127.0.0. 1:5248/ MAAS/metadata/ latest/ by-id/cqs6rd/ ?op=get_ preseed log_host=127.0.0.1 log_port=5247 --- BOOTIF= 01-${net_ default_ mac} custom/ amd64/ga- 20.04/debian- 12/no-such- image/boot- initrd
echo 'Booting under MAAS direction...'
linux /images/
initrd /images/
}
```
It should return the config to boot from the local disk instead
```
set default="0"
set timeout=0
menuentry 'Local' {
boot/ bootx64. efi \
ubuntu/ shimx64. efi \
ubuntu/ grubx64. efi \
Microsoft/ Boot/bootmgfw. efi; do
chainloade r /efi/$bootloader
echo 'Booting local disk...'
# The bootloader paths list for secure boot is shortened because of LP:2022084
for bootloader in \
search --set=root --file /efi/$bootloader
if [ $? -eq 0 ]; then
boot
fi
done
if [ "${shim_lock}" != "y" ]; then
centos/ shimx64. efi \
ce...
echo 'Secure boot is disabled, trying chainloader...'
for bootloader in \