Bug 2219544

Summary: Inplace upgrade of BIOS system with multiple HDDs with all partitions in RAID1 (including /boot) results in unbootable system.
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Holica <pholica>
Component: leapp-repositoryAssignee: Leapp Notifications Bot <leapp-notifications-bot>
Status: ON_QA --- QA Contact: upgrades-and-conversions
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.9CC: pstodulk
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: leapp-repository-0.18.0-5.el7_9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 1957192    

Description Pavel Holica 2023-07-04 09:02:49 UTC
Description of problem:
Upgrade of system with multiple HDDs with all partitions in RAID1 (including /boot) results in unbootable system.

Version-Release number of selected component (if applicable):
RHEL-7.9 upgraded to currently available updates
# rpm -qa leapp leapp-upgrade\*
leapp-0.15.1-1.el7_9.noarch
leapp-upgrade-el7toel8-deps-0.18.0-3.el7_9.noarch
leapp-upgrade-el7toel8-0.18.0-3.el7_9.noarch

How reproducible:
always

Steps to Reproduce:
1. Obtain system with (at least) 2 hard drives
2. Install RHEL-7 system with following partitioning (kickstart snippet):
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part raid.700 --fstype="mdmember" --ondisk=vda --size=1025
part raid.706 --fstype="mdmember" --ondisk=vdb --size=1025
part raid.828 --fstype="mdmember" --ondisk=vda --size=14344
part raid.834 --fstype="mdmember" --ondisk=vdb --size=14344
part swap --fstype="swap" --size=3969
raid /boot --device=boot --fstype="xfs" --level=RAID1 raid.700 raid.706
raid / --device=root --fstype="xfs" --level=RAID1 raid.828 raid.834
3. Perform everything needed for system system upgrade
4. Run leapp upgrade
5. reboot the system to run upgrade
6. Wait for the system to be upgraded and boot

Actual results:
Leapp does allows to proceed with upgrade
The system is upgraded
The system does not boot after upgrade with grub error:
error: symbol `grub_real_boot_time' not found.

Expected results:
The system boots successfully after the upgrade/

Additional info:

Comment 3 Petr Stodulka 2023-07-17 18:38:31 UTC
Fixed in upstream by PR:
  * https://github.com/oamg/leapp-repository/pull/1093