Bug 2335782 - 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 DUPLICATE of bug 2332338
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: anaconda-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a5333ad3aafc71f7ad5c391de0b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-06 09:56 UTC by Dominik Muth
Modified: 2025-01-06 10:00 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-01-06 10:00:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: dbus.log (7.81 KB, text/plain)
2025-01-06 09:56 UTC, Dominik Muth
no flags Details
File: lsblk_output (1.19 KB, text/plain)
2025-01-06 09:56 UTC, Dominik Muth
no flags Details
File: anaconda.log (32.69 KB, text/plain)
2025-01-06 09:56 UTC, Dominik Muth
no flags Details
File: anaconda-tb (1007.11 KB, text/plain)
2025-01-06 09:56 UTC, Dominik Muth
no flags Details
File: nmcli_dev_list (1.52 KB, text/plain)
2025-01-06 09:56 UTC, Dominik Muth
no flags Details
File: program.log (12.67 KB, text/plain)
2025-01-06 09:56 UTC, Dominik Muth
no flags Details
File: backtrace (2.29 KB, text/plain)
2025-01-06 09:57 UTC, Dominik Muth
no flags Details
File: packaging.log (7.75 KB, text/plain)
2025-01-06 09:57 UTC, Dominik Muth
no flags Details
File: storage.log (137.99 KB, text/plain)
2025-01-06 09:57 UTC, Dominik Muth
no flags Details
File: description (2.21 KB, text/plain)
2025-01-06 09:57 UTC, Dominik Muth
no flags Details
File: journalctl (749.99 KB, text/plain)
2025-01-06 09:57 UTC, Dominik Muth
no flags Details
File: environ (678 bytes, text/plain)
2025-01-06 09:57 UTC, Dominik Muth
no flags Details
File: os_info (754 bytes, text/plain)
2025-01-06 09:57 UTC, Dominik Muth
no flags Details
File: packaging.log (7.75 KB, text/plain)
2025-01-06 09:57 UTC, Dominik Muth
no flags Details

Description Dominik Muth 2025-01-06 09:56:50 UTC
Description of problem:
anaconda blivet btrfs on encrypted lvm logical volume

Version-Release number of selected component:
anaconda-core-41.35-2.fc41.x86_64


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:
other involved packages: blivet-gui-runtime-2.5.0-4.fc41.noarch
version:        41
kernel:         6.11.4-301.fc41.x86_64
addons:         com_redhat_kdump
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-WS-Live-41-1-4 rd.live.image quiet rhgb
release:        Fedora release 41 (Forty One)
type:           anaconda
reason:         AttributeError: Failed to add the device:'DeviceFormat' object has no attribute '_header_size'
package:        anaconda-core-41.35-2.fc41.x86_64
product:        Fedora
hashmarkername: anaconda
executable:     /sbin/anaconda
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --graphical
comment:        anaconda blivet btrfs on encrypted lvm logical volume

Comment 1 Dominik Muth 2025-01-06 09:56:52 UTC
Created attachment 2064853 [details]
File: dbus.log

Comment 2 Dominik Muth 2025-01-06 09:56:53 UTC
Created attachment 2064854 [details]
File: lsblk_output

Comment 3 Dominik Muth 2025-01-06 09:56:54 UTC
Created attachment 2064855 [details]
File: anaconda.log

Comment 4 Dominik Muth 2025-01-06 09:56:56 UTC
Created attachment 2064856 [details]
File: anaconda-tb

Comment 5 Dominik Muth 2025-01-06 09:56:57 UTC
Created attachment 2064857 [details]
File: nmcli_dev_list

Comment 6 Dominik Muth 2025-01-06 09:56:59 UTC
Created attachment 2064858 [details]
File: program.log

Comment 7 Dominik Muth 2025-01-06 09:57:00 UTC
Created attachment 2064859 [details]
File: backtrace

Comment 8 Dominik Muth 2025-01-06 09:57:01 UTC
Created attachment 2064860 [details]
File: packaging.log

Comment 9 Dominik Muth 2025-01-06 09:57:03 UTC
Created attachment 2064861 [details]
File: storage.log

Comment 10 Dominik Muth 2025-01-06 09:57:05 UTC
Created attachment 2064862 [details]
File: description

Comment 11 Dominik Muth 2025-01-06 09:57:07 UTC
Created attachment 2064863 [details]
File: journalctl

Comment 12 Dominik Muth 2025-01-06 09:57:08 UTC
Created attachment 2064864 [details]
File: environ

Comment 13 Dominik Muth 2025-01-06 09:57:10 UTC
Created attachment 2064865 [details]
File: os_info

Comment 14 Dominik Muth 2025-01-06 09:57:11 UTC
Created attachment 2064866 [details]
File: packaging.log

Comment 15 Vojtech Trefny 2025-01-06 10:00:46 UTC

*** This bug has been marked as a duplicate of bug 2332338 ***


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