NVM, Fixed it.
* Changed to a more resent repo
(
https://software.opensuse.org/download.html?project=Virtualization&pa...)
* Uninstalled and removed all files regarding ovirt agent
* Rebooted the machine
* Not sure if this was nessesary, but uncommented “device_prefix = /dev/virtio-ports/”
in /etc/ovirt-guest-agent.conf
* Run: udevadm trigger --subsystem-match="virtio-ports"
* (re)start service
* Works! 😊
//Magnus
From: Magnus Isaksson
Sent: den 8 maj 2018 10:59
To: users(a)ovirt.org
Subject: oVirt guest agent on OpenSUSE 42.3 Leap
Hi all
I have some trouble with guest agent for OpenSUSE 42.3 Leap, short version, it don’t
start.
I have followed instructions that I could find about this error, but all I could find was
for Debian 8 (
http://lists.ovirt.org/pipermail/users/2018-January/086102.html)
Still same problem.
Anyone who can help me get this right?
# cat /etc/os-release
NAME="openSUSE Leap"
VERSION="42.3"
--------
# systemctl status ovirt-guest-agent
● ovirt-guest-agent.service - oVirt Guest Agent
Loaded: loaded (/usr/lib/systemd/system/ovirt-guest-agent.service; enabled; vendor
preset: disabled)
Active: failed (Result: exit-code) since Mon 2018-05-07 17:25:40 CEST; 17h ago
Process: 1167 ExecStart=/usr/bin/python
/usr/share/ovirt-guest-agent/ovirt-guest-agent.py (code=exited, status=1/FAILURE)
Process: 1156 ExecStartPre=/bin/chown ovirtagent:ovirtagent /run/ovirt-guest-agent.pid
(code=exited, status=0/SUCCESS)
Process: 1141 ExecStartPre=/bin/touch /run/ovirt-guest-agent.pid (code=exited,
status=0/SUCCESS)
Process: 1132 ExecStartPre=/sbin/modprobe virtio_console (code=exited,
status=0/SUCCESS)
Main PID: 1167 (code=exited, status=1/FAILURE)
May 07 17:25:39 seweb03 systemd[1]: Starting oVirt Guest Agent...
May 07 17:25:39 seweb03 systemd[1]: Started oVirt Guest Agent.
May 07 17:25:40 seweb03 systemd[1]: ovirt-guest-agent.service: Main process exited,
code=exited, status=1/FAILURE
May 07 17:25:40 seweb03 systemd[1]: ovirt-guest-agent.service: Unit entered failed
state.
May 07 17:25:40 seweb03 systemd[1]: ovirt-guest-agent.service: Failed with result
'exit-code'.
------
From /var/log/ovirt-guest-agent/ovirt-guest-agent.log
MainThread::INFO::2018-05-08 10:47:48,782::ovirt-guest-agent::59::root::Starting oVirt
guest agent
MainThread::ERROR::2018-05-08 10:47:48,783::ovirt-guest-agent::140::root::Unhandled
exception in oVirt guest agent!
Traceback (most recent call last):
File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 134, in
<module>
agent.run(daemon, pidfile)
File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 65, in run
self.agent = LinuxVdsAgent(config)
File "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 466, in
__init__
AgentLogicBase.__init__(self, config)
File "/usr/share/ovirt-guest-agent/OVirtAgentLogic.py", line 188, in
__init__
self.vio = VirtIoChannel(config.get("virtio", "device"))
File "/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 151, in __init__
self._stream = VirtIoStream(vport_name)
File "/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 132, in __init__
self._vport = os.open(vport_name, os.O_RDWR)
OSError: [Errno 13] Permission denied: '/dev/virtio-ports/ovirt-guest-agent.0'
-----
# zypper info ovirt-guest-agent-common
Loading repository data...
Reading installed packages...
Information for package ovirt-guest-agent-common:
-------------------------------------------------
Repository : openSUSE-Leap-42.3-0
Name : ovirt-guest-agent-common
Version : 1.0.12-3.1
Arch : noarch
Vendor : openSUSE
Installed Size : 140.0 KiB
Installed : Yes
Status : up-to-date
Source package : ovirt-guest-agent-1.0.12-3.1.src
Summary : Commonly used files of the oVirt Guest Agent
Description :
This is the oVirt management agent running inside the guest. The agent
interfaces with the oVirt manager, supplying heart-beat info as well as
run-time data from within the guest itself. The agent also accepts
control commands to be run executed within the OS (like: shutdown and
restart).
-----
# zypper lr
Repository priorities are without effect. All enabled repositories share the same
priority.
# | Alias | Name | Enabled | GPG
Check | Refresh
---+---------------------------+-----------------------------------------+---------+-----------+--------
1 | Virtualization_oVirt | oVirt (openSUSE_Leap_42.3) | Yes | (r )
Yes | No
Regards
Magnus