Bug 2423976

Summary: AttributeError: Failed to add the device:'DeviceFormat' object has no attribute '_header_size'
Product: [Fedora] Fedora Reporter: dinkin
Component: anacondaAssignee: Martin Kolman <mkolman>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: afedorova, alpha, anaconda-maint, dinkin, kkoukiou, mkolman, w
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8e0bf90d9b347a0fa416fcac738059e29a5a90b11708f2f6b22683e1b81b1089;VARIANT_ID=kinoite;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-19 22:25:55 UTC 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
File: anaconda-tb
none
File: backtrace
none
File: os_info
none
File: environ
none
File: syslog
none
File: description
none
File: storage.log
none
File: packaging.log
none
File: program.log
none
File: nmcli_dev_list
none
File: anaconda.log
none
File: lorax-packages.log
none
File: lsblk_output
none
File: dbus.log
none
File: packaging.log none

Description dinkin 2025-12-19 21:18:13 UTC
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 515, 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 1348, in add_device
    actions = add_function(self, user_input)
  File "/usr/lib/python3.13/site-packages/blivetgui/blivet_utils.py", line 1037, in _create_partition
    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:
cmdline:        /usr/bin/python3  /sbin/anaconda
executable:     /sbin/anaconda
hashmarkername: anaconda
product:        Fedora
reason:         AttributeError: Failed to add the device:'DeviceFormat' object has no attribute '_header_size'
package:        anaconda-41.35
type:           anaconda
release:        Fedora release 41 (Forty One)
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=bazzite-x86_64-stable quiet
addons:         com_redhat_kdump
kernel:         6.16.12-100.fc41.x86_64
version:        41

Comment 1 dinkin 2025-12-19 21:18:18 UTC
Created attachment 2119277 [details]
File: anaconda-tb

Comment 2 dinkin 2025-12-19 21:18:20 UTC
Created attachment 2119278 [details]
File: backtrace

Comment 3 dinkin 2025-12-19 21:18:21 UTC
Created attachment 2119279 [details]
File: os_info

Comment 4 dinkin 2025-12-19 21:18:23 UTC
Created attachment 2119280 [details]
File: environ

Comment 5 dinkin 2025-12-19 21:18:26 UTC
Created attachment 2119281 [details]
File: syslog

Comment 6 dinkin 2025-12-19 21:18:28 UTC
Created attachment 2119282 [details]
File: description

Comment 7 dinkin 2025-12-19 21:18:29 UTC
Created attachment 2119283 [details]
File: storage.log

Comment 8 dinkin 2025-12-19 21:18:31 UTC
Created attachment 2119284 [details]
File: packaging.log

Comment 9 dinkin 2025-12-19 21:18:32 UTC
Created attachment 2119285 [details]
File: program.log

Comment 10 dinkin 2025-12-19 21:18:34 UTC
Created attachment 2119286 [details]
File: nmcli_dev_list

Comment 11 dinkin 2025-12-19 21:18:35 UTC
Created attachment 2119287 [details]
File: anaconda.log

Comment 12 dinkin 2025-12-19 21:18:36 UTC
Created attachment 2119288 [details]
File: lorax-packages.log

Comment 13 dinkin 2025-12-19 21:18:38 UTC
Created attachment 2119289 [details]
File: lsblk_output

Comment 14 dinkin 2025-12-19 21:18:39 UTC
Created attachment 2119290 [details]
File: dbus.log

Comment 15 dinkin 2025-12-19 21:18:40 UTC
Created attachment 2119291 [details]
File: packaging.log

Comment 16 Aleksandra Fedorova 2025-12-19 22:25:55 UTC
Fedora Linux 41 entered end-of-life (EOL) status on 2025-12-15.

Fedora Linux 41 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.


If you can reproduce this bug against a currently maintained version of the vanilla Fedora Linux (42, 43 or Rawhide)
please feel free to reopen this bug against that version.

Comment 17 Katerina Koukiou 2025-12-22 07:38:17 UTC

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