
Hi, I am seeing the following error on running the test suite on F10 machines. CIM_NS=root/virt CIM_USER=root CIM_PASS=password ./runtests libvirt-cim -i localhost -c -v KVM -g ComputerSystem -t 41_cs_to_settingdefinestate.py *Starting test suite: libvirt-cim Encountered an error querying libvirt with: virsh -c qemu:///system version. Please check your environment. *This is because the following query does not work with the libvirt on F10: virsh -c qemu:///system version Compiled against library: libvir 0.5.0 libvir: error : this function is not supported by the hypervisor: QEMU error: failed to get the library version The alternate option for this would be to use virsh -c qemu:///system -v 0.5.0 which works for RHEL, F9 and F10. I have modified the main.py for the changes and submitted the patch. But I have one concern, since the version option is listed with the help , it should work even on F10. Should we bring up this to the notice of libvirt folks ? Thanks and Regards, Deepti.

Deepti B Kalakeri wrote:
Hi,
I am seeing the following error on running the test suite on F10 machines.
CIM_NS=root/virt CIM_USER=root CIM_PASS=password ./runtests libvirt-cim -i localhost -c -v KVM -g ComputerSystem -t 41_cs_to_settingdefinestate.py *Starting test suite: libvirt-cim
Encountered an error querying libvirt with: virsh -c qemu:///system version. Please check your environment.
*This is because the following query does not work with the libvirt on F10:
virsh -c qemu:///system version Compiled against library: libvir 0.5.0 libvir: error : this function is not supported by the hypervisor: QEMU error: failed to get the library version
Do you have both KVM and QEMU installed on the system? Both are needed to start KVM guests appropriately.
The alternate option for this would be to use
virsh -c qemu:///system -v 0.5.0
which works for RHEL, F9 and F10.
The check in the testsuite is looking for this exact error condition - it's checking both the libvirt version (for reporting purposes), but it's also verifying the libvirt has the needed pieces to define KVM guests. Let me know if you are seeing this issue on a system that has both qemu and kvm packages installed. Thanks! -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

Kaitlin Rupert wrote:
Deepti B Kalakeri wrote:
Hi,
I am seeing the following error on running the test suite on F10 machines.
CIM_NS=root/virt CIM_USER=root CIM_PASS=password ./runtests libvirt-cim -i localhost -c -v KVM -g ComputerSystem -t 41_cs_to_settingdefinestate.py *Starting test suite: libvirt-cim
Encountered an error querying libvirt with: virsh -c qemu:///system version. Please check your environment.
*This is because the following query does not work with the libvirt on F10:
virsh -c qemu:///system version Compiled against library: libvir 0.5.0 libvir: error : this function is not supported by the hypervisor: QEMU error: failed to get the library version
Do you have both KVM and QEMU installed on the system? Both are needed to start KVM guests appropriately.
The alternate option for this would be to use
virsh -c qemu:///system -v 0.5.0
which works for RHEL, F9 and F10.
The check in the testsuite is looking for this exact error condition - it's checking both the libvirt version (for reporting purposes), but it's also verifying the libvirt has the needed pieces to define KVM guests.
Let me know if you are seeing this issue on a system that has both qemu and kvm packages installed.
Thanks! Here is the information on the libvirt , kvm and qemu on the machine.
qemu-0.9.1-10.fc10.x86_64 libvirt-0.5.0-1.fc10.x86_64 kvm-74-6.fc10.x86_64 Thanks and Regards, Deepti.
participants (2)
-
Deepti B Kalakeri
-
Kaitlin Rupert