Bug 206474 - yum and /dev/log
Summary: yum and /dev/log
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-14 16:31 UTC by Florian La Roche
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-14 21:16:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Florian La Roche 2006-09-14 16:31:25 UTC
Description of problem:
Doing a kickstart installation a "yum -y update" fails due to the
/dev/log in the chroot.

Possible solutions:
- Remove /dev/log
- Make sure it is working
- Find some way to detect the non-working in yum with proper error
  handling.



Current traceback:
+ yum -y upgrade
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 85, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 192, in getOptionsConfig
    errorlevel=opts.errorlevel)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 123, in
doConfigSetup
    self.doLoggingSetup(startupconf.debuglevel, startupconf.errorlevel)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 147, in
doLoggingSetup
    logginglevels.doLoggingSetup(debuglevel, errorlevel)
  File "/usr/lib/python2.4/site-packages/yum/logginglevels.py", line 116, in
doLoggingSetup
    syslog = logging.handlers.SysLogHandler(log_dev)
  File "/usr/lib/python2.4/logging/handlers.py", line 601, in __init__
    self._connect_unixsocket(address)
  File "/usr/lib/python2.4/logging/handlers.py", line 617, in _connect_unixsocket
    self.socket.connect(address)
  File "<string>", line 1, in connect
socket.error: (111, 'Connection refused')
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib/python2.4/logging/__init__.py", line 1333, in shutdown
    h.close()
  File "/usr/lib/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/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib/python2.4/logging/__init__.py", line 1333, in shutdown
    h.close()
  File "/usr/lib/python2.4/logging/handlers.py", line 642, in close
    if self.unixsocket:
AttributeError: SysLogHandler instance has no attribute 'unixsocket'



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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jeremy Katz 2006-09-14 21:16:28 UTC
Patch yum so that we don't fail if we can't connect to the syslog server


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