
Cumulus's own release notes document several ways to land at grub>. A clock
past 2038, a UEFI update-grub, a boot-next that times out, an upgrade path that
requires a reinstall. Each one is a rung. #5376220 is the rung with no operator
mistake in it.
Why start with the smaller ones
A bug that needs two routine operations to collide looks exotic in isolation. It
is not. It belongs to a family, and the family is visible in the same release
notes: the boot configuration is a file that several tools write, one tool
reads, and no tool validates.
The documented members of that family are worth knowing, because an operator who
has seen one of them already has the reflex this bug requires: before you
reboot, look at the bootloader.
Rung 1: the clock past 2038
Cumulus issue 4495231, open across 5.9.0–5.15.1, 5.16.0–5.16.1 and
5.16.5–5.19.0:
If the hardware clock date is later than 2038-01-19 03:14:07 UTC, the image
might fail to install due to a grub-install failure on the EFI filesystem,
which is a VFAT filesystem. As a result, you see the grub prompt immediately
after reboot.
The mechanism is not the bootloader config; it is the filesystem underneath it.
VFAT stores timestamps in a format that runs out in 2038, grub-install fails
when it tries to write, and the switch reboots with a boot entry that was never
installed. NVIDIA's workaround is to go from the GRUB prompt into ONIE, set the
clock back, and reinstall the image.
Two lessons transfer directly: the failure is deferred to the reboot, and the
recovery starts at a console.
Rung 2: update-grub on UEFI
Cumulus issue 3861745, open across the same wide ranges:
On UEFI hardware, using the
update-grubprogram might generate a
/boot/grub/grub.cfgthat is incorrect for booting ONIE if the ONIE option is
selected on the console while booting. To work around this issue, run
mount LABEL="EFI System" /boot/efibefore usingupdate-grub.
This is the closest documented relative of #5376220. A tool regenerates
grub.cfg, the output is wrong for one of the boot paths, and the defect is
found at the console rather than at generation time. The difference: here the
tool is run by an operator, and the missing prerequisite is a mount. In #5376220
the tool is run by an automated action, and the missing prerequisite is
exclusive access to the file.
Rung 3: the action that times out
Cumulus issues 4547463 and 4705370, open from 5.14.0 through 5.19.0:
When you run
nv action boot-nextcommands during optimized image upgrade,
the commands time out. This does not indicate that an issue occurred; the
system might still be executing the action.
NVIDIA's guidance is to find the request id in /var/log/nvued.log and query the
action state through the local REST API. The dangerous reading of a timeout is
the obvious one: assume it failed, run it again, or reboot to "start clean".
Either can reboot the switch while the boot selection is still being written —
which is a different route to the same prompt.
Rung 4: the upgrade that is really a reinstall
Cumulus issue 5441211:
You can only upgrade to CL5.19 from CL5.9.x using ONIE install and offline
configuration translation with NVUE.
An ONIE install rewrites partitions and reinstalls the bootloader. It is a
supported path, and it is also the path where a failed grub-install, a full
/boot, or an interrupted write leaves the switch with no bootable entry. The
image-slot abstraction does not protect an operator who is reinstalling the slot
table itself.
Rung 5: the file nothing checks
The last rung is the general case, and it has no issue number:
grub.cfgis generated from state that several components own;- it is written by tools that report success on completion, not on validity;
- it is read by a bootloader that has no fallback entry;
- and it is read by monitoring agents that have no contract about concurrent
access.
Every rung above is an instance of that shape. #5376220 is the purest one,
because it requires no clock error, no missing mount, no timeout and no
reinstall. It requires a monitoring agent doing its job while an operator does
theirs.
What the family teaches
Three operational rules follow, and they are cheaper than any of the individual
workarounds:
- Validate the file, not the command.
grub-script-check /boot/grub/grub.cfganswers the question that matters, and it is free. - Compare against a baseline. A hash from a known-good boot turns "does
this look right" into a boolean. - Never treat a reboot as a way to clear an ambiguous state. Resolve the
action, verify the config, then reboot in a window with console coverage.
The next part takes the last rung apart: what exactly the two processes do to
the same file, and why the damage is silent.

Next: Part 7 — the first and most fundamental flaw: #5376220, two processes,
one file, no lock.

Comments (0)