Bug 1993251

Summary: Software RAID installs fail with "mdadm: specifying chunk size is forbidden for this level"
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: python-blivetAssignee: Blivet Maintenance Team <blivet-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 35CC: blivet-maint-list, dlehman, japokorn, mkolman, robatino, rvykydal, vponcova, vtrefny
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: AcceptedBlocker openqa
Fixed In Version: python-blivet-3.4.1-1.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-19 11:14:36 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:
Bug Depends On:    
Bug Blocks: 1891953    

Description Adam Williamson 2021-08-12 15:48:44 UTC
In recent composes, the openQA software RAID install tests all crash. The traceback is:

02:32:25,557 CRT exception: Traceback (most recent call last):

  File "/usr/lib64/python3.10/site-packages/pyanaconda/threading.py", line 275, in run
    threading.Thread.run(self)

  File "/usr/lib64/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)

  File "/usr/lib64/python3.10/site-packages/pyanaconda/installation.py", line 415, in run_installation
    queue.start()

  File "/usr/lib64/python3.10/site-packages/pyanaconda/installation_tasks.py", line 311, in start
    item.start()

  File "/usr/lib64/python3.10/site-packages/pyanaconda/installation_tasks.py", line 311, in start
    item.start()

  File "/usr/lib64/python3.10/site-packages/pyanaconda/installation_tasks.py", line 311, in start
    item.start()

  File "/usr/lib64/python3.10/site-packages/pyanaconda/installation_tasks.py", line 496, in start
    self.run_task()

  File "/usr/lib64/python3.10/site-packages/pyanaconda/installation_tasks.py", line 527, in run_task
    sync_run_task(self._task_proxy)

  File "/usr/lib64/python3.10/site-packages/pyanaconda/modules/common/task/__init__.py", line 46, in sync_run_task
    task_proxy.Finish()

  File "/usr/lib/python3.10/site-packages/dasbus/client/handler.py", line 444, in _call_method
    return self._get_method_reply(

  File "/usr/lib/python3.10/site-packages/dasbus/client/handler.py", line 477, in _get_method_reply
    return self._handle_method_error(error)

  File "/usr/lib/python3.10/site-packages/dasbus/client/handler.py", line 497, in _handle_method_error
    raise exception from None

dasbus.error.DBusError: Process reported exit code 1: mdadm: specifying chunk size is forbidden for this level

I expect this is likely due to a change in mdadm 4.2 RC2, which landed recently.

Proposing as a Beta blocker as a violation of "When using both the installer-native and the blivet-gui-based custom partitioning flow, the installer must be able to: ... Create mount points backed by ext4 partitions, LVM volumes or btrfs volumes, or software RAID arrays at RAID levels 0, 1 and 5 containing ext4 partitions" - https://fedoraproject.org/wiki/Fedora_35_Beta_Release_Criteria#Custom_partitioning

Comment 1 Adam Williamson 2021-08-12 15:50:05 UTC
Oh, I should mention, the tests use RAID level 1 (mirror).

Comment 2 Vojtech Trefny 2021-08-13 16:05:09 UTC
upstream PR: https://github.com/storaged-project/blivet/pull/969

Comment 3 Adam Williamson 2021-08-17 16:58:34 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/392 , marking accepted. PR is merged upstream, but no new build for Rawhide/F35 yet.

Comment 4 Adam Williamson 2021-08-20 21:28:40 UTC
So the 'regular custom' tests now pass, but blivet custom tests still fail. I think possibly blivet-gui also sets the chunk size directly and needs adjusting. I'll file a new bug for that.

Comment 5 Adam Williamson 2021-08-20 22:21:55 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1996223 for blivet-gui.