Bug 1040263

Summary: TypeError: unsupported operand type(s) for +=: 'NoneType' and 'float'
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: anaconda-maint-list, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:abea49dca7adaaff26eab227e3ba0a51aa882bd4745cf823457e9a438e934db5
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-12 01: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:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: journalctl
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: ifcfg.log none

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.