Bug 206474 - yum and /dev/log
yum and /dev/log
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Anaconda Maintenance Team
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-14 12:31 EDT by Florian La Roche
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: 2006-09-14 17:16:28 EDT
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 Florian La Roche 2006-09-14 12:31:25 EDT
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 17:16:28 EDT
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.