yunguol(a)cn.ibm.com wrote:
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1225344599 25200
# Node ID 2c9e9038145f1177e5e61258ea44da9c61dc1647
# Parent 408dbb3a61b43bd0def587a9ea7e648105def002
[TEST] Delete the functions have been removed to xm_virt_util.py and update
common_util.py
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
This patch looks good, but a fair number of tests fail because they are
dependent on live.py. Can you update the following tests? After that,
I'll apply this patch. Thanks!
RedirectionService - 01_enum_crs.py: FAIL
Traceback (most recent call last):
File "01_enum_crs.py", line 29, in <module>
from VirtLib.live import domain_list
ImportError: cannot import name domain_list
--------------------------------------------------------------------
RedirectionService - 02_enum_crscap.py: FAIL
Traceback (most recent call last):
File "02_enum_crscap.py", line 29, in <module>
from VirtLib.live import domain_list
ImportError: cannot import name domain_list
--------------------------------------------------------------------
SystemDevice - 01_forward.py: FAIL
ERROR - NameError : name 'KVM_NetworkPort' is not defined
Traceback (most recent call last):
File
"/data/users/kaitlin/sandbox/cimtest/suites/libvirt-cim/lib/XenKvmLib/const.py",
line 116, in do_try
rc = f()
File "01_forward.py", line 92, in main
device = devices.device_of(options.ip, key_list)
File
"/data/users/kaitlin/sandbox/cimtest/suites/libvirt-cim/lib/XenKvmLib/devices.py",
line 48, in device_of
t = eval(key_list["CreationClassName"])
File "<string>", line 1, in <module>
NameError: name 'KVM_NetworkPort' is not defined
ERROR - None
--------------------------------------------------------------------
VSSD - 01_enum.py: FAIL
ERROR - Exception 'module' object has no attribute 'domain_list'
--------------------------------------------------------------------
VSSD - 02_bootldr.py: FAIL
Traceback (most recent call last):
File "02_bootldr.py", line 33, in <module>
from VirtLib.live import bootloader
ImportError: cannot import name bootloader
--------------------------------------------------------------------
VirtualSystemManagementService - 06_addresource.py: FAIL
Traceback (most recent call last):
File "06_addresource.py", line 35, in <module>
from XenKvmLib import vsms_util
File
"/data/users/kaitlin/sandbox/cimtest/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py",
line 27, in <module>
from VirtLib.live import network_by_bridge, virsh_vcpuinfo, \
ImportError: cannot import name network_by_bridge
--------------------------------------------------------------------
VirtualSystemManagementService - 08_modifyresource.py: FAIL
Traceback (most recent call last):
File "08_modifyresource.py", line 35, in <module>
from XenKvmLib import vsms_util
File
"/data/users/kaitlin/sandbox/cimtest/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py",
line 27, in <module>
from VirtLib.live import network_by_bridge, virsh_vcpuinfo, \
ImportError: cannot import name network_by_bridge
--------------------------------------------------------------------
VirtualSystemMigrationService - 01_migratable_host.py: FAIL
Traceback (most recent call last):
File "01_migratable_host.py", line 32, in <module>
from XenKvmLib import vsmigrations
File
"/data/users/kaitlin/sandbox/cimtest/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py",
line 30, in <module>
from VirtLib.live import domain_list
ImportError: cannot import name domain_list
--------------------------------------------------------------------
VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL
Traceback (most recent call last):
File "02_host_migrate_type.py", line 30, in <module>
from XenKvmLib import vsmigrations
File
"/data/users/kaitlin/sandbox/cimtest/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py",
line 30, in <module>
from VirtLib.live import domain_list
ImportError: cannot import name domain_list
--------------------------------------------------------------------
VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL
Traceback (most recent call last):
File "05_migratable_host_errs.py", line 28, in <module>
from XenKvmLib import vsmigrations
File
"/data/users/kaitlin/sandbox/cimtest/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py",
line 30, in <module>
from VirtLib.live import domain_list
ImportError: cannot import name domain_list
--------------------------------------------------------------------
VSSD - 01_enum.py: FAIL
ERROR - Exception 'module' object has no attribute 'domain_list'
--------------------------------------------------------------------
VSSD - 02_bootldr.py: FAIL
Traceback (most recent call last):
File "02_bootldr.py", line 33, in <module>
from VirtLib.live import bootloader
ImportError: cannot import name bootloader
--------------------------------------------------------------------
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com