Bug 222261

Summary: %post Section of a Kickstart brings a lot of python errors
Product: [Fedora] Fedora Reporter: Axel Straschil <axel>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-11 13:28:02 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:

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