Bug 2332338 - AttributeError: Failed to add the device:'DeviceFormat' object has no attribute '_header_size'
Summary: AttributeError: Failed to add the device:'DeviceFormat' object has no attribu...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: blivet-gui
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a5333ad3aafc71f7ad5c391de0b...
: 2335782 2423976 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-13 20:38 UTC by Jimmy Thrasibule
Modified: 2025-12-22 07:38 UTC (History)
11 users (show)

Fixed In Version: blivet-gui-2.6.0-3.fc43
Clone Of:
Environment:
Last Closed: 2025-02-25 15:05:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: dbus.log (3.69 KB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: lsblk_output (390 bytes, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: lorax-packages.log (29.59 KB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: anaconda.log (49.74 KB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: anaconda-tb (2.21 MB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: nmcli_dev_list (2.70 KB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: packaging.log (21.29 KB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: storage.log (122.88 KB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: description (2.21 KB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: syslog (1.92 MB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: environ (950 bytes, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: backtrace (2.29 KB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: os_info (708 bytes, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details
File: packaging.log (21.29 KB, text/plain)
2024-12-13 20:38 UTC, Jimmy Thrasibule
no flags Details

Description Jimmy Thrasibule 2024-12-13 20:38:01 UTC
Description of problem:
Issue triggers while trying to create a LUKS encrypted BTRFS LVM volume. The structure looked like this:

p1: EFI /boot/efi
p2: ext4 /boot
p3: LUKS2
  > LVM Group
    > LVM Volume
   |  > LUKS2
   |    > swap
    > LVM Volume
    | > LUKS2
    |   > btrfs / * crash here!

Version-Release number of selected component:
anaconda-41.35


The following was filed automatically by anaconda:
anaconda 41.35 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.13/site-packages/blivetgui/osinstall.py", line 234, in _reraise_exception
    raise type(exception)(message + str(exception) + "\n" + traceback)
  File "/usr/lib/python3.13/site-packages/blivetgui/blivetgui.py", line 514, in add_device
    self._reraise_exception(result.exception, result.traceback, message,
AttributeError: Failed to add the device:'DeviceFormat' object has no attribute '_header_size'
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/blivetgui/blivet_utils.py", line 1346, in add_device
    actions = add_function(self, user_input)
  File "/usr/lib/python3.13/site-packages/blivetgui/blivet_utils.py", line 1096, in _create_lvmlv
    actions.extend(self._create_format(user_input, luks_dev))
                   ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/blivetgui/blivet_utils.py", line 935, in _create_format
    actions = self._create_btrfs_format(user_input, device)
  File "/usr/lib/python3.13/site-packages/blivetgui/blivet_utils.py", line 958, in _create_btrfs_format
    device.format = btrfs_fmt
    ^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/blivet/threads.py", line 49, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.13/site-packages/blivet/devices/storage.py", line 836, in <lambda>
    lambda d, f: d._set_format(f),
                 ~~~~~~~~~~~~~^^^
  File "/usr/lib/python3.13/site-packages/blivet/threads.py", line 49, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.13/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.13/site-packages/blivet/threads.py", line 49, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.13/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'

Additional info:
hawkey.log:     2024-12-13T20:01:18+0000 INFO === Started libdnf-0.73.3 ===
version:        41
kernel:         6.11.4-301.fc41.x86_64
addons:         com_redhat_kdump
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=https://download.fedoraproject.org/pub/fedora/linux/releases/41/Server/x86_64/os/ ip=dhcp quiet
release:        Fedora release 41 (Forty One)
type:           anaconda
package:        anaconda-41.35
reason:         AttributeError: Failed to add the device:'DeviceFormat' object has no attribute '_header_size'
product:        Fedora
hashmarkername: anaconda
executable:     /sbin/anaconda
cmdline:        /usr/bin/python3  /sbin/anaconda

Comment 1 Jimmy Thrasibule 2024-12-13 20:38:04 UTC
Created attachment 2062339 [details]
File: dbus.log

Comment 2 Jimmy Thrasibule 2024-12-13 20:38:05 UTC
Created attachment 2062340 [details]
File: lsblk_output

Comment 3 Jimmy Thrasibule 2024-12-13 20:38:07 UTC
Created attachment 2062341 [details]
File: lorax-packages.log

Comment 4 Jimmy Thrasibule 2024-12-13 20:38:09 UTC
Created attachment 2062342 [details]
File: anaconda.log

Comment 5 Jimmy Thrasibule 2024-12-13 20:38:11 UTC
Created attachment 2062343 [details]
File: anaconda-tb

Comment 6 Jimmy Thrasibule 2024-12-13 20:38:13 UTC
Created attachment 2062344 [details]
File: nmcli_dev_list

Comment 7 Jimmy Thrasibule 2024-12-13 20:38:14 UTC
Created attachment 2062345 [details]
File: packaging.log

Comment 8 Jimmy Thrasibule 2024-12-13 20:38:16 UTC
Created attachment 2062346 [details]
File: storage.log

Comment 9 Jimmy Thrasibule 2024-12-13 20:38:17 UTC
Created attachment 2062347 [details]
File: description

Comment 10 Jimmy Thrasibule 2024-12-13 20:38:20 UTC
Created attachment 2062348 [details]
File: syslog

Comment 11 Jimmy Thrasibule 2024-12-13 20:38:21 UTC
Created attachment 2062349 [details]
File: environ

Comment 12 Jimmy Thrasibule 2024-12-13 20:38:23 UTC
Created attachment 2062350 [details]
File: backtrace

Comment 13 Jimmy Thrasibule 2024-12-13 20:38:24 UTC
Created attachment 2062351 [details]
File: os_info

Comment 14 Jimmy Thrasibule 2024-12-13 20:38:26 UTC
Created attachment 2062352 [details]
File: packaging.log

Comment 15 Vojtech Trefny 2025-01-06 10:00:46 UTC
*** Bug 2335782 has been marked as a duplicate of this bug. ***

Comment 16 Vojtech Trefny 2025-01-09 12:35:51 UTC
upstream PR: https://github.com/storaged-project/blivet-gui/pull/466

Comment 17 Fedora Update System 2025-02-25 15:06:10 UTC
FEDORA-2025-a71685c28b (blivet-gui-2.6.0-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-a71685c28b

Comment 18 Fedora Update System 2025-02-26 02:33:41 UTC
FEDORA-2025-a71685c28b 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-a71685c28b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-a71685c28b

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

Comment 19 Fedora Update System 2025-03-15 00:30:55 UTC
FEDORA-2025-a71685c28b (blivet-gui-2.6.0-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Katerina Koukiou 2025-12-22 07:38:17 UTC
*** Bug 2423976 has been marked as a duplicate of this bug. ***


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