Created attachment 1023080 [details] Proposed patch Description of problem: virt-manager 1.2.0 fails to list VMs when host's libvirt does not support the virConnectListAllDomains() call. Version-Release number of selected component (if applicable): 1.2.0 How reproducible: Always Steps to Reproduce: 1. Use virt-manager 1.2.0 to connect to a host using libvirt version <0.9.13 (e.g. RHEL 5.x). Actual results: An error message stating "Error polling connection '<libvirt-URI>': 0" is displayed. Expected results: VMs on the selected host should be listed. Additional info: I believe this is caused by the changes to virtinst/pollhelpers.py introduced in commit 838baf6 - _new_poll_helper() and _old_poll_helper() are modified, but not _old_fetch_vms(), which is used for hosts with old libvirt versions. Applying the attached patch fixed the problem for me.
Thank you for cleaning up my mistake. I've pushed your patch now: commit c4d26d16a65e0ce6b88323e13669c7c388397d7f Author: Michał Kępień <michal.kepien> Date: Thu May 7 11:10:20 2015 -0400 pollhelpers: Fix VM polling on old libvirt https://bugzilla.redhat.com/show_bug.cgi?id=1219443
*** Bug 1227111 has been marked as a duplicate of this bug. ***