Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2327390

Summary: [OSP 17.1] - tripleo-ansible change 'Replace EFI grub.cfg with a stub redirect' could result in non-bootable system.
Product: Red Hat OpenStack Reporter: Matt Flusche <mflusche>
Component: tripleo-ansibleAssignee: OSP Team <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Joe H. Rahme <jhakimra>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17.1 (Wallaby)CC: elicohen, ramishra, sbaker
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-25 21:19:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matt Flusche 2024-11-19 18:24:27 UTC
Description of problem:
From tripleo-ansble change log

* Mon Jun 03 2024 OSP Prod Chain <dev-null> 3.3.1-17.1.20240603220822.8debef3
- Replace EFI grub.cfg with a stub redirect (rhbz#2277685 rhbz#2278025)

This change could result in non-bootable system if /boot/grub2/grub.cfg is not valid.

Prior to this change, /boot/grub2/grub.cfg, is unused on efi systems.  While it generally should be good, there is no guarantee.

One specific example would be upgrade from rhel 7->8->9, where grub2 was changed from non-BLS to BLS config during rhel8 upgrade and the rhel7 /etc/grub2/grub.cfg was left intact.

Validating and if necessary creating /boot/grub2/grub.cfg should be done when adding the EFI stub redirect.


Version-Release number of selected component (if applicable):
OSP 17.1
tripleo-ansible > 3.3.1-17.1.20240603220822.8debef3