Bug 865897 - UnboundLocalError: local variable 'dev' referenced before assignment
Summary: UnboundLocalError: local variable 'dev' referenced before assignment
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4ac484ea0b49230500ff51ec45c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-12 18:32 UTC by Reartes Guillermo
Modified: 2012-11-23 04:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-23 04:52:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (279.20 KB, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: product (6 bytes, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: type (9 bytes, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: ifcfg.log (641 bytes, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: storage.log (121.13 KB, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: version (11 bytes, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: environ (764 bytes, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: anaconda.log (3.97 KB, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: syslog (72.27 KB, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: hashmarkername (8 bytes, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: packaging.log (2.86 KB, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: cmdline_file (96 bytes, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: release (24 bytes, text/plain)
2012-10-12 18:32 UTC, Reartes Guillermo
no flags Details
File: program.log (42.04 KB, text/plain)
2012-10-12 18:33 UTC, Reartes Guillermo
no flags Details
update img result seems ok (66.21 KB, image/png)
2012-10-12 19:39 UTC, Reartes Guillermo
no flags Details

Description Reartes Guillermo 2012-10-12 18:32:11 UTC
Description of problem:
i tried to verify an ISO IMAGE (there was no image)

Version-Release number of selected component:
anaconda-18.14

Additional info:
libreport version: 2.0.14
cmdline:        /usr/bin/python  /sbin/anaconda
kernel:         3.6.1-1.fc18.x86_64

description:
:The following was filed automatically by anaconda:
:anaconda 18.14 exception report
:Traceback (most recent call first):
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/source.py", line 821, in on_verify_iso_clicked
:    dev = self.storage.devicetree.getDeviceByName(dev)
:UnboundLocalError: local variable 'dev' referenced before assignment

Comment 1 Reartes Guillermo 2012-10-12 18:32:21 UTC
Created attachment 626154 [details]
File: anaconda-tb

Comment 2 Reartes Guillermo 2012-10-12 18:32:24 UTC
Created attachment 626155 [details]
File: product

Comment 3 Reartes Guillermo 2012-10-12 18:32:26 UTC
Created attachment 626156 [details]
File: type

Comment 4 Reartes Guillermo 2012-10-12 18:32:28 UTC
Created attachment 626157 [details]
File: ifcfg.log

Comment 5 Reartes Guillermo 2012-10-12 18:32:34 UTC
Created attachment 626158 [details]
File: storage.log

Comment 6 Reartes Guillermo 2012-10-12 18:32:39 UTC
Created attachment 626159 [details]
File: version

Comment 7 Reartes Guillermo 2012-10-12 18:32:42 UTC
Created attachment 626160 [details]
File: environ

Comment 8 Reartes Guillermo 2012-10-12 18:32:44 UTC
Created attachment 626161 [details]
File: anaconda.log

Comment 9 Reartes Guillermo 2012-10-12 18:32:48 UTC
Created attachment 626162 [details]
File: syslog

Comment 10 Reartes Guillermo 2012-10-12 18:32:50 UTC
Created attachment 626163 [details]
File: hashmarkername

Comment 11 Reartes Guillermo 2012-10-12 18:32:54 UTC
Created attachment 626164 [details]
File: packaging.log

Comment 12 Reartes Guillermo 2012-10-12 18:32:56 UTC
Created attachment 626165 [details]
File: cmdline_file

Comment 13 Reartes Guillermo 2012-10-12 18:32:59 UTC
Created attachment 626166 [details]
File: release

Comment 14 Reartes Guillermo 2012-10-12 18:33:02 UTC
Created attachment 626167 [details]
File: program.log

Comment 15 Chris Lumens 2012-10-12 18:57:08 UTC
Does updates=http://clumens.fedorapeople.org/865897.img fix this?

Comment 16 Reartes Guillermo 2012-10-12 19:25:43 UTC
@Chris Lumens

how are these .img files used?

Comment 17 Chris Lumens 2012-10-12 19:28:39 UTC
Add updates=<url> to the kernel command line arguments at boot time.

Comment 18 Reartes Guillermo 2012-10-12 19:39:53 UTC
Created attachment 626202 [details]
update img result seems ok

It seems the updated image did the trick. It no longer crashes.

I propose that some form of red or yellow coloring or hue should be applied to the shown dialog to add emphasis to the shown message "this media is not good to install from" (which is a correct message).

Comment 19 Reartes Guillermo 2012-10-12 19:44:57 UTC
There is a small side-effect, unrelated, when booting selecting the updated image on comment #15, executing in VT2 the command 'anaconda --version' no longer works.
Anaconda emits a trace-back.

Comment 20 Fedora Update System 2012-10-17 03:08:06 UTC
anaconda-18.17-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.17-1.fc18

Comment 21 Fedora Update System 2012-10-17 17:29:20 UTC
Package anaconda-18.17-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-18.17-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16295/anaconda-18.17-1.fc18
then log in and leave karma (feedback).

Comment 22 Fedora Update System 2012-10-18 02:37:05 UTC
anaconda-18.18-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.18-1.fc18

Comment 23 Fedora Update System 2012-10-18 15:29:06 UTC
Package anaconda-18.18-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-18.18-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16402/anaconda-18.18-1.fc18
then log in and leave karma (feedback).

Comment 24 Fedora Update System 2012-10-20 01:32:49 UTC
anaconda-18.19-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.19-1.fc18

Comment 25 Adam Williamson 2012-11-23 04:52:55 UTC
This bug looks to have been fixed for many anaconda builds now but missed being closed. If you find you are still experiencing it with Fedora 18 Beta (RC1) or later, please re-open the bug.

(ref comment #18)


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