Bug 904977

Summary: ZeroDivisionError: division by zero
Product: [Fedora] Fedora Reporter: Reartes Guillermo <rtguille>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: anaconda-maint-list, awilliam, g.kaviyarasu, jonathan, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:5dd0eaf35594f4bec31e1d000cac01e207127787f0e43501525e80180d00f186
Fixed In Version: anaconda-19.3-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-13 19:26:23 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: environ
none
File: ifcfg.log
none
File: packaging.log
none
File: program.log
none
File: storage.log
none
File: syslog none

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!