Comment 6 for bug 1789650

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1789650] Re: Servers set to boot from disk after MAAS installation

On Fri, Sep 7, 2018 at 9:30 PM Rod Smith <email address hidden> wrote:
>
> Ryan, have you looked at the debugging output? Do you have any clues
> about what's going on?

Looking at the output of before and after, I believe this is expected behavior
due to changes related to handling the case where if MAAS is offline then all
nodes couldn't boot due to defaulting to PXE booting from a busted MAAS
service.

Here's the relevant commit and details w.r.t the behavior change.

commit cb1ef09beddb6c4559c131d2606d9b6b70c4ca7f
Merge: bae772c 5cffafa
Author: Blake Rouse <email address hidden>
Date: Fri May 26 13:27:22 2017 -0500

    Clear and re-order UEFI boot methods during UEFI grub installation.

    Previously when installing Ubuntu using curtin it was default to pass
    '--no-nvram' to the grub-install. This branch reverts that has passing
    '--no-nvram' will prevent the system from booting if MAAS is down
because Ubuntu
    not be a loader in the EFI system for the system to fallback on.
When updating
    the nvram grub places Ubuntu before the currently booted method,
which prevents
    the ability for the machine to boot from the network anymore. This branch
    reorders to boot order of the EFI system to place the currently
booted method
    before all others, but Ubuntu is still second in the list so if
MAAS is down the
    machine will still boot from its local disk correctly.

    Another issue is that older EFI loaders would be present in the EFI firmware
    even through curtin deletes and re-creates the entire EFI partition. This
    removes only those loaders before grub-install is performed to
make sure that
    only the relevant loads for the current state of the system are present.

    Fixes: LP:#1680917, LP:#1686669

    LP: #1680917, #1686669
    bzr-revno: 503

If you want to always keep PXE as the boot option after install then I think
you'll need MAAS to send:

grub:
  update_nvram: false

The default value if nothing is sent is True which is why curtin is
doing reordering.

Setting this value to false will prevent curtin from making any boot
order changes at all.

>
> --
> You received this bug notification because you are subscribed to curtin.
> Matching subscriptions: curtin-bugs-all
> https://bugs.launchpad.net/bugs/1789650
>
> Title:
> Servers set to boot from disk after MAAS installation
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/curtin/+bug/1789650/+subscriptions