Bug 1326897

Summary: 32 bit arm gets bytesize overflow error
Product: [Fedora] Fedora Reporter: Dennis Gilmore <dennis>
Component: libbytesizeAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:50:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dennis Gilmore 2016-04-13 17:07:58 UTC
Description of problem:

15:40:31,566 CRIT anaconda: Traceback (most recent call last):#012#012  File "/sbin/anaconda", line 1214, in <module>#012    anaconda._intf.setup(ksdata)#012#012  File "/usr/lib/python3.5/site-packages/pyanaconda/ui/tui/__init__.py", line 180, in setup#012    should_schedule = obj.setup(self.ENVIRONMENT)#012#012  File "/usr/lib/python3.5/site-packages/pyanaconda/ui/tui/hubs/summary.py", line 66, in setup#012    spoke.execute()#012#012  File "/usr/lib/python3.5/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 391, in execute#012    doKickstartStorage(self.storage, self.data, self.instclass)#012#012  File "/usr/lib/python3.5/site-packages/pyanaconda/kickstart.py", line 2215, in doKickstartStorage#012    ksdata.partition.execute(storage, ksdata, instClass)#012#012  File "/usr/lib/python3.5/site-packages/pyanaconda/kickstart.py", line 1127, in execute#012    do_partitioning(storage)#012#012  File "/usr/lib/python3.5/site-packages/blivet/partitioning.py", line 582, in do_partitioning#012    allocate_partitions(storage, disks, partitions, free)#012#012  File "/usr/lib/python3.5/site-packages/blivet/partitioning.py", line 839, in allocate_partitions#012    temp_parts, freespace)#012#012  File "/usr/lib/python3.5/site-packages/blivet/partitioning.py", line 1544, in get_disk_chunks#012    chunks[i].add_request(PartitionRequest(p))#012#012  File "/usr/lib/python3.5/site-packages/blivet/partitioning.py", line 1020, in __init__#012    size_to_sectors(partition.format.max_size, sector_size),#012#012  File "/usr/lib/python3.5/site-packages/blivet/partitioning.py", line 315, in size_to_sectors#012    return int(size // sector_size)#012#012  File "/usr/lib/python3.5/site-packages/blivet/size.py", line 86, in __floordiv__#012    ret = bytesize.Size.__floordiv__(self, other)#012#012  File "/usr/lib/python3.5/site-packages/bytesize/bytesize.py", line 523, in __floordiv__#012    val, sgn = self._c_size.div(other._c_size)#012#012  File "/usr/lib/python3.5/site-packages/bytesize/bytesize.py", line 160, in div#012    get_error(err)#012#012  File "/usr/lib/python3.5/site-packages/bytesize/bytesize.py", line 74, in get_error#012    raise ex#012#012bytesize.bytesize.OverflowError: The size is too big, cannot be returned as a 64bit number of bytes


The disk is 3GiB koji task is http://koji.fedoraproject.org/koji/taskinfo?taskID=13647158

Comment 1 Vratislav Podzimek 2016-04-21 11:59:59 UTC
There must be something weird in Koji, because it looks like blivet considers the disk to have sector size of 1B. Otherwise the overflow couldn't happen.

https://github.com/rhinstaller/libbytesize/pull/12
https://github.com/rhinstaller/blivet/pull/385

Comment 2 Dennis Gilmore 2016-04-22 16:09:21 UTC
koji calls imagefactory, which calls oz, which calls libvirt, which does the install in a kvm guest. the error is in the virtual machine guest. thanks for looking at it

Comment 3 Jan Kurik 2016-07-26 05:11:21 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 4 Fedora End Of Life 2017-11-16 14:04:41 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 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 '25'.

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 25 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 5 Fedora End Of Life 2017-12-12 10:50:20 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 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
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.