This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 971532 - NameError: global name 'err' is not defined
NameError: global name 'err' is not defined
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
19
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Anaconda Maintenance Team
Fedora Extras Quality Assurance
abrt_hash:740c52782b1fec7fcab08e2b537...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-06 14:29 EDT by Matthew Miller
Modified: 2014-02-21 14:17 EST (History)
7 users (show)

See Also:
Fixed In Version: anaconda-20.6-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-02-21 14:17:35 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File: anaconda-tb (393.57 KB, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: anaconda.log (7.88 KB, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: backtrace (770 bytes, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: environ (899 bytes, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: ifcfg.log (453 bytes, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: ks.cfg (4.96 KB, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: lsblk_output (1.47 KB, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: nmcli_dev_list (3.29 KB, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: packaging.log (88.96 KB, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: program.log (54.12 KB, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: storage.log (121.91 KB, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details
File: syslog (71.49 KB, text/plain)
2013-06-06 14:29 EDT, Matthew Miller
no flags Details

  None (edit)
Description Matthew Miller 2013-06-06 14:29:12 EDT
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 14:29:17 EDT
Created attachment 757810 [details]
File: anaconda-tb
Comment 2 Matthew Miller 2013-06-06 14:29:21 EDT
Created attachment 757811 [details]
File: anaconda.log
Comment 3 Matthew Miller 2013-06-06 14:29:24 EDT
Created attachment 757812 [details]
File: backtrace
Comment 4 Matthew Miller 2013-06-06 14:29:27 EDT
Created attachment 757813 [details]
File: environ
Comment 5 Matthew Miller 2013-06-06 14:29:32 EDT
Created attachment 757814 [details]
File: ifcfg.log
Comment 6 Matthew Miller 2013-06-06 14:29:36 EDT
Created attachment 757815 [details]
File: ks.cfg
Comment 7 Matthew Miller 2013-06-06 14:29:40 EDT
Created attachment 757816 [details]
File: lsblk_output
Comment 8 Matthew Miller 2013-06-06 14:29:44 EDT
Created attachment 757817 [details]
File: nmcli_dev_list
Comment 9 Matthew Miller 2013-06-06 14:29:48 EDT
Created attachment 757818 [details]
File: packaging.log
Comment 10 Matthew Miller 2013-06-06 14:29:52 EDT
Created attachment 757819 [details]
File: program.log
Comment 11 Matthew Miller 2013-06-06 14:29:55 EDT
Created attachment 757820 [details]
File: storage.log
Comment 12 Matthew Miller 2013-06-06 14:29:59 EDT
Created attachment 757821 [details]
File: syslog
Comment 13 Mark Langsdorf 2013-07-22 10:52:10 EDT
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 14:07:53 EDT
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.

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