IOError: [Errno 13] Permission denied: '/var/log/ovirt-guest-agent/ovirt-guest-agent.log'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ovirt-guest-agent (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
/var/log/
Description: Ubuntu 16.04.1 LTS
Release: 16.04
ovirt-guest-agent:
Installed: 1.0.11.2.dfsg-1
Candidate: 1.0.11.2.dfsg-1
Version table:
*** 1.0.11.2.dfsg-1 500
500 http://
500 http://
100 /var/lib/
3) What you expected to happen
ovirt-guest-agent is able to start after install
4) What happened instead
Service fails to start silently
Steps to reproduce:
1) Install Xenial
2) Install ovirt-guest-agent
3) Attempt to start ovirt-guest-agent service
4) Observe 'systemctl status ovirt-guest-agent' and /var/log/syslog output
Aug 2 17:03:36 teuthology-new systemd[1]: Stopped oVirt Guest Agent. Unhandled exception in oVirt guest agent! ovirt-guest- agent/ovirt- guest-agent. py", line 131, in <module> ovirt-guest- agent/ovirt- guest-agent. py", line 52, in __init__ config. fileConfig( bio) python2. 7/logging/ config. py", line 85, in fileConfig handlers( cp, formatters) python2. 7/logging/ config. py", line 163, in _install_handlers python2. 7/logging/ handlers. py", line 117, in __init__ dler.__ init__( self, filename, mode, encoding, delay) python2. 7/logging/ handlers. py", line 64, in __init__ FileHandler. __init_ _(self, filename, mode, encoding, delay) python2. 7/logging/ __init_ _.py", line 913, in __init__ __init_ _(self, self._open()) python2. 7/logging/ __init_ _.py", line 943, in _open baseFilename, self.mode) ovirt-guest- agent/ovirt- guest-agent. log' agent.service: Main process exited, code=exited, status=1/FAILURE agent.service: Unit entered failed state. agent.service: Failed with result 'exit-code'.
Aug 2 17:03:37 teuthology-new systemd[1]: Starting oVirt Guest Agent...
Aug 2 17:03:37 teuthology-new systemd[1]: Started oVirt Guest Agent.
Aug 2 17:03:37 teuthology-new python[28310]: ERROR:root:
Aug 2 17:03:37 teuthology-new python[28310]: Traceback (most recent call last):
Aug 2 17:03:37 teuthology-new python[28310]: File "/usr/share/
Aug 2 17:03:37 teuthology-new python[28310]: agent = OVirtAgentDaemon()
Aug 2 17:03:37 teuthology-new python[28310]: File "/usr/share/
Aug 2 17:03:37 teuthology-new python[28310]: logging.
Aug 2 17:03:37 teuthology-new python[28310]: File "/usr/lib/
Aug 2 17:03:37 teuthology-new python[28310]: handlers = _install_
Aug 2 17:03:37 teuthology-new python[28310]: File "/usr/lib/
Aug 2 17:03:37 teuthology-new python[28310]: h = klass(*args)
Aug 2 17:03:37 teuthology-new python[28310]: File "/usr/lib/
Aug 2 17:03:37 teuthology-new python[28310]: BaseRotatingHan
Aug 2 17:03:37 teuthology-new python[28310]: File "/usr/lib/
Aug 2 17:03:37 teuthology-new python[28310]: logging.
Aug 2 17:03:37 teuthology-new python[28310]: File "/usr/lib/
Aug 2 17:03:37 teuthology-new python[28310]: StreamHandler.
Aug 2 17:03:37 teuthology-new python[28310]: File "/usr/lib/
Aug 2 17:03:37 teuthology-new python[28310]: stream = open(self.
Aug 2 17:03:37 teuthology-new python[28310]: IOError: [Errno 13] Permission denied: '/var/log/
Aug 2 17:03:37 teuthology-new systemd[1]: ovirt-guest-
Aug 2 17:03:37 teuthology-new systemd[1]: ovirt-guest-
Aug 2 17:03:37 teuthology-new systemd[1]: ovirt-guest-