"OSError: [Errno 2] No such file or directory: '/var/log/vdsm/vdsm.log'" error reported in vdsm logs on RHEV host.

Solution Unverified - Updated -

Issue

  • We want to know why these messsages appear in /var/log/messages;
syslog (Log Monitoring) Last Log Message MAJOR occurred("LCNVDC1LHC48 vdsm TaskManager.Task ERROR Task=`9067872c-f8ad-4596-a417-fd4b8ce4d3c6`::Unexpected error#012Traceback (most recent call last):#012  File "/usr/share/vdsm/storage/task.py", line 857, in _run#012    return fn(*args, **kargs)#012  File "/usr/share/vdsm/logUtils.py", line 47, in wrapper#012    {"name": funcName(f), "result": resPrinter(res)})#012  File "/usr/lib64/python2.6/logging/__init__.py", line 1119, in log#012    self._log(level, msg, args, **kwargs)#012  File "/usr/lib64/python2.6/logging/__init__.py", line 1173, in _log#012    self.handle(record)#012  File "/usr/lib64/python2.6/logging/__init__.py", line 1183, in handle#012    self.callHandlers(record)#012  File "/usr/lib64/python2.6/logging/__init__.py", line 1220, in callHandlers#012    hdlr.handle(record)#012  File "/usr/lib64/python2.6/logging/__init__.py", line 679, in handle#012    self.emit(record)#012  File "/u")
  • The following error was reported in the vdsm logs;
Thread-3242::ERROR::2014-04-29 00:01:02,082::task::850::TaskManager.Task::(_setError) Task=`9067872c-f8ad-4596-a417-fd4b8ce4d3c6`::Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 857, in _run
    return fn(*args, **kargs)
  File "/usr/share/vdsm/logUtils.py", line 47, in wrapper
    {"name": funcName(f), "result": resPrinter(res)})
  File "/usr/lib64/python2.6/logging/__init__.py", line 1119, in log
    self._log(level, msg, args, **kwargs)
  File "/usr/lib64/python2.6/logging/__init__.py", line 1173, in _log
    self.handle(record)
  File "/usr/lib64/python2.6/logging/__init__.py", line 1183, in handle
    self.callHandlers(record)
  File "/usr/lib64/python2.6/logging/__init__.py", line 1220, in callHandlers
    hdlr.handle(record)
  File "/usr/lib64/python2.6/logging/__init__.py", line 679, in handle
    self.emit(record)
  File "/usr/lib64/python2.6/logging/handlers.py", line 396, in emit
    stat = os.stat(self.baseFilename)
OSError: [Errno 2] No such file or directory: '/var/log/vdsm/vdsm.log'

Environment

  • Red Hat Enterprise Virtualization 3.x
  • Red Hat Enterprise Virtualization (RHEL and RHEV-H) 6.4, 6.5 hosts
    • vdsm-4.13.2-0.x
    • python-2.6.6-36

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content