[Bug 1923268] Re: grubnet default grub.cfg should try /grub/grub.cfg-${net_default_mac} before /grub/grub.cfg
dann frazier
1923268 at bugs.launchpad.net
Wed May 5 21:53:30 UTC 2021
On Wed, May 5, 2021 at 2:15 PM Lee Trager <1923268 at bugs.launchpad.net> wrote:
>
> When you added the ARM64 machine are you including the boot MAC address
> or just the IPMI credentials? When you add just the IPMI credentials the
> machine actually goes into enlistment but MAAS detects its a known
> machine based on IPMI credenitals when the BMC is detected.
The only MAC address I added was the BMC MAC - I didn't add any host
NIC MACs initially, so your explanation makes sense. Let me know if
it'd be helpful for you if I retested w/ host MACs though.
> The associated branch updates the default grub.cfg file which is stored
> with all boot images. These files only get updated when a new image is
> found on images.maas.io or whatever your mirror is. To force the update
> you can run
>
> sudo rm -rf /var/lib/maas/boot-resources/*
> sudo systemctl restart maas-rackd
Understood. We're still running a snap version, so I won't be able to
easily pick up a source code patch. We plan to switch back to a deb
install so we can be more agile in helping with testing patches, but
we haven't scheduled the downtime yet. I can always set up another
MAAS in the lab w/ debs if you need me to test something though.
-dann
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2-signed in Ubuntu.
https://bugs.launchpad.net/bugs/1923268
Title:
grubnet default grub.cfg should try /grub/grub.cfg-${net_default_mac}
before /grub/grub.cfg
Status in MAAS:
Fix Committed
Status in grub2-signed package in Ubuntu:
Confirmed
Bug description:
MAAS uses the signed network GRUB bootloader when a machine network
boots on AMD64 and ARM64. The configuration MAAS produces depends on
the machine which are identified by MAC address. The default grub.cfg
in the boot loader downloads /grub/grub.cfg from the remote host. As
that doesn't provide the MAC address MAAS provides a default
configuration file:
configfile /grub/grub.cfg-${net_default_mac}
configfile /grub/grub.cfg-default-amd64
There are two issues with this:
1. This causes an additional unnecessary request.
2. It is assumed an known machine is amd64.
Can the default grub.cfg embedded in grubnet<arch>.efi be updated to
configfile /grub/grub.cfg-${net_default_mac}
configfile /grub/grub.cfg-default-<ARCH>
configfile /grub/grub.cfg
This would be similar to what PXELinux[1] does.
[1] https://wiki.syslinux.org/wiki/index.php?title=PXELINUX
To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1923268/+subscriptions
More information about the foundations-bugs
mailing list