Bug 1040263 - TypeError: unsupported operand type(s) for +=: 'NoneType' and 'float'
Summary: TypeError: unsupported operand type(s) for +=: 'NoneType' and 'float'
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:abea49dca7adaaff26eab227e3b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-11 04:19 UTC by Adam Williamson
Modified: 2013-12-12 01:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-12 01:26:23 UTC
Type: ---


Attachments (Terms of Use)
File: anaconda-tb (473.71 KB, text/plain)
2013-12-11 04:19 UTC, Adam Williamson
no flags Details
File: anaconda.log (19.86 KB, text/plain)
2013-12-11 04:19 UTC, Adam Williamson
no flags Details
File: environ (508 bytes, text/plain)
2013-12-11 04:19 UTC, Adam Williamson
no flags Details
File: journalctl (162.11 KB, text/plain)
2013-12-11 04:19 UTC, Adam Williamson
no flags Details
File: lsblk_output (2.33 KB, text/plain)
2013-12-11 04:19 UTC, Adam Williamson
no flags Details
File: nmcli_dev_list (4.33 KB, text/plain)
2013-12-11 04:19 UTC, Adam Williamson
no flags Details
File: os_info (375 bytes, text/plain)
2013-12-11 04:19 UTC, Adam Williamson
no flags Details
File: program.log (40.20 KB, text/plain)
2013-12-11 04:19 UTC, Adam Williamson
no flags Details
File: storage.log (197.49 KB, text/plain)
2013-12-11 04:19 UTC, Adam Williamson
no flags Details
File: ifcfg.log (1.77 KB, text/plain)
2013-12-11 04:19 UTC, Adam Williamson
no flags Details

Description Adam Williamson 2013-12-11 04:19:29 UTC
Description of problem:
Using https://www.happyassassin.net/extras/updates-1038847.img, followed the steps to reproduce https://bugzilla.redhat.com/show_bug.cgi?id=1038847 , then after verifying it no longer crashes at that point:

Changed the size of the / partition I created to something reasonable (I did 10GB, anaconda rounded to 9.99)
Added a swap partition without entering a size

The installer crashed at this point.

Version-Release number of selected component:
anaconda-20.25.14-1.fc20.x86_64

The following was filed automatically by anaconda:
anaconda 20.25.14-1 exception report
Traceback (most recent call first):
  File "/tmp/updates/blivet/__init__.py", line 1927, in factoryDevice
    size += devicelibs.crypto.LUKS_METADATA_SIZE
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2046, in on_add_clicked
    **kwargs)
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'float'

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=20131210-pretc6-desktop-x86_64 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 inst.updates=https://www.happyassassin.net/extras/updates-1038847.img BOOT_IMAGE=vmlinuz0 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.11.10-301.fc20.x86_64
product:        Fedora
release:        Fedora release 20 (Heisenbug)
type:           anaconda
version:        20

Comment 1 Adam Williamson 2013-12-11 04:19:32 UTC
Created attachment 835098 [details]
File: anaconda-tb

Comment 2 Adam Williamson 2013-12-11 04:19:34 UTC
Created attachment 835099 [details]
File: anaconda.log

Comment 3 Adam Williamson 2013-12-11 04:19:36 UTC
Created attachment 835100 [details]
File: environ

Comment 4 Adam Williamson 2013-12-11 04:19:37 UTC
Created attachment 835101 [details]
File: journalctl

Comment 5 Adam Williamson 2013-12-11 04:19:39 UTC
Created attachment 835102 [details]
File: lsblk_output

Comment 6 Adam Williamson 2013-12-11 04:19:40 UTC
Created attachment 835103 [details]
File: nmcli_dev_list

Comment 7 Adam Williamson 2013-12-11 04:19:42 UTC
Created attachment 835104 [details]
File: os_info

Comment 8 Adam Williamson 2013-12-11 04:19:44 UTC
Created attachment 835105 [details]
File: program.log

Comment 9 Adam Williamson 2013-12-11 04:19:47 UTC
Created attachment 835106 [details]
File: storage.log

Comment 10 Adam Williamson 2013-12-11 04:19:48 UTC
Created attachment 835107 [details]
File: ifcfg.log

Comment 11 Adam Williamson 2013-12-11 04:26:48 UTC
Can also reproduce simply by:

1. Check encryption checkbox, enter custom partitioning
2. Create partition, do not enter size

Crash. Not reproducible without the updates.img, looks like the patch breaks something.

Comment 12 Brian Lane 2013-12-12 01:26:23 UTC
You were using an earlier version of the patch. The one that was built guards against that, an implements the fix in a different way.


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