Bug 1325705

Summary: decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
Product: [Fedora] Fedora Reporter: Damian <damianzrb>
Component: libbytesizeAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, g.kaviyarasu, jonathan, jorti, jsedlak, vanmeeuwen+fedora, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d87d17f8fabc3a4647535f1dd800f6bba002cdff9b4395c651f5b706799b6a63;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-04 07:28:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dnf.log
none
File: environ
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: ifcfg.log
none
File: packaging.log none

Description Damian 2016-04-10 19:56:58 UTC
Description of problem:
I just clicked "OK" in disk configuration menu

Version-Release number of selected component:
anaconda-25.7-1

The following was filed automatically by anaconda:
anaconda 25.7-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.5/site-packages/bytesize/bytesize.py", line 512, in __truediv__
    return Decimal(self._c_size.true_div(other._c_size))
  File "/usr/lib/python3.5/site-packages/blivet/size.py", line 79, in __truediv__
    ret = bytesize.Size.__truediv__(self, other)
  File "/usr/lib/python3.5/site-packages/blivet/util.py", line 319, in total_memory
    mem = (mem / bs + 1) * bs
  File "/usr/lib/python3.5/site-packages/blivet/autopart.py", line 58, in swap_suggestion
    mem = util.total_memory()
  File "/usr/lib64/python3.5/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 825, in _check_space_and_get_dialog
    auto_swap = autopart.swap_suggestion()
  File "/usr/lib64/python3.5/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 967, in on_back_clicked
    dialog = self._check_space_and_get_dialog(disks)
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]

Additional info:
addons:         com_redhat_docker, com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-E-dvd-x86_64-rawh rd.live.check quiet
dnf.rpm.log:    Apr 10 21:49:35 INFO --- logging initialized ---
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.6.0-0.rc2.git4.1.fc25.x86_64
product:        Fedora
release:        Cannot get release name.
reproducible:   Not sure how to reproduce the problem
type:           anaconda
version:        rawhide

Comment 1 Damian 2016-04-10 19:57:07 UTC
Created attachment 1145772 [details]
File: anaconda-tb

Comment 2 Damian 2016-04-10 19:57:09 UTC
Created attachment 1145773 [details]
File: anaconda.log

Comment 3 Damian 2016-04-10 19:57:11 UTC
Created attachment 1145774 [details]
File: dnf.log

Comment 4 Damian 2016-04-10 19:57:13 UTC
Created attachment 1145775 [details]
File: environ

Comment 5 Damian 2016-04-10 19:57:14 UTC
Created attachment 1145776 [details]
File: lsblk_output

Comment 6 Damian 2016-04-10 19:57:16 UTC
Created attachment 1145777 [details]
File: nmcli_dev_list

Comment 7 Damian 2016-04-10 19:57:18 UTC
Created attachment 1145778 [details]
File: os_info

Comment 8 Damian 2016-04-10 19:57:20 UTC
Created attachment 1145779 [details]
File: program.log

Comment 9 Damian 2016-04-10 19:57:22 UTC
Created attachment 1145780 [details]
File: storage.log

Comment 10 Damian 2016-04-10 19:57:25 UTC
Created attachment 1145781 [details]
File: syslog

Comment 11 Damian 2016-04-10 19:57:26 UTC
Created attachment 1145782 [details]
File: ifcfg.log

Comment 12 Damian 2016-04-10 19:57:28 UTC
Created attachment 1145783 [details]
File: packaging.log

Comment 13 Vratislav Podzimek 2016-04-21 14:27:29 UTC
https://github.com/rhinstaller/libbytesize/pull/13

Comment 14 Vojtech Trefny 2016-05-02 10:26:50 UTC
*** Bug 1332010 has been marked as a duplicate of this bug. ***