RHEVM: rhev-agentd broken ?

Latest response

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

Support case 721001 raised to cover

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 :)

I will certainly share the solution when it comes.

 

Are you saying that the problem probably lies with the agents on the VMs rather than the service on the RHEV-M server ?

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.

Apologies.  I've made a bad assumption.

 

The error I posted at the beginning is from an attempt to start the rhevm-agentd on the RHEV-Manager.

Of course,  I now understand that the agent does not need ot be running on the Manager, only the VM's.

 

The rhevm-agentd is running without any problem on the VM's.

However, I still have the problem with the wrong packages showing in the Applications tab.

Please ignore the above ramblings of a mad Englishman.   If I could remove this entire thread I would !

Not quite sure where my head was but I now realise that the application_list is defined per client, not at the manager/server level.

 

Boy, I need a holiday.

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

The minimum required kernel version is 2.6.18-238 which is RHEL 5.6 Any version previous to that does not have up-to-date virtio drivers and without required drivers "guest-agent" wont work. There's not much I can suggest other than upgrading the kernel to at least 2.6.18-238.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.