Bug 2357484

Summary: Blivet is ignoring a partition on MDRAID with "parted disk not found"
Product: [Fedora] Fedora Reporter: Katerina Koukiou <kkoukiou>
Component: python-blivetAssignee: Vojtech Trefny <vtrefny>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: blivet-maint-list, dlehman, kkoukiou, mkolman, rvykydal, vtrefny
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
journalctl output none

Description Katerina Koukiou 2025-04-04 12:54:45 UTC
Blivet does not show RAID partition device in the DeviceTree.

This is the relevant part from the journal (attach whole journal as well)

DEBUG:blivet:                    DeviceTree.get_device_by_name: name: SOMERAID1 ; incomplete: False ; hidden: False ;
DEBUG:blivet:                    DeviceTree.get_device_by_name returned None
DEBUG:blivet:                   PartitionDevicePopulator.run: name: SOMERAID1 ;
DEBUG:blivet:                     DeviceTree.get_device_by_name: name: SOMERAID1 ; incomplete: False ; hidden: False ;
DEBUG:blivet:                     DeviceTree.get_device_by_name returned None
INFO:program:Running... udevadm settle --timeout=300
DEBUG:program:Return code: 0
DEBUG:testdata:sysfs attr /sys/class/block/sr0/device/model: 51454d55204456442d524f4d202020200a
DEBUG:blivet:                     DeviceTree.get_device_by_name: name: SOMERAID ; incomplete: False ; hidden: False ;
DEBUG:blivet:existing RAID raid0 size == 29.98 GiB
DEBUG:blivet:                     DeviceTree.get_device_by_name returned existing 29.98 GiB mdarray SOMERAID (300) with existing  disklabel
DEBUG:blivet:existing RAID raid0 size == 29.98 GiB
ERROR:blivet:ignoring partition SOMERAID1 on SOMERAID: parted disk not found
DEBUG:blivet:no device obtained for SOMERAID1


Reproducible: Always

Steps to Reproduce:
1. Boot 42 workstation installer ISO 
2. have vda/vdb/vdc disks all empty
3. put biosboot and /boot on vda
4. create raid (level 1) in cockpit-storage (NAME SOMERAID)
5. delete the raid SOMERAID device
6. create raid (level 0) in cockpit-storage (NAME SOMERAID)
7. Put GPT table and create / partition on that

Actual Results:  

Try to return to installation and see this error:
 'You have not defined a root partition (/), which is required for installation of Fedora to continue.'

This is because SOMERAID1 partition is ignored by blivet as seen in the journal above.  

Expected Results:  
SOMERAID1 should not be ignored.

I have an automated test reproducer. I can help with extra debugging.

Comment 1 Katerina Koukiou 2025-04-04 12:55:16 UTC
Created attachment 2083399 [details]
journal.output

Comment 2 Katerina Koukiou 2025-04-04 13:24:58 UTC
Sorry one small correction. This is only reproduceable if between steps 4 and 5 the user tries to exit cockpit-storage, that's trigerring the re-scan.

Comment 3 Katerina Koukiou 2025-04-30 09:33:10 UTC
I still see this in our upstream CI on rawhide. Attaching journal log.

Comment 4 Katerina Koukiou 2025-04-30 09:33:33 UTC
Created attachment 2087892 [details]
journalctl output

Comment 5 Katerina Koukiou 2025-04-30 10:23:42 UTC
The test that reproduces this on CI is this one: https://github.com/rhinstaller/anaconda-webui/blob/74868794683d4b876c8fdf336f173c3f2a477a64/test/check-storage-cockpit#L511