Bug 904977 - ZeroDivisionError: division by zero
Summary: ZeroDivisionError: division by zero
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5dd0eaf35594f4bec31e1d000ca...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-28 10:29 UTC by Reartes Guillermo
Modified: 2013-05-13 19:26 UTC (History)
6 users (show)

Fixed In Version: anaconda-19.3-1
Clone Of:
Environment:
Last Closed: 2013-05-13 19:26:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (333.07 KB, text/plain)
2013-01-28 10:29 UTC, Reartes Guillermo
no flags Details
File: anaconda.log (6.12 KB, text/plain)
2013-01-28 10:29 UTC, Reartes Guillermo
no flags Details
File: environ (780 bytes, text/plain)
2013-01-28 10:29 UTC, Reartes Guillermo
no flags Details
File: ifcfg.log (568 bytes, text/plain)
2013-01-28 10:29 UTC, Reartes Guillermo
no flags Details
File: packaging.log (1.82 KB, text/plain)
2013-01-28 10:29 UTC, Reartes Guillermo
no flags Details
File: program.log (20.18 KB, text/plain)
2013-01-28 10:29 UTC, Reartes Guillermo
no flags Details
File: storage.log (64.07 KB, text/plain)
2013-01-28 10:29 UTC, Reartes Guillermo
no flags Details
File: syslog (95.20 KB, text/plain)
2013-01-28 10:29 UTC, Reartes Guillermo
no flags Details

Description Reartes Guillermo 2013-01-28 10:29:02 UTC
Description of problem:
I selected both a sd card reader (shown as a 0b drive) and the internal ssd, then i atempted automatic partitioning but it failed.

Anaconda should recognize that card readers are not disks, when multiple disk selections are made. For example, in this case the bootloader was going to be installed in the 0b card reader...

The following was filed automatically by anaconda:
anaconda 18.37.11 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 168, in populate
    self._diskStore[itr][PERCENT_COL] = int((diskReclaimableSpace/disk.size)*100)
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 229, in refresh
    self.populate(disks)
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 753, in _show_resize_dialog
    resizeDialog.refresh(disks)
  File "/usr/lib/python2.7/site-packages/pyanaconda/ui/gui/utils.py", line 30, in wrap
    func(*args)
ZeroDivisionError: division by zero

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2018\x20i386 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.6.10-4.fc18.i686
other involved packages: 
package:        anaconda-18.37.11
product:        Fedora
release:        Cannot get release name.
type:           libreport
version:        18

Comment 1 Reartes Guillermo 2013-01-28 10:29:12 UTC
Created attachment 688853 [details]
File: anaconda-tb

Comment 2 Reartes Guillermo 2013-01-28 10:29:15 UTC
Created attachment 688854 [details]
File: anaconda.log

Comment 3 Reartes Guillermo 2013-01-28 10:29:17 UTC
Created attachment 688855 [details]
File: environ

Comment 4 Reartes Guillermo 2013-01-28 10:29:20 UTC
Created attachment 688856 [details]
File: ifcfg.log

Comment 5 Reartes Guillermo 2013-01-28 10:29:22 UTC
Created attachment 688857 [details]
File: packaging.log

Comment 6 Reartes Guillermo 2013-01-28 10:29:26 UTC
Created attachment 688858 [details]
File: program.log

Comment 7 Reartes Guillermo 2013-01-28 10:29:29 UTC
Created attachment 688859 [details]
File: storage.log

Comment 8 Reartes Guillermo 2013-01-28 10:29:33 UTC
Created attachment 688860 [details]
File: syslog

Comment 9 Reartes Guillermo 2013-01-28 10:35:05 UTC
If one selects the sd card reader alone, anaconda will correctly say that there is no space, but when selecting multiple disks, it will fail.

Comment 10 Chris Lumens 2013-01-29 18:56:18 UTC
I think this will be taken care of by my patch for bug 903131, which will just throw out disks of zero size from consideration by anaconda.

Comment 11 Adam Williamson 2013-05-11 03:41:08 UTC
Reartes, can you confirm if this is fixed in current builds? Thanks!

Comment 12 Reartes Guillermo 2013-05-11 15:48:03 UTC
I don't have the netbook at the moment, but i will test it in some days.

I don't remember very well, but i think that comment #10 was right and it was fixed, i will confirm it later.

Comment 13 Reartes Guillermo 2013-05-13 19:04:31 UTC
I tested 2 netboos with an non-populated sdcard reader. (one is the original netbook reported in the description).

Anaconda no longer displays the sdcard reader in INSTALLATION DESTINATION as a selectable disk when it does not have a sd card inserted. (and it shows it up when it does have a sd card plugged).

This bug-report can definitively be closed safely.

Comment 14 Adam Williamson 2013-05-13 19:26:23 UTC
Great, thanks!


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