Bug 2354805 - putting /boot on MDRAID0 is accepted and results in a non-booting system [NEEDINFO]
Summary: putting /boot on MDRAID0 is accepted and results in a non-booting system
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 42
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Konecny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
Depends On:
Blocks: F42FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2025-03-25 10:15 UTC by Kamil Páral
Modified: 2025-04-04 08:16 UTC (History)
6 users (show)

Fixed In Version: anaconda-42.27.10-1.fc42 anaconda-42.27.11-1.fc42
Clone Of:
Environment:
Last Closed: 2025-04-04 08:16:11 UTC
Type: Bug
Embargoed:
kparal: needinfo? (anaconda-maint)


Attachments (Terms of Use)
layout.png (84.38 KB, image/png)
2025-03-25 10:16 UTC, Kamil Páral
no flags Details
layout-valid.png (90.57 KB, image/png)
2025-03-25 10:16 UTC, Kamil Páral
no flags Details
grub-unknown-filesystem.png (6.72 KB, image/png)
2025-03-25 10:16 UTC, Kamil Páral
no flags Details
anaconda.log (7.55 KB, text/plain)
2025-03-25 10:17 UTC, Kamil Páral
no flags Details
dbus.log (3.91 KB, text/plain)
2025-03-25 10:17 UTC, Kamil Páral
no flags Details
journal.log (2.63 MB, text/plain)
2025-03-25 10:17 UTC, Kamil Páral
no flags Details
packaging.log (19.54 KB, text/plain)
2025-03-25 10:17 UTC, Kamil Páral
no flags Details
program.log (1.68 KB, text/plain)
2025-03-25 10:17 UTC, Kamil Páral
no flags Details
storage.log (206.05 KB, text/plain)
2025-03-25 10:17 UTC, Kamil Páral
no flags Details

Description Kamil Páral 2025-03-25 10:15:56 UTC
Description of problem:
Anaconda now seems to check whether biosboot is located on a supported device (for MDRAID, it needs to be MDRAID1, and not MDRAID0). However, it doesn't check /boot location. If I place biosboot on a standard disk, and /boot on MDRAID0, Anaconda accepts this layout. However, the installed system doesn't boot. Grub complains about unknown filesystem.

Version-Release number of selected component (if applicable):
anaconda-42.27.7-1.fc42.x86_64
anaconda-webui-29-1.fc42.noarch
cockpit-storaged-336-1.fc42.noarch

How reproducible:
always

Steps to Reproduce:
1. boot in BIOS mode
2. have 3 completely empty disks, without partitioning
3. select all disks
4. enter storage editor
5. create GPT on the first disk, and put biosboot there
6. create MDRAID0 on top the last two disks (not partitions)
7. create GPT, /boot and / on MDRAID0
8. anaconda accepts this layout, install
9. see grub not booting the installed system

Comment 1 Kamil Páral 2025-03-25 10:16:23 UTC
Created attachment 2081868 [details]
layout.png

Comment 2 Kamil Páral 2025-03-25 10:16:26 UTC
Created attachment 2081869 [details]
layout-valid.png

Comment 3 Kamil Páral 2025-03-25 10:16:29 UTC
Created attachment 2081870 [details]
grub-unknown-filesystem.png

Comment 4 Kamil Páral 2025-03-25 10:17:14 UTC
Created attachment 2081871 [details]
anaconda.log

Comment 5 Kamil Páral 2025-03-25 10:17:17 UTC
Created attachment 2081872 [details]
dbus.log

Comment 6 Kamil Páral 2025-03-25 10:17:21 UTC
Created attachment 2081873 [details]
journal.log

Comment 7 Kamil Páral 2025-03-25 10:17:24 UTC
Created attachment 2081874 [details]
packaging.log

Comment 8 Kamil Páral 2025-03-25 10:17:27 UTC
Created attachment 2081875 [details]
program.log

Comment 9 Kamil Páral 2025-03-25 10:17:31 UTC
Created attachment 2081876 [details]
storage.log

Comment 10 Kamil Páral 2025-03-25 10:19:54 UTC
Proposing for a blocker discussion. Anaconda accepts a non-working disk layout.

Perhaps related to:

"Reject or disallow invalid disk and volume configurations without crashing."
https://fedoraproject.org/wiki/Fedora_42_Beta_Release_Criteria#Custom_partitioning

and
https://fedoraproject.org/wiki/Fedora_42_Final_Release_Criteria#Disk_layouts

Comment 11 Katerina Koukiou 2025-03-25 11:51:20 UTC
The supported RAID levels for stage2 are hardcoded in anaconda:

https://github.com/rhinstaller/anaconda/blob/main/pyanaconda/modules/storage/bootloader/grub2.py#L120

RAID0 should according to the list above not be an issue for /boot.

Comment 12 Kamil Páral 2025-03-25 12:14:07 UTC
The same scenario with MDRAID1 boots OK.

Comment 13 Katerina Koukiou 2025-03-25 12:21:03 UTC
For the record I just added an upstream test reproducer for this. https://github.com/rhinstaller/anaconda-webui/pull/729

Comment 14 Katerina Koukiou 2025-03-27 06:46:37 UTC
@Kamil I was able to reproduce almost the same issue with GTK UI from f41.

With the following reproducer:
* Three disks, vda, vdb, vdc
* Select all of the and choose Custom partitioning with Blivet GUI
* Create a biosboot partition on vda
* Create a RAID0 device with ext4 on vdb and vdc and mount /boot (blivet GUI creates automatically the vdb1 and vdc1 partitions and creates RAID0 on the partitions)
* Create a RAID0 device with ext4 on the rest of space on vdb and vdc and mount /


Proceed with the installation. There is a warning shown, that biosboot is on seperate disk than /boot, but one can proceed with the installation.

warning: "boot loader stage2 device %(stage2dev)s is on a multi-disk array, but boot loader stage1 device %(stage1dev)s is not part of this array.The stage1 boot loader will only be installed to a single drive."

Finish the installation and reboot, resulting in the exact error screen in GRUB.


Please verify my scenario that GTK is also broken for /boot on RAID0.
I am in the meantime working on a global fix.

Comment 15 Katerina Koukiou 2025-03-27 07:19:02 UTC
Upstream fix: https://github.com/rhinstaller/anaconda/pull/6311

Comment 16 Jiri Konecny 2025-03-27 14:52:00 UTC
New PR: https://github.com/rhinstaller/anaconda/pull/6314

Comment 17 Adam Williamson 2025-03-27 19:32:04 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/1810 , marking accepted blocker.

Comment 18 Fedora Update System 2025-03-28 14:39:31 UTC
FEDORA-2025-900bb2b163 (anaconda-42.27.10-1.fc42 and anaconda-webui-31-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-900bb2b163

Comment 19 Fedora Update System 2025-03-29 01:31:53 UTC
FEDORA-2025-900bb2b163 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-900bb2b163`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-900bb2b163

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2025-03-30 00:16:55 UTC
FEDORA-2025-900bb2b163 (anaconda-42.27.10-1.fc42 and anaconda-webui-31-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Kamil Páral 2025-03-30 14:06:50 UTC
This bug hasn't seen any change, it can still be reproduced exactly as described in the reproducer.

Tested with:
cockpit-storaged-336.2-1.fc42.noarch
anaconda-42.27.10-1.fc42.x86_64
anaconda-webui-31-1.fc42.noarch

Comment 22 Katerina Koukiou 2025-03-31 07:21:48 UTC
You are right Kamil, sorry for the back and forward. 

Upstream fix: https://github.com/rhinstaller/anaconda/pull/6324 

I verified this also with anaconda-webui directly.

Comment 23 Fedora Update System 2025-04-02 09:31:32 UTC
FEDORA-2025-f4b60a3d74 (anaconda-42.27.11-1.fc42 and anaconda-webui-32-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-f4b60a3d74

Comment 24 Adam Williamson 2025-04-02 19:46:15 UTC
Here's an openQA-built netinst that can be used for testing the fix: https://adamwill.fedorapeople.org/04891868-FEDORA-2025-f4b60a3d74-netinst-x86_64.iso

Comment 25 Adam Williamson 2025-04-02 20:36:27 UTC
live image, for webui testing: https://adamwill.fedorapeople.org/04891897-Fedora-Workstation-Live-x86_64-FEDORA-2025-f4b60a3d74.iso

Comment 26 Fedora Update System 2025-04-03 03:43:15 UTC
FEDORA-2025-f4b60a3d74 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-f4b60a3d74`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f4b60a3d74

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 27 Kamil Páral 2025-04-03 07:34:57 UTC
This is fixed, anaconda now rejects the layout from comment 0. However, I discovered bug 2357128 when I tried to make anaconda happy.

Comment 28 Fedora Update System 2025-04-04 08:16:11 UTC
FEDORA-2025-f4b60a3d74 (anaconda-42.27.11-1.fc42 and anaconda-webui-32-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.