Author: gnichols
Date: 2010-12-14 16:45:33 +0000 (Tue, 14 Dec 2010)
New Revision: 685
Modified:
trunk/v7/fvtest.py
Log:
649729 - RHEL5 fv_tests may fail on initial run due to kvm modules not installed
Modified: trunk/v7/fvtest.py
===================================================================
--- trunk/v7/fvtest.py 2010-12-14 16:39:31 UTC (rev 684)
+++ trunk/v7/fvtest.py 2010-12-14 16:45:33 UTC (rev 685)
@@ -101,6 +101,15 @@
print "Warning: libvirtd may not be running"
print e
+ # check the kvm modules
+ try:
+ kvmModulesScript = "/etc/sysconfig/modules/kvm.modules"
+ if os.path.exists(kvmModulesScript):
+ Command(kvmModulesScript).echo()
+ except V7CommandException, e:
+ print "Warning: kvm modules may not be running"
+ print e
+
def __isHVMCapableViaLibvirt(self):
""" determine if system is FV/hvm capable, via virsh from libvirt
"""
virsh = Command("virsh capabilities")
Show replies by date