Bug 222261 - %post Section of a Kickstart brings a lot of python errors
Summary: %post Section of a Kickstart brings a lot of python errors
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-11 07:55 UTC by Axel Straschil
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-11 13:28:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Axel Straschil 2007-01-11 07:55:15 UTC
Description of problem:

I do a kickstart based installation, my kickstartfile ist like
...
%post  --log=/root/post-log
cat >/root/POST-SH <<"END-OF-POST-SH"
#!/bin/sh -vx
...stuff i do ...
END-OF-POST-SH
sh /root/POST-SH 2>&1 | tee /root/POST-SH-log /dev/tty5

When i look at /root/POST-SH-log, there are a lot entries like

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib64/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib64/python2.4/logging/__init__.py", line 1333, in shutdown
    h.close()
  File "/usr/lib64/python2.4/logging/handlers.py", line 642, in close
    if self.unixsocket:
AttributeError: SysLogHandler instance has no attribute 'unixsocket'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib64/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib64/python2.4/logging/__init__.py", line 1333, in shutdown
    h.close()
  File "/usr/lib64/python2.4/logging/handlers.py", line 642, in close
    if self.unixsocket:
AttributeError: SysLogHandler instance has no attribute 'unixsocket'

Think it is a anaconda / python error?

Version-Release number of selected component (if applicable):
FC6

How reproducible:
With a kickstart script like above

Steps to Reproduce:
1. make a kickstart file like above
2. do the installation
3. look at the logfile
  
Actual results:
Python errors

Expected results:
no python errros

Comment 1 Axel Straschil 2007-01-11 08:03:17 UTC
Maybe its not a problem of anaconda, think it is a yum problem:

  Installing: unison                       ######################### [1/2]
^M  Installing: syslog-ng                    ######################### [2/2]

Installed: syslog-ng.x86_64 0:1.6.11-3.fc6 unison.x86_64 0:2.13.16-3.fc6
Complete!
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib64/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib64/python2.4/logging/__init__.py", line 1333, in shutdown
    h.close()
  File "/usr/lib64/python2.4/logging/handlers.py", line 642, in close
    if self.unixsocket:
AttributeError: SysLogHandler instance has no attribute 'unixsocket'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib64/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib64/python2.4/logging/__init__.py", line 1333, in shutdown
    h.close()
  File "/usr/lib64/python2.4/logging/handlers.py", line 642, in close
    if self.unixsocket:
AttributeError: SysLogHandler instance has no attribute 'unixsocket'
Loading "installonlyn" plugin


Comment 2 Jeremy Katz 2007-01-11 13:28:02 UTC
Actually, it's a (relatively bizarre) python bug.  Patched upstream and in the
python package for rawhide


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