Log directory is not owned by ovirtagent user

Bug #1740530 reported by Evan Felix
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ovirt-guest-agent
New
Undecided
Unassigned

Bug Description

I installed ovirt-guest-agent on a ubuntu 16.04 guest image, but the log directory is owned by root, and as such the agent does not start up properly.

After doing a 'chown ovirtagent /var/log/ovirt-guest-agent/' the agent starts up fine.

from syslog:
Dec 29 09:18:53 gitlab systemd[1]: Started oVirt Guest Agent.
Dec 29 09:18:54 gitlab python[15825]: ERROR:root:Unhandled exception in oVirt guest agent!
Dec 29 09:18:54 gitlab python[15825]: Traceback (most recent call last):
Dec 29 09:18:54 gitlab python[15825]: File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 131, in <module>
Dec 29 09:18:54 gitlab python[15825]: agent = OVirtAgentDaemon()
Dec 29 09:18:54 gitlab python[15825]: File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 52, in __init__
Dec 29 09:18:54 gitlab python[15825]: logging.config.fileConfig(bio)
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig
Dec 29 09:18:54 gitlab python[15825]: handlers = _install_handlers(cp, formatters)
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/python2.7/logging/config.py", line 163, in _install_handlers
Dec 29 09:18:54 gitlab python[15825]: h = klass(*args)
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/python2.7/logging/handlers.py", line 117, in __init__
Dec 29 09:18:54 gitlab python[15825]: BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/python2.7/logging/handlers.py", line 64, in __init__
Dec 29 09:18:54 gitlab python[15825]: logging.FileHandler.__init__(self, filename, mode, encoding, delay)
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/python2.7/logging/__init__.py", line 913, in __init__
Dec 29 09:18:54 gitlab python[15825]: StreamHandler.__init__(self, self._open())
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/python2.7/logging/__init__.py", line 943, in _open
Dec 29 09:18:54 gitlab python[15825]: stream = open(self.baseFilename, self.mode)
Dec 29 09:18:54 gitlab python[15825]: IOError: [Errno 13] Permission denied: '/var/log/ovirt-guest-agent/ovirt-guest-agent.log'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.