RHEVM: rhev-agentd broken ?
Hi
I've noticed that the applications_list that I have defined in /etc/rhev-agent.conf is not being displayed correctly in the Applications tab for my VM's.
The rhev-agent.log is showing the traceback below. Apparently unable to find a required vdsm file ?
I think this may have broken after I upgraded the manager to 3.0.7
Bug ? Should I raise a support ticket ?
MainThread::INFO::2012-10-09 11:55:40,288::rhev-agentd::25::root::Starting RHEV-Agent daemon
MainThread::ERROR::2012-10-09 11:55:40,295::rhev-agentd::57::root::Unhandled exception in RHEV-Agent daemon!
Traceback (most recent call last):
File "/usr/share/rhev-agent/rhev-agentd.py", line 55, in <module>
agent.run()
File "/usr/share/rhev-agent/rhev-agentd.py", line 30, in run
self.agent = LinuxVdsAgent(config)
File "/usr/share/rhev-agent/qGuestAgentLinux2.py", line 137, in __init__
AgentLogicBase.__init__(self, config)
File "/usr/share/rhev-agent/vdsAgentLogic.py", line 51, in __init__
self.vio = VirtIoChannel(config.get("virtio", "device"))
File "/usr/share/rhev-agent/VirtIoChannel.py", line 28, in __init__
self._vport = os.open(vport_name, os.O_RDWR)
OSError: [Errno 2] No such file or directory: '/dev/virtio-ports/com.redhat.rhevm.vdsm'
Thanks
Responses
The error is pretty self explanatory - couldn't find a devnode the agent was supposed to work with. I'd start looking at the VM settings to find out why it is gone, but since you've got a ticket open it's easier to handle the bulk of logs required to debug such an issue there. If the solution is straightforward, please share :)
The python traceback is very simple - it couldn't open /dev/...
If it fails to open, and it's a /dev node, it's probably not there at all (permissions/selinux usually apply in other locations on the FS, though I wouldn't rule them out completely).
Now, to see WHY it can't be opened by the agent service, I'd start with seeing whether the node is there at all. If it is, check whether it is accessible to root, and so on.
The reported apps are a whitelist in the conf file for the agent. If this is not clear, maybe I can review the documentation to see where we could improve it.
No worries about this Richard :)
Hi,
I am facing the same issue, anyone have get it sorted.
Please share the solution.
MainThread::INFO::2014-01-22 14:06:37,070::ovirt-guest-agent::37::root::Starting oVirt guest agent
MainThread::ERROR::2014-01-22 14:06:37,071::ovirt-guest-agent::117::root::Unhandled exception in oVirt guest agent!
Traceback (most recent call last):
File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 111, in
agent.run(daemon, pidfile)
File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 42, in run
self.agent = LinuxVdsAgent(config)
File "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 331, in init
AgentLogicBase.init(self, config)
File "/usr/share/ovirt-guest-agent/OVirtAgentLogic.py", line 90, in init
self.vio = VirtIoChannel(config.get("virtio", "device"))
File "/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 150, in init
self._stream = VirtIoStream(vport_name)
File "/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 131, in init
self._vport = os.open(vport_name, os.O_RDWR)
OSError: [Errno 2] No such file or directory: '/dev/virtio-ports/com.redhat.rhevm.vdsm'
Thanks,
Jata Shankar
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
