/usr/share/rhn/virtualization/poller.py complains about non-started libvirtd

Solution In Progress - Updated -

Issue

  • /usr/share/rhn/virtualization/poller.py (run as a cron job) complains about non-started libvirtd, which should not be case.
  • There are cases with DRBD + Heartbeat/Corosync/Pacemaker where libvirtd is only started on the active/primary one while the hot-standby server never has a libvirtd running. And there it does not make any sense to receive these errors in regular intervals via e-mail.
  • Please either run that script if libvirtd is running or check within that script if libvirtd is running and do not fail loudly, but silent.
libvir: RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
Warning: Could not retrieve virtualization information!
        libvirtd service needs to be running.
libvir: RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
Traceback (most recent call last):
  File "<stdin>", line 301, in <module>
  File "/usr/share/rhn/virtualization/domain_directory.py", line 70, in __init__
    self.conn = libvirt.openReadOnly(None)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 247, in openReadOnly
    if ret is None:raise libvirtError('virConnectOpenReadOnly() failed')
libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
  • /usr/share/rhn/virtualization/poller.py script should execute only when libvirtd is stopped.

Environment

  • Red Hat Enterprise Linux 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

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