Bug 1239158

Summary: UnboundLocalError: local variable 'e' referenced before assignment
Product: [Fedora] Fedora Reporter: bbradley1946 <bbradley1946>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, bcl, dlehman, g.kaviyarasu, jonathan, kbradshaw2032, vanmeeuwen+fedora, vpodzime, vtrefny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3a4b9b7114b54d7906d015329fae68de7264c273b093b7e2f46b3f27f96583dd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-03 19:22:00 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: 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 bbradley1946@gmail.com 2015-07-03 19:33:38 UTC
Description of problem:
- Boot into a Koji rawhide live CD image  from 30Jun2015 which was installed to a flash drive. The live CD boots up OK.
- click on the option to install to hard drive
- Anaconda promptly crashes. The popup error window says "An unknown error has occurred". The 'More info..." output seems to indicate a problem in a python script.

Version-Release number of selected component:
anaconda-core-23.12-1.fc23.x86_64

The following was filed automatically by anaconda:
anaconda 23.12-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.4/site-packages/blivet/tasks/fsminsize.py", line 57, in _getResizeInfo
    error_msg = "failed to gather info from resize program: %s" % e
  File "/usr/lib/python3.4/site-packages/blivet/tasks/fsminsize.py", line 168, in doTask
    resize_info = self._getResizeInfo()
  File "/usr/lib/python3.4/site-packages/blivet/formats/fs.py", line 288, in updateSizeInfo
    result = self._minsize.doTask()
  File "/usr/lib/python3.4/site-packages/blivet/formats/fs.py", line 134, in __init__
    self.updateSizeInfo()
  File "/usr/lib/python3.4/site-packages/blivet/formats/__init__.py", line 81, in getFormat
    fmt = fmt_class(*args, **kwargs)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 1427, in handleUdevDeviceFormat
    device.format = formats.getFormat(format_designator, **kwargs)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 757, in addUdevDevice
    self.handleUdevDeviceFormat(info, device)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 1656, in _populate
    self.addUdevDevice(dev)
  File "/usr/lib/python3.4/site-packages/blivet/populator.py", line 1593, in populate
    self._populate()
  File "/usr/lib/python3.4/site-packages/blivet/devicetree.py", line 551, in populate
    self._populator.populate(cleanupOnly=cleanupOnly)
  File "/usr/lib/python3.4/site-packages/blivet/blivet.py", line 279, in reset
    self.devicetree.populate(cleanupOnly=cleanupOnly)
  File "/usr/lib/python3.4/site-packages/blivet/osinstall.py", line 1119, in storageInitialize
    storage.reset()
  File "/usr/lib64/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/threads.py", line 244, in run
    threading.Thread.run(self, *args, **kwargs)
UnboundLocalError: local variable 'e' referenced before assignment

Additional info:
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/syslinux/vmlinuz0 root=live:LABEL=LIVE ro rd.live.image quiet rhgb
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.2.0-0.rc0.git2.1.fc23.x86_64
other involved packages: python3-blivet-1.7-1.fc23.noarch, python3-libs-3.4.3-5.fc23.x86_64
product:        Fedora
release:        Fedora release 23 (Rawhide)
type:           anaconda
version:        Rawhide

Comment 1 bbradley1946@gmail.com 2015-07-03 19:33:42 UTC
Created attachment 1045904 [details]
File: anaconda-tb

Comment 2 bbradley1946@gmail.com 2015-07-03 19:33:43 UTC
Created attachment 1045905 [details]
File: anaconda.log

Comment 3 bbradley1946@gmail.com 2015-07-03 19:33:44 UTC
Created attachment 1045906 [details]
File: environ

Comment 4 bbradley1946@gmail.com 2015-07-03 19:33:46 UTC
Created attachment 1045907 [details]
File: journalctl

Comment 5 bbradley1946@gmail.com 2015-07-03 19:33:47 UTC
Created attachment 1045908 [details]
File: lsblk_output

Comment 6 bbradley1946@gmail.com 2015-07-03 19:33:48 UTC
Created attachment 1045909 [details]
File: nmcli_dev_list

Comment 7 bbradley1946@gmail.com 2015-07-03 19:33:48 UTC
Created attachment 1045910 [details]
File: os_info

Comment 8 bbradley1946@gmail.com 2015-07-03 19:33:50 UTC
Created attachment 1045911 [details]
File: program.log

Comment 9 bbradley1946@gmail.com 2015-07-03 19:33:52 UTC
Created attachment 1045912 [details]
File: storage.log

Comment 10 bbradley1946@gmail.com 2015-07-03 19:33:53 UTC
Created attachment 1045913 [details]
File: ifcfg.log

Comment 11 Samantha N. Bueno 2015-07-07 13:07:15 UTC
*** Bug 1240464 has been marked as a duplicate of this bug. ***

Comment 12 Jan Kurik 2015-07-15 13:50:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 13 Vojtech Trefny 2015-08-03 19:22:00 UTC

*** This bug has been marked as a duplicate of bug 1249304 ***