autotest/autotest — Issue #146: Autotest libvirt test fails on RHEL5 xen
Author: LaneWolf
Created: 2012-01-18 12:34:07+00:00
State: open

I have encountered few problems running autotest libvirt test on xen RHEL5 host:

1) Patchset 11252e58 (Client sub command usage help) add setting epilog parameter for OptionParser constructor on line 29. However, this parameter does not exists in 2.4 python. This prevents to run any test not just libvirt.

2) Patchset 33f3b4984bb (Virt: kvm_vm.py: Add a function for creating usb device) uses following construction (line 208):
return ",%s=%s" % (option, "on" if value else "off")
Python 2.4 does not parse this and reports error.

3) Patchset bf87fc9e (virt: Add the parameter --vnclisten to the virt-install command) introduce --vnclisten option for virt-install command. However, RHEL5 virt-instal does not support this option and so calling virt-install with it fails.

4) Patchset 34356777 (virt: libvirt_vm: Avoid re-copying kernel and initrd on install) change location of install images. RHEL5 xen virt-install is unable to find images on this location. It has no problem with original location.
Original: /tmp/libvirt_autotest_root/
New: /tmp/libvirt_autotest_root/images/f16-64