Bug 971532

Summary: NameError: global name 'err' is not defined
Product: [Fedora] Fedora Reporter: Matthew Miller <mattdm>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dshea, g.kaviyarasu, jonathan, mark.langsdorf, mkolman, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:740c52782b1fec7fcab08e2b537e2909e82975f140e8ca172f1de01a95759b91
Fixed In Version: anaconda-20.6-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-21 19:17:35 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: backtrace
none
File: environ
none
File: ifcfg.log
none
File: ks.cfg
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: packaging.log
none
File: program.log
none
File: storage.log
none
File: syslog none

Description Matthew Miller 2013-06-06 18:29:12 UTC
Description of problem:
I had --erroronfail in the kickstart, and an fstrim operation apparently fails. That's fine, but I get this traceback instead of an actual error as expected.
The following was filed automatically by anaconda:
anaconda 19.30-1 exception report
Traceback (most recent call first):
  File "/tmp/updates/pyanaconda/kickstart.py", line 126, in run
    errorHandler.cb(ScriptError(), self.lineno, err)
  File "/tmp/updates/pyanaconda/kickstart.py", line 1614, in <lambda>
    map (lambda s: s.run(ROOT_PATH), postScripts)
  File "/tmp/updates/pyanaconda/kickstart.py", line 1614, in runPostScripts
    map (lambda s: s.run(ROOT_PATH), postScripts)
  File "/tmp/updates/pyanaconda/install.py", line 97, in doConfiguration
    runPostScripts(ksdata.scripts)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/tmp/updates/pyanaconda/threads.py", line 168, in run
    threading.Thread.run(self, *args, **kwargs)
NameError: global name 'err' is not defined

Version-Release number of selected component:
anaconda-19.30-1

Additional info:
reporter:       libreport-2.1.4
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   method=http://linux.seas.harvard.edu/fedora/linux/releases/test/19-Beta/Fedora/x86_64/os/ ks=http://mattdm.fedorapeople.org/extlinux.ks updates=http://mattdm.fedorapeople.org/updates.img
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.2-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta

Truncated backtrace:
Traceback (most recent call last):
  File "/tmp/updates/pyanaconda/threads.py", line 168, in run
    threading.Thread.run(self, *args, **kwargs)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/tmp/updates/pyanaconda/install.py", line 97, in doConfiguration
    runPostScripts(ksdata.scripts)
  File "/tmp/updates/pyanaconda/kickstart.py", line 1614, in runPostScripts
    map (lambda s: s.run(ROOT_PATH), postScripts)
  File "/tmp/updates/pyanaconda/kickstart.py", line 1614, in <lambda>
    map (lambda s: s.run(ROOT_PATH), postScripts)
  File "/tmp/updates/pyanaconda/kickstart.py", line 126, in run
    errorHandler.cb(ScriptError(), self.lineno, err)
NameError: global name 'err' is not defined

Comment 1 Matthew Miller 2013-06-06 18:29:17 UTC
Created attachment 757810 [details]
File: anaconda-tb

Comment 2 Matthew Miller 2013-06-06 18:29:21 UTC
Created attachment 757811 [details]
File: anaconda.log

Comment 3 Matthew Miller 2013-06-06 18:29:24 UTC
Created attachment 757812 [details]
File: backtrace

Comment 4 Matthew Miller 2013-06-06 18:29:27 UTC
Created attachment 757813 [details]
File: environ

Comment 5 Matthew Miller 2013-06-06 18:29:32 UTC
Created attachment 757814 [details]
File: ifcfg.log

Comment 6 Matthew Miller 2013-06-06 18:29:36 UTC
Created attachment 757815 [details]
File: ks.cfg

Comment 7 Matthew Miller 2013-06-06 18:29:40 UTC
Created attachment 757816 [details]
File: lsblk_output

Comment 8 Matthew Miller 2013-06-06 18:29:44 UTC
Created attachment 757817 [details]
File: nmcli_dev_list

Comment 9 Matthew Miller 2013-06-06 18:29:48 UTC
Created attachment 757818 [details]
File: packaging.log

Comment 10 Matthew Miller 2013-06-06 18:29:52 UTC
Created attachment 757819 [details]
File: program.log

Comment 11 Matthew Miller 2013-06-06 18:29:55 UTC
Created attachment 757820 [details]
File: storage.log

Comment 12 Matthew Miller 2013-06-06 18:29:59 UTC
Created attachment 757821 [details]
File: syslog

Comment 13 Mark Langsdorf 2013-07-22 14:52:10 UTC
installing f19 for ARM on a Calxeda system using a kickstart file. I'm
using the command "bootloader --extlinux" to install the bootloader.

Calxeda systems are headless so I'm not surprised that X failed but it
shouldn't stop the install.

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   ksdevice=bootif lang=  console=ttyAMA0,115200 earlyprintk locale=en_US text priority=critical ip=eth0:dhcp debug kssendmac  ks=http://10.20.0.21/cblr/svc/op/ks/profile/fedora-19-highbank fixrtc vram=48M omapfb.vram=0:24M
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.armv7hl
package:        anaconda-19.30.13-1
product:        Fedora
reason:         NameError: global name 'err' is not defined
release:        Cannot get release name.
version:        19

Comment 15 Chris Lumens 2013-08-14 18:07:53 UTC
Can you please try a tree with the upcoming anaconda-20.6?  I think I fixed this as part of a mass patch wave dealing with problems pylint found.  Thanks.