Bug 2401870 - Cannot add encrypted MD RAID btrfs device in blivet-gui
Summary: Cannot add encrypted MD RAID btrfs device in blivet-gui
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: blivet-gui
Version: 43
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
Depends On:
Blocks: F43FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2025-10-06 12:29 UTC by Vojtech Trefny
Modified: 2025-10-12 17:30 UTC (History)
4 users (show)

Fixed In Version: blivet-gui-2.6.0-10.fc43
Clone Of:
Environment:
Last Closed: 2025-10-12 17:30:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vojtech Trefny 2025-10-06 12:29:36 UTC
AttributeError: Failed to add the device:
'DeviceFormat' object has no attribute '_header_size'
Traceback (most recent call last):
  File "/usr/lib/python3.14/site-packages/blivetgui/blivet_utils.py", line 1432, in add_device
    actions = add_function(self, user_input)
  File "/usr/lib/python3.14/site-packages/blivetgui/blivet_utils.py", line 1304, in _create_mdraid
    actions.extend(self._create_format(user_input, luks_dev))
                   ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/blivetgui/blivet_utils.py", line 977, in _create_format
    actions = self._create_btrfs_format(user_input, device)
  File "/usr/lib/python3.14/site-packages/blivetgui/blivet_utils.py", line 994, in _create_btrfs_format
    device.format = btrfs_fmt
    ^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/blivet/threads.py", line 48, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.14/site-packages/blivet/devices/storage.py", line 836, in <lambda>
    lambda d, f: d._set_format(f),
                 ~~~~~~~~~~~~~^^^
  File "/usr/lib/python3.14/site-packages/blivet/threads.py", line 48, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.14/site-packages/blivet/devices/storage.py", line 786, in _set_format
    if fmt.max_size and fmt.max_size < self.size:
                                       ^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/blivet/threads.py", line 48, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.14/site-packages/blivet/devices/luks.py", line 80, in _get_size
    size = self.raw_device.size - self.raw_device.format._header_size
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DeviceFormat' object has no attribute '_header_size'
-------------------------------------------------------------------------------

Original report: https://discussion.fedoraproject.org/t/atomic-desktop-install-with-software-raid/166912

Reproducible: Always

Comment 1 Vojtech Trefny 2025-10-06 12:41:54 UTC
upstream PR: https://github.com/storaged-project/blivet-gui/pull/520

Comment 2 Fedora Update System 2025-10-06 13:47:25 UTC
FEDORA-2025-1b82863bf3 (blivet-gui-2.6.0-10.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-1b82863bf3

Comment 3 Fedora Update System 2025-10-07 01:13:06 UTC
FEDORA-2025-1b82863bf3 has been pushed to the Fedora 43 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-1b82863bf3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-1b82863bf3

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

Comment 4 Fedora Blocker Bugs Application 2025-10-07 07:36:03 UTC
Proposed as a Blocker for 43-final by Fedora user vtrefny using the blocker tracking app because:

 This is not a critical bug (btrfs on top of encrypted MD RAID is probably not a widely used configuration), but it technically violates the "Disk layouts" release criterion. The fix is simple and already available in Bodhi and chance it breaks anything else is very low so I think it is worth fixing this in F43.

Comment 5 Adam Williamson 2025-10-11 06:36:01 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/1960 , marking accepted blocker.

Comment 6 Fedora Update System 2025-10-12 17:30:38 UTC
FEDORA-2025-1b82863bf3 (blivet-gui-2.6.0-10.fc43) has been pushed to the Fedora 43 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.