Bug 997711 - NameError: global name 'logicals' is not defined
Summary: NameError: global name 'logicals' is not defined
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1000636 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-16 04:11 UTC by Steve Tyler
Modified: 2015-05-29 16:12 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-29 16:12:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
anaconda-tb-HWKiaS (311.36 KB, text/plain)
2013-08-16 04:11 UTC, Steve Tyler
no flags Details
ks-rawhide-1.cfg (290 bytes, text/plain)
2013-08-16 04:14 UTC, Steve Tyler
no flags Details

Description Steve Tyler 2013-08-16 04:11:42 UTC
Created attachment 787143 [details]
anaconda-tb-HWKiaS

Description of problem:
Start installer from rawhide boot.iso.
Specify the logged kickstart file on the kernel-command-line.
The Installation Summary is displayed, but the installer appears to stall.
The pointer moves, but no tooltips are displayed and clicking has no effect.
Switching to the installer console is possible, and that shows that an anaconda-tb-* file has been created.
No bug-reporting dialog is displayed.

Tested with:
$ qemu-kvm -m 4096 -hda f18-test-2.img -cdrom ~/xfr/fedora/rawhide/boot.iso -vga std -boot menu=on

Version-Release number of selected component (if applicable):
anaconda 20.6-1
rawhide boot.iso

$ isoinfo -lR -i boot.iso | egrep 'vmlinuz|squashfs'
-rwxr-xr-x   2    0    0         5653880 Aug 14 2013 [  31326 00]  vmlinuz 
-rw-r--r--   1    0    0       222838784 Aug 15 2013 [  49515 00]  squashfs.img 
-rwxr-xr-x   2    0    0         5653880 Aug 14 2013 [  31326 00]  vmlinuz 

How reproducible:
Repeatable with the disc image f18-test-2.img, which is a bootable F18 minimal install.

Did not occur with an empty disc image:
$ qemu-img create f20-test-1.img 32G
Formatting 'f20-test-1.img', fmt=raw size=34359738368 

Steps to Reproduce:
1. See above.

Actual results:
An exception occurs:
NameError: global name 'logicals' is not defined

Expected results:
No exception occurs.

Additional info:

Comment 1 Steve Tyler 2013-08-16 04:13:21 UTC
anaconda 20.6-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 439, in getDependentDevices
    for logical in logicals:
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1015, in deviceDeps
    return self.devicetree.getDependentDevices(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 743, in recursiveRemove
    devices = self.deviceDeps(device)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 788, in clearPartitions
    self.recursiveRemove(part)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 491, in execute
    storage.clearPartitions()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1673, in doKickstartStorage
    ksdata.clearpart.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 420, in _doExecute
    doKickstartStorage(self.storage, self.data, self.instclass)
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 168, in run
    threading.Thread.run(self, *args, **kwargs)
NameError: global name 'logicals' is not defined

Local variables in innermost frame:
d: existing 2048MB dm live-rw (13) with existing ext4 filesystem
dep: existing 11787MB partition sda2 (2) with existing lvmpv
self: <blivet.devicetree.DeviceTree object at 0x7ff2bd89e610>
device: existing 12288MB disk sda (0) with existing msdos disklabel
dependents: []
incomplete: []

Comment 2 Steve Tyler 2013-08-16 04:14:55 UTC
Created attachment 787144 [details]
ks-rawhide-1.cfg

Comment 3 Steve Tyler 2013-08-17 09:07:41 UTC
$ pylint -E blivet-0.19-1/blivet/devicetree.py
No config file found, using default configuration
************* Module blivet.devicetree
E:439,31:DeviceTree.getDependentDevices: Undefined variable 'logicals'
dm.c: 1693: not running as root returning empty list

Comment 4 David Lehman 2013-08-22 18:33:19 UTC
This will be fixed in python-blivet-0.20-1.

Comment 5 Brian Lane 2013-08-23 22:43:39 UTC
*** Bug 1000636 has been marked as a duplicate of this bug. ***

Comment 6 Fedora End Of Life 2013-09-16 17:06:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.

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

Comment 7 Fedora End Of Life 2015-05-29 09:19:32 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.


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