Bug 1947985

Summary: dasbus.error.DBusError: Could not align down to sector
Product: [Fedora] Fedora Reporter: David Agardh <agardh.david>
Component: python-blivetAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: airey.andy, anaconda-maint-list, blivet-maint-list, dlehman, gtaylor, japokorn, jonathan, kellin, mkolman, rvykydal, vanmeeuwen+fedora, vponcova, vtrefny, w
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3d000cb426ed5f62efe1b8037f3a98b85f4ab3ceb5e962a174717a5ae1d60a57;
Fixed In Version: python-blivet-3.4.0-1.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-07 15:43:27 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: anaconda.log
none
File: dbus.log
none
File: dnf.librepo.log
none
File: environ
none
File: lorax-packages.log
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: packaging.log none

Description David Agardh 2021-04-09 16:54:43 UTC
Description of problem:
I'm trying to install fedora. When I get to the step of selecting drives I get an error. This has happened with two different ISOs of fedora 34.

Version-Release number of selected component:
anaconda-34.24.8

The following was filed automatically by anaconda:
anaconda 34.24.8 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.9/site-packages/dasbus/client/handler.py", line 497, in _handle_method_error
    raise exception from None
  File "/usr/lib/python3.9/site-packages/dasbus/client/handler.py", line 477, in _get_method_reply
    return self._handle_method_error(error)
  File "/usr/lib/python3.9/site-packages/dasbus/client/handler.py", line 444, in _call_method
    return self._get_method_reply(
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 232, in _add_partition
    size_limits = self._device_tree.GetDeviceSizeLimits(device_name)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 206, in _add_disk
    free_size = self._add_partition(itr, child_name)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 144, in populate
    disk_reclaimable_space = self._add_disk(disk_name)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 427, in refresh
    self.populate(self._disks)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 801, in _skip_to_automatic_partitioning
    dialog.refresh()
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 686, in on_back_clicked
    self._skip_to_automatic_partitioning()
dasbus.error.DBusError: Could not align down to sector

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-E-dvd-x86_64-34 rd.live.check quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
hawkey.log:     2021-04-09T16:49:23+0000 INFO === Started libdnf-0.60.0 ===
kernel:         5.11.11-300.fc34.x86_64
product:        Fedora
release:        Fedora release 34 (Thirty Four)
release_type:   pre-release
type:           anaconda
version:        34

Comment 1 David Agardh 2021-04-09 16:54:59 UTC
Created attachment 1770707 [details]
File: anaconda-tb

Comment 2 David Agardh 2021-04-09 16:55:01 UTC
Created attachment 1770708 [details]
File: anaconda.log

Comment 3 David Agardh 2021-04-09 16:55:02 UTC
Created attachment 1770709 [details]
File: dbus.log

Comment 4 David Agardh 2021-04-09 16:55:03 UTC
Created attachment 1770710 [details]
File: dnf.librepo.log

Comment 5 David Agardh 2021-04-09 16:55:04 UTC
Created attachment 1770711 [details]
File: environ

Comment 6 David Agardh 2021-04-09 16:55:06 UTC
Created attachment 1770712 [details]
File: lorax-packages.log

Comment 7 David Agardh 2021-04-09 16:55:07 UTC
Created attachment 1770713 [details]
File: lsblk_output

Comment 8 David Agardh 2021-04-09 16:55:08 UTC
Created attachment 1770714 [details]
File: nmcli_dev_list

Comment 9 David Agardh 2021-04-09 16:55:09 UTC
Created attachment 1770715 [details]
File: os_info

Comment 10 David Agardh 2021-04-09 16:55:11 UTC
Created attachment 1770716 [details]
File: program.log

Comment 11 David Agardh 2021-04-09 16:55:14 UTC
Created attachment 1770717 [details]
File: storage.log

Comment 12 David Agardh 2021-04-09 16:55:22 UTC
Created attachment 1770718 [details]
File: syslog

Comment 13 David Agardh 2021-04-09 16:55:23 UTC
Created attachment 1770719 [details]
File: packaging.log

Comment 14 Vendula Poncova 2021-04-12 10:50:45 UTC
From storage.log:

WARNING:dasbus.server.handler:The call org.fedoraproject.Anaconda.Modules.Storage.DeviceTree.Resizable.GetDeviceSizeLimits has failed with an exception:
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/dasbus/server/handler.py", line 418, in _method_callback
    result = self._handle_call(
  File "/usr/lib/python3.9/site-packages/dasbus/server/handler.py", line 234, in _handle_call
    return handler(*parameters)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/partitioning/automatic/resizable_interface.py", line 62, in GetDeviceSizeLimits
    return self.implementation.get_device_size_limits(device_name)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/partitioning/automatic/resizable_module.py", line 91, in get_device_size_limits
    return device.min_size.get_bytes(), device.max_size.get_bytes()
  File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/blivet/devices/partition.py", line 938, in max_size
    return self.align_target_size(unaligned_max)
  File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/blivet/devices/partition.py", line 280, in align_target_size
    (_constraint, geometry) = self._compute_resize(self.parted_partition,
  File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/blivet/devices/partition.py", line 699, in _compute_resize
    new_geometry.end = align(align_geom, new_geometry.end)
  File "/usr/lib64/python3.9/site-packages/parted/decorators.py", line 42, in new
    ret = fn(*args, **kwds)
  File "/usr/lib64/python3.9/site-packages/parted/alignment.py", line 93, in alignDown
    return self.__alignment.align_down(geom.getPedGeometry(), sector)
ArithmeticError: Could not align down to sector

It seems to be an issue in the storage configuration library. Reassigning to blivet.

Comment 15 Vojtech Trefny 2021-04-12 11:30:59 UTC
*** Bug 1936146 has been marked as a duplicate of this bug. ***

Comment 17 Vojtech Trefny 2021-04-30 05:19:47 UTC
*** Bug 1828614 has been marked as a duplicate of this bug. ***