virt-who reporting fails after update to latest package of virt-who-0.19.x giving "Error in libvirt backend"
Environment
- Red Hat Satellite 6.2.x
- virt-who-0.19-2.el6sat.noarch
- virt-who-0.19-2.el7sat.noarch
Issue
- Upgrading
virt-whopackage to latest version ofvirt-who-0.19-2doesn't report Hypervisor information. It fails with error
# virt-who --one-shot
2017-05-18 00:57:25,950 INFO: No configurations found, using libvirt as backend
2017-05-18 00:57:25,950 INFO: Using configuration "env/cmdline" ("libvirt" mode)
2017-05-18 00:57:25,950 INFO: Using reporter_id='example.redhat.com'
2017-05-18 00:57:26,422 INFO: Using libvirt url: ""
2017-05-18 00:57:26,462 ERROR: Error in libvirt backend
libvirtError: internal error Unable to locate libvirtd daemon in /usr/sbin (to override, set $LIBVIRTD_PATH to the name of the libvirtd binary)
2017-05-18 00:57:26,463 ERROR: Virt backend 'env/cmdline' fails with error: internal error Unable to locate libvirtd daemon in /usr/sbin (to override, set $LIBVIRTD_PATH to the name of the libvirtd binary)
2017-05-18 00:57:26,465 WARNING: Unable to collect report for config "env/cmdline"
------------------
Resolution
- Rename the configuration file under
/etc/virt-who.d/configto/etc/virt-who.d/config.confor give some meaningful name eg.
# mv /etc/virt-who.d/config /etc/virt-who.d/rhev.conf
- Then restart virt-who daemon. It will report proper hypervisor information.
# service virt-who stop
# virt-who --one-shot
# service virt-who start
Root Cause
- With the release of virt-who-0.19.x+ all usable configuration files must have the
.confsuffix. - Bugzilla was raised to reflect this changes in VIRT-WHO CONFIGURATION FILES and its fixed now.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
