Bug 222261 - %post Section of a Kickstart brings a lot of python errors
%post Section of a Kickstart brings a lot of python errors
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Anaconda Maintenance Team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-11 02:55 EST by Axel Straschil
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-01-11 08:28:02 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)

  None (edit)
Description Axel Straschil 2007-01-11 02:55:15 EST
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 03:03:17 EST
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 08:28:02 EST
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.