Bug 2423976 - 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: Martin Kolman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8e0bf90d9b347a0fa416fcac738...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-19 21:18 UTC by dinkin
Modified: 2025-12-22 07:38 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-19 22:25:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (3.65 MB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: backtrace (2.30 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: os_info (708 bytes, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: environ (986 bytes, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: syslog (3.88 MB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: description (2.21 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: storage.log (381.00 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: packaging.log (3.46 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: program.log (30.81 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: nmcli_dev_list (7.11 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: anaconda.log (53.69 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: lorax-packages.log (29.92 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: lsblk_output (2.12 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: dbus.log (3.69 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details
File: packaging.log (3.46 KB, text/plain)
2025-12-19 21:18 UTC, dinkin
no flags Details

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 ***


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