Bug 1828614

Summary: dasbus.error.DBusError: Could not align down to sector
Product: [Fedora] Fedora Reporter: aairey <airey.andy>
Component: python-blivetAssignee: Blivet Maintenance Team <blivet-maint-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: anaconda-maint-list, blivet-maint-list, dlehman, jkonecny, jonathan, kellin, mkolman, rvykydal, vanmeeuwen+fedora, vponcova, vtrefny, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:aa2663f30cad75261afd5389b38fb210d821e57ea038722c956a3d272cd5472c;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-30 05:19:51 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: environ
none
File: journalctl
none
File: lsblk_output
none
File: lvm.log
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log none

Description aairey 2020-04-27 22:25:39 UTC
Description of problem:
Fedora installer suggested me to reclaim space as not enough was available to install. After clicking that button I hit this bug.

Version-Release number of selected component:
anaconda-core-32.24.2-3.fc32.x86_64

The following was filed automatically by anaconda:
anaconda 32.24.2 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.8/site-packages/dasbus/client/handler.py", line 496, in _handle_method_error
    raise exception from None
  File "/usr/lib/python3.8/site-packages/dasbus/client/handler.py", line 474, in _get_method_reply
    return self._handle_method_error(error)
  File "/usr/lib/python3.8/site-packages/dasbus/client/handler.py", line 442, in _call_method
    return self._get_method_reply(
  File "/usr/lib64/python3.8/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 229, in _add_partition
    size_limits = self._device_tree.GetDeviceSizeLimits(device_name)
  File "/usr/lib64/python3.8/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 203, in _add_disk
    free_size = self._add_partition(itr, child_name)
  File "/usr/lib64/python3.8/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 141, in populate
    disk_reclaimable_space = self._add_disk(disk_name)
  File "/usr/lib64/python3.8/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 414, in refresh
    self.populate(self._disks)
  File "/usr/lib64/python3.8/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 944, in _skip_to_automatic_partitioning
    dialog.refresh()
  File "/usr/lib64/python3.8/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 829, 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 --liveinst --method=livecd:/dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img root=live:CDLABEL=Fedora-WS-Live-32_B-1-2  rd.live.image quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         5.6.0-0.rc5.git0.2.fc32.x86_64
other involved packages: anaconda-gui-32.24.2-3.fc32.x86_64, python3-dasbus-0.2-2.fc32.noarch
product:        Fedora
release:        Fedora release 32 (Thirty Two)
release_type:   pre-release
type:           anaconda
version:        32

Comment 1 aairey 2020-04-27 22:25:45 UTC
Created attachment 1682309 [details]
File: anaconda-tb

Comment 2 aairey 2020-04-27 22:25:47 UTC
Created attachment 1682310 [details]
File: anaconda.log

Comment 3 aairey 2020-04-27 22:25:48 UTC
Created attachment 1682311 [details]
File: dbus.log

Comment 4 aairey 2020-04-27 22:25:50 UTC
Created attachment 1682312 [details]
File: environ

Comment 5 aairey 2020-04-27 22:25:55 UTC
Created attachment 1682313 [details]
File: journalctl

Comment 6 aairey 2020-04-27 22:25:56 UTC
Created attachment 1682314 [details]
File: lsblk_output

Comment 7 aairey 2020-04-27 22:25:59 UTC
Created attachment 1682315 [details]
File: lvm.log

Comment 8 aairey 2020-04-27 22:26:00 UTC
Created attachment 1682316 [details]
File: nmcli_dev_list

Comment 9 aairey 2020-04-27 22:26:01 UTC
Created attachment 1682317 [details]
File: os_info

Comment 10 aairey 2020-04-27 22:26:03 UTC
Created attachment 1682318 [details]
File: program.log

Comment 11 aairey 2020-04-27 22:26:05 UTC
Created attachment 1682319 [details]
File: storage.log

Comment 12 Vendula Poncova 2020-04-29 15:33:36 UTC
From journalctl:

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

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

Comment 13 aairey 2020-04-29 21:01:48 UTC
It was happening for me in blivet-gui as well as the regular partitioning screen.
When going for custom partitioning I was able to set it up without any issues.

Comment 14 Fedora Program Management 2021-04-29 16:21:27 UTC
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 32 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 15 Vojtech Trefny 2021-04-30 05:19:51 UTC

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