Bug 497147 - UnboundedLocalError: local variable 'request' referenced before assignment
Summary: UnboundedLocalError: local variable 'request' referenced before assignment
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-22 14:34 UTC by Eric Paris
Modified: 2009-04-23 20:35 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-04-23 20:35:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Eric Paris 2009-04-22 14:34:17 UTC
anaconda 11.5.0.46

Last 4 lines of the traceback are:
File "/usr/lib/python2.6/site-packages/pykickstart/base.py", line 376, in dispatcher
 obj = self.commands[cmd].parse(args[1:])
File "/usr/lib/anaconda/kickstart.py", line 440, in parse
 luksformat = request.format

UnboundedLocalError: local variable 'request' referenced before assignment

kickstart file contains:

part /boot --fstype ext3 --onpart=sda1
part swap --onpart=sda5
part pv.1 --onpart=sda3 --noformat
part pv.2 --onpart=sda2 --noformat
part /export --fstype btrfs --noformat --onpart=sda6

volgroup VGF1164 --pesize=32768 pv.1 --useexisting
logvol /home --vgname=VGF1164 --fstype btrfs --name LVHOME --size=4096 --encrypted --passphrase=******** --useexisting
logvol / --vgname=VGF1164 --fstype btrfs --name LVROOT --size=1 --grow --useexisting

volgroup VGVIRT --pesize=32768 pv.2 --noformat
logvol /var/lib/libvirt/images --vgname=VGVIRT --fstype btrfs --name LVVIRT --size=1 --grow --noformat

Comment 1 Chris Lumens 2009-04-22 17:18:09 UTC
Can you please test with updates=http://clumens.fedorapeople.org/497147.img?  It looks like the combination of --encrypted --useexisting is what's causing problems here.  Thanks.

Comment 2 Eric Paris 2009-04-23 17:20:35 UTC
anaconda 11.5.0.47 + updates=http://clumens.fedorapeople.org/497147.img appears to be at least formatting devices so I guess this is good!

Comment 3 Chris Lumens 2009-04-23 20:35:21 UTC
This should be fixed in the next build of anaconda, then.  Thanks for testing the fix.


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