Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 729266

Summary: UnboundLocalError: local variable 'device' referenced before assignment
Product: Red Hat Enterprise Linux 6 Reporter: Alexander Todorov <atodorov>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2CC: rvykydal
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f57ce18dc97003b38f9c3f0ab7ff2434cda3e66dea863e4aff06ecfd2c8bda74
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-10 09:01:08 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:
Bug Depends On:    
Bug Blocks: 681803, 691780    
Attachments:
Description Flags
File: anaconda-tb-Dy4cZR none

Description Alexander Todorov 2011-08-09 10:09:06 UTC
abrt version: 2.0.5
executable:     /mnt/runtime/usr/bin/python
hashmarkername: anaconda
kernel:         2.6.32-178.el6.x86_64
product:        Red Hat Enterprise Linux
reason:         UnboundLocalError: local variable 'device' referenced before assignment
time:           Tue Aug  9 10:08:22 2011
version:        6.2

anaconda-tb-Dy4cZR: Text file, 107128 bytes

description:
:The following was filed automatically by anaconda:
:anaconda 13.21.126 exception report
:Traceback (most recent call first):
:  File "/usr/lib/anaconda/kickstart.py", line 618, in execute
:    if devices.has_key(device):
:  File "/usr/lib/anaconda/kickstart.py", line 1230, in execute
:    obj.execute(self.anaconda)
:  File "/usr/bin/anaconda", line 1103, in <module>
:    ksdata.execute()
:UnboundLocalError: local variable 'device' referenced before assignment

Comment 1 Alexander Todorov 2011-08-09 10:09:08 UTC
Created attachment 517374 [details]
File: anaconda-tb-Dy4cZR

Comment 2 Alexander Todorov 2011-08-09 10:11:25 UTC
This bug happened while trying to test bug #6681803


1) Create a virt guest and specify a ks.cfg file for the install.
2) ks.cfg has:
network --device="bootif" --bootproto="dhcp"

Comment 3 Radek Vykydal 2011-08-09 10:45:17 UTC
Alex, I'd mark this one as dupe of the #681803 which just fails QA with the traceback reported here, so that we don't need to hunt for acks etc. I'll post updates.img with fix shortly.

Comment 4 Radek Vykydal 2011-08-09 10:55:47 UTC
This updates image should fix the issue:
http://rvykydal.fedorapeople.org/updates.729266.img

Comment 5 Alexander Todorov 2011-08-10 09:01:08 UTC
Marking as duplicate. Will comment on the other bug.

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