Log directory is not owned by ovirtagent user
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/
from syslog:
Dec 29 09:18:53 gitlab systemd[1]: Started oVirt Guest Agent.
Dec 29 09:18:54 gitlab python[15825]: ERROR:root:
Dec 29 09:18:54 gitlab python[15825]: Traceback (most recent call last):
Dec 29 09:18:54 gitlab python[15825]: File "/usr/share/
Dec 29 09:18:54 gitlab python[15825]: agent = OVirtAgentDaemon()
Dec 29 09:18:54 gitlab python[15825]: File "/usr/share/
Dec 29 09:18:54 gitlab python[15825]: logging.
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/
Dec 29 09:18:54 gitlab python[15825]: handlers = _install_
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/
Dec 29 09:18:54 gitlab python[15825]: h = klass(*args)
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/
Dec 29 09:18:54 gitlab python[15825]: BaseRotatingHan
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/
Dec 29 09:18:54 gitlab python[15825]: logging.
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/
Dec 29 09:18:54 gitlab python[15825]: StreamHandler.
Dec 29 09:18:54 gitlab python[15825]: File "/usr/lib/
Dec 29 09:18:54 gitlab python[15825]: stream = open(self.
Dec 29 09:18:54 gitlab python[15825]: IOError: [Errno 13] Permission denied: '/var/log/