[PATCH] [TEST] #2 Fixing vsms/08_modifyresource.py
by Deepti B. Kalakeri
# HG changeset patch
# User Deepti B. Kalakeri<deeptik(a)linux.vnet.ibm.com>
# Date 1261076229 28800
# Node ID c645bc67171f032edfe15e4e2390e201a218423d
# Parent 8f0220b94152171cd71f7a8181a7d8549e9ee064
[TEST] #2 Fixing vsms/08_modifyresource.py
Tested with KVM and current sources on Fedora
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 8f0220b94152 -r c645bc67171f suites/libvirt-cim/lib/XenKvmLib/xm_virt_util.py
--- a/suites/libvirt-cim/lib/XenKvmLib/xm_virt_util.py Fri Dec 11 23:05:10 2009 -0200
+++ b/suites/libvirt-cim/lib/XenKvmLib/xm_virt_util.py Thu Dec 17 10:57:09 2009 -0800
@@ -272,11 +272,11 @@
def virsh_vcpuinfo(server, dom, virt="Xen"):
- cmd = "virsh -c %s vcpuinfo %s 2>/dev/null | grep VCPU | wc -l" \
- % (virt2uri(virt), dom)
+ cmd = "virsh -c %s vcpuinfo %s 2>/dev/null " % (virt2uri(virt), dom)
ret, out = utils.run_remote(server, cmd)
- if out.isdigit():
- return out
+ if ret == 0 :
+ vcpu = out.count("VCPU")
+ return vcpu
return None
def get_hv_ver(server, virt="Xen"):
15 years
[PATCH] [TEST] Fix order XenFV args are passed to VirtCIM __init__()
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1260576721 28800
# Node ID 4c73bb18cd2d6144debd06135ad8de6e569f6747
# Parent ceb3cf5bc4d887de99e59f8c1ca7833ed0550b22
[TEST] Fix order XenFV args are passed to VirtCIM __init__()
When the acip, pae, and acpi args were added, they were added in the wrong
order for XenFV guests.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r ceb3cf5bc4d8 -r 4c73bb18cd2d suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Fri Dec 11 16:12:01 2009 -0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Fri Dec 11 16:12:01 2009 -0800
@@ -955,7 +955,7 @@
logger.error('Error: Disk image does not exist')
sys.exit(1)
VirtXML.__init__(self, 'xenfv', test_dom, set_uuid(), mem, vcpus)
- VirtCIM.__init__(self, 'XenFV', test_dom, disk, uuid, pae, acpi, apic,
+ VirtCIM.__init__(self, 'XenFV', test_dom, uuid, pae, acpi, apic, disk,
disk_file_path, ntype, net_name, mac, vcpus, mem,
mem_allocunits, emu_type, grstype, address,
is_ipv6_only, port_num,
@@ -964,6 +964,8 @@
self._devices(const.XenFV_default_emulator,
ntype, mac, net_name, disk_file_path, disk)
+ print address, port_num, is_ipv6_only
+
def _os(self, os_loader):
os = self.get_node('/domain/os')
self.add_sub_node(os, 'type', 'hvm')
15 years
[PATCH] [TEST] VSSD uses "Xen" not "XenFV" as part of the InstanceID
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1260576721 28800
# Node ID 5978eee0beb98fb1d2d8780376fc8edd825589d7
# Parent f4cdb74b80f86892cd5739f86ccb215fa7ac8de3
[TEST] VSSD uses "Xen" not "XenFV" as part of the InstanceID
Fix several tests to use the right InstanceID for Xen full virt guests.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r f4cdb74b80f8 -r 5978eee0beb9 suites/libvirt-cim/cimtest/RASDIndications/02_guest_add_mod_rem_rasd_ind.py
--- a/suites/libvirt-cim/cimtest/RASDIndications/02_guest_add_mod_rem_rasd_ind.py Fri Dec 11 16:12:01 2009 -0800
+++ b/suites/libvirt-cim/cimtest/RASDIndications/02_guest_add_mod_rem_rasd_ind.py Fri Dec 11 16:12:01 2009 -0800
@@ -82,11 +82,17 @@
def gen_indication(test_dom, s_sysname, virt, cxml, service, ind_name,
rasd=None, nmem_disk=None):
status = FAIL
+
+ if virt == "XenFV":
+ prefix = "Xen"
+ else:
+ prefix = virt
+
try:
if ind_name == "add":
cn = 'VirtualSystemSettingData'
- inst_id = '%s:%s' % (virt, test_dom)
+ inst_id = '%s:%s' % (prefix, test_dom)
classname = get_typed_class(virt, cn)
vssd_ref = get_rasd_rec(virt, cn, s_sysname, inst_id)
diff -r f4cdb74b80f8 -r 5978eee0beb9 suites/libvirt-cim/cimtest/VirtualSystemManagementService/22_addmulti_brg_interface.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/22_addmulti_brg_interface.py Fri Dec 11 16:12:01 2009 -0800
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/22_addmulti_brg_interface.py Fri Dec 11 16:12:01 2009 -0800
@@ -74,7 +74,12 @@
if ret:
raise Exception("Failed to define the dom: %s" % default_dom)
- inst_id = '%s:%s' % (options.virt, test_dom)
+ if options.virt == "XenFV":
+ prefix = "Xen"
+ else:
+ prefix = options.virt
+
+ inst_id = '%s:%s' % (prefix, test_dom)
netpool = EnumNames(options.ip, classname)
vssd_ref = None
for i in range(0, len(netpool)):
diff -r f4cdb74b80f8 -r 5978eee0beb9 suites/libvirt-cim/cimtest/VirtualSystemManagementService/23_verify_duplicate_mac_err.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/23_verify_duplicate_mac_err.py Fri Dec 11 16:12:01 2009 -0800
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/23_verify_duplicate_mac_err.py Fri Dec 11 16:12:01 2009 -0800
@@ -113,7 +113,13 @@
service = get_vsms_class(options.virt)(options.ip)
classname = get_typed_class(options.virt, 'VirtualSystemSettingData')
netpool = EnumNames(options.ip, classname)
- inst_id = '%s:%s' % (options.virt, default_dom)
+
+ if options.virt == "XenFV":
+ prefix = "Xen"
+ else:
+ prefix = options.virt
+
+ inst_id = '%s:%s' % (prefix, default_dom)
vssd_ref = None
for i in range(0, len(netpool)):
ret_pool = netpool[i].keybindings['InstanceID']
15 years
[PATCH] [TEST] Get the proper default net template RASD
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1260576721 28800
# Node ID 7635e4deb3516ffe938ee597bd5e771cd7fae491
# Parent 4c73bb18cd2d6144debd06135ad8de6e569f6747
[TEST] Get the proper default net template RASD
The test caes assume "network" for the default interface type. Depending on
how the templates are returned, SettingsDefineCapabilities might return a
"bridge" or "user" type interface. This fix adds some additional filtering
to get the proper template.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 4c73bb18cd2d -r 7635e4deb351 suites/libvirt-cim/lib/XenKvmLib/rasd.py
--- a/suites/libvirt-cim/lib/XenKvmLib/rasd.py Fri Dec 11 16:12:01 2009 -0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/rasd.py Fri Dec 11 16:12:01 2009 -0800
@@ -29,7 +29,7 @@
from XenKvmLib.enumclass import GetInstance, EnumInstances
from XenKvmLib.assoc import Associators
from XenKvmLib.const import default_pool_name, default_network_name, \
- get_provider_version
+ get_provider_version, default_net_type
from XenKvmLib.pool import enum_volumes
from XenKvmLib.xm_virt_util import virsh_version
from XenKvmLib.common_util import parse_instance_id
@@ -251,6 +251,8 @@
ac_id_list.append("NetworkPool/%s" % default_network_name)
ac_id_list.append("ProcessorPool/0")
+ net_cn = "NetResourceAllocationSettingData"
+
templates = []
for id in ac_id_list:
@@ -260,7 +262,10 @@
return []
for rasd in rasd_list:
- if rasd['InstanceID'] == "Default":
+ if rasd['InstanceID'] == "Default":
+ if rasd.classname.find(net_cn) > 0 and \
+ rasd['NetworkType'] != default_net_type:
+ continue
templates.append(rasd)
return templates
15 years
[PATCH] [TEST] Enable some tests to work with full virt Xen
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1260576721 28800
# Node ID f4cdb74b80f86892cd5739f86ccb215fa7ac8de3
# Parent f6a811d7118444d411baa03847cb96d8cb483ab4
[TEST] Enable some tests to work with full virt Xen
No reason these tests should be skipped for full virt Xen guests.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r f6a811d71184 -r f4cdb74b80f8 suites/libvirt-cim/cimtest/ComputerSystemMigrationJobIndication/01_csmig_ind_for_offline_mig.py
--- a/suites/libvirt-cim/cimtest/ComputerSystemMigrationJobIndication/01_csmig_ind_for_offline_mig.py Fri Dec 11 16:12:01 2009 -0800
+++ b/suites/libvirt-cim/cimtest/ComputerSystemMigrationJobIndication/01_csmig_ind_for_offline_mig.py Fri Dec 11 16:12:01 2009 -0800
@@ -41,7 +41,7 @@
destroy_netpool
from XenKvmLib.indications import sub_ind, handle_request, poll_for_ind
-sup_types = ['KVM', 'Xen']
+sup_types = ['KVM', 'Xen', 'XenFV']
REQUESTED_STATE = 3
diff -r f6a811d71184 -r f4cdb74b80f8 suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py
--- a/suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py Fri Dec 11 16:12:01 2009 -0800
+++ b/suites/libvirt-cim/cimtest/RASD/05_disk_rasd_emu_type.py Fri Dec 11 16:12:01 2009 -0800
@@ -30,7 +30,7 @@
from CimTest.Globals import logger
from XenKvmLib.const import get_provider_version
-SUPPORTED_TYPES = ['KVM', 'Xen']
+SUPPORTED_TYPES = ['KVM', 'Xen', 'XenFV']
default_dom = 'test_domain'
libvirt_em_type_changeset = 737
diff -r f6a811d71184 -r f4cdb74b80f8 suites/libvirt-cim/cimtest/VirtualSystemMigrationService/07_remote_offline_migration.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/07_remote_offline_migration.py Fri Dec 11 16:12:01 2009 -0800
+++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/07_remote_offline_migration.py Fri Dec 11 16:12:01 2009 -0800
@@ -39,7 +39,7 @@
cleanup_guest_netpool
from XenKvmLib.common_util import poll_for_state_change, create_netpool_conf
-sup_types = ['KVM', 'Xen']
+sup_types = ['KVM', 'Xen', 'XenFV']
REQUESTED_STATE = 3
15 years
Test Run Summary (Dec 17 2009): LXC on Fedora release 12 (Constantine) with Pegasus
by Richard Maciel
=================================================
Test Run Summary (Dec 17 2009): LXC on Fedora release 12 (Constantine) with Pegasus
=================================================
Distro: Fedora release 12 (Constantine)
Kernel: 2.6.31.6-166.fc12.x86_64
libvirt: 0.7.1
Hypervisor: QEMU 0.11.0
CIMOM: Pegasus 2.9.0
Libvirt-cim revision: 1022
Libvirt-cim changeset: 54c432d2bec6
Cimtest revision: 828
Cimtest changeset: a5c1b6950f87
Total test execution: Unknown
=================================================
FAIL : 8
XFAIL : 6
SKIP : 60
PASS : 105
-----------------
Total : 179
=================================================
FAIL Test Summary:
ResourceAllocationFromPool - 01_forward.py: FAIL
ResourceAllocationFromPool - 02_reverse.py: FAIL
ServiceAccessBySAP - 01_forward.py: FAIL
ServiceAccessBySAP - 02_reverse.py: FAIL
ServiceAffectsElement - 01_forward.py: FAIL
ServiceAffectsElement - 02_reverse.py: FAIL
VirtualSystemManagementService - 21_createVS_verifyMAC.py: FAIL
VirtualSystemSnapshotService - 03_create_snapshot.py: FAIL
=================================================
XFAIL Test Summary:
ComputerSystem - 06_paused_active_suspend.py: XFAIL
ComputerSystem - 23_pause_pause.py: XFAIL
ComputerSystem - 32_start_reboot.py: XFAIL
ComputerSystem - 33_suspend_reboot.py: XFAIL
HostedDependency - 03_enabledstate.py: XFAIL
VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL
=================================================
SKIP Test Summary:
ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP
ComputerSystemIndication - 01_created_indication.py: SKIP
ComputerSystemMigrationJobIndication - 01_csmig_ind_for_offline_mig.py: SKIP
ElementAllocatedFromPool - 03_reverse_errs.py: SKIP
ElementAllocatedFromPool - 04_forward_errs.py: SKIP
HostedAccessPoint - 01_forward.py: SKIP
HostedAccessPoint - 02_reverse.py: SKIP
KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP
KVMRedirectionSAP - 02_ipv6_support.py: SKIP
LogicalDisk - 01_disk.py: SKIP
LogicalDisk - 03_ld_gi_errs.py: SKIP
NetworkPort - 01_netport.py: SKIP
NetworkPort - 02_np_gi_errors.py: SKIP
NetworkPort - 03_user_netport.py: SKIP
Processor - 01_processor.py: SKIP
Processor - 02_definesys_get_procs.py: SKIP
Processor - 03_proc_gi_errs.py: SKIP
Profile - 04_verify_libvirt_cim_slp_profiles.py: SKIP
RASD - 04_disk_rasd_size.py: SKIP
RASD - 05_disk_rasd_emu_type.py: SKIP
RASD - 06_parent_net_pool.py: SKIP
RASD - 07_parent_disk_pool.py: SKIP
RASDIndications - 01_guest_states_rasd_ind.py: SKIP
RASDIndications - 02_guest_add_mod_rem_rasd_ind.py: SKIP
RedirectionService - 03_RedirectionSAP_errs.py: SKIP
ResourceAllocationFromPool - 05_RAPF_err.py: SKIP
ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP
ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP
ResourcePoolConfigurationService - 08_CreateDiskResourcePool.py: SKIP
ResourcePoolConfigurationService - 09_DeleteDiskPool.py: SKIP
ResourcePoolConfigurationService - 10_create_storagevolume.py: SKIP
ResourcePoolConfigurationService - 11_create_dir_storagevolume_errs.py: SKIP
ResourcePoolConfigurationService - 12_create_netfs_storagevolume_errs.py: SKIP
ResourcePoolConfigurationService - 13_delete_storagevolume.py: SKIP
ResourcePoolConfigurationService - 14_delete_storagevolume_errs.py: SKIP
VirtualSystemManagementService - 06_addresource.py: SKIP
VirtualSystemManagementService - 08_modifyresource.py: SKIP
VirtualSystemManagementService - 09_procrasd_persist.py: SKIP
VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP
VirtualSystemManagementService - 12_referenced_config.py: SKIP
VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP
VirtualSystemManagementService - 16_removeresource.py: SKIP
VirtualSystemManagementService - 17_removeresource_neg.py: SKIP
VirtualSystemManagementService - 18_define_sys_bridge.py: SKIP
VirtualSystemManagementService - 19_definenetwork_ers.py: SKIP
VirtualSystemManagementService - 20_verify_vnc_password.py: SKIP
VirtualSystemManagementService - 22_addmulti_brg_interface.py: SKIP
VirtualSystemManagementService - 23_verify_duplicate_mac_err.py: SKIP
VirtualSystemManagementService - 24_define_sys_features.py: SKIP
VirtualSystemManagementService - 24_verify_modifyres_output.py: SKIP
VirtualSystemMigrationService - 01_migratable_host.py: SKIP
VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP
VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP
VirtualSystemMigrationService - 06_remote_live_migration.py: SKIP
VirtualSystemMigrationService - 07_remote_offline_migration.py: SKIP
VirtualSystemMigrationService - 08_remote_restart_resume_migration.py: SKIP
VSSD - 02_bootldr.py: SKIP
=================================================
Full report:
--------------------------------------------------------------------
AllocationCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
AllocationCapabilities - 02_alloccap_gi_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 01_enum.py: PASS
--------------------------------------------------------------------
ComputerSystem - 02_nosystems.py: PASS
--------------------------------------------------------------------
ComputerSystem - 03_defineVS.py: PASS
--------------------------------------------------------------------
ComputerSystem - 04_defineStartVS.py: PASS
--------------------------------------------------------------------
ComputerSystem - 05_activate_defined_start.py: PASS
--------------------------------------------------------------------
ComputerSystem - 06_paused_active_suspend.py: XFAIL
ERROR - Got CIM error CIM_ERR_FAILED: Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend with return code 1
ERROR - Exception variable: Unable pause dom 'DomST1'
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend
Bug:<00011>
--------------------------------------------------------------------
ComputerSystem - 22_define_suspend.py: PASS
--------------------------------------------------------------------
ComputerSystem - 23_pause_pause.py: XFAIL
ERROR - Got CIM error CIM_ERR_FAILED: Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend with return code 1
ERROR - Exception: 'Unable pause dom 'cs_test_domain''
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend
Bug:<00011>
--------------------------------------------------------------------
ComputerSystem - 27_define_pause_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 32_start_reboot.py: XFAIL
ERROR - Got CIM error CIM_ERR_FAILED: Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot with return code 1
ERROR - Exception: Unable reboot dom 'cs_test_domain'
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot
Bug:<00005>
--------------------------------------------------------------------
ComputerSystem - 33_suspend_reboot.py: XFAIL
ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7
ERROR - Exception: Unable Suspend dom 'test_domain'
InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported
Bug:<00012>
--------------------------------------------------------------------
ComputerSystem - 34_start_disable.py: PASS
--------------------------------------------------------------------
ComputerSystem - 35_start_reset.py: PASS
--------------------------------------------------------------------
ComputerSystem - 40_RSC_start.py: PASS
--------------------------------------------------------------------
ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 42_cs_gi_errs.py: PASS
--------------------------------------------------------------------
ComputerSystemIndication - 01_created_indication.py: SKIP
--------------------------------------------------------------------
ComputerSystemMigrationJobIndication - 01_csmig_ind_for_offline_mig.py: SKIP
--------------------------------------------------------------------
ElementAllocatedFromPool - 01_forward.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 03_reverse_errs.py: SKIP
--------------------------------------------------------------------
ElementAllocatedFromPool - 04_forward_errs.py: SKIP
--------------------------------------------------------------------
ElementCapabilities - 01_forward.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 03_forward_errs.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 05_hostsystem_cap.py: PASS
--------------------------------------------------------------------
ElementConforms - 01_forward.py: PASS
--------------------------------------------------------------------
ElementConforms - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementConforms - 03_ectp_fwd_errs.py: PASS
--------------------------------------------------------------------
ElementConforms - 04_ectp_rev_errs.py: PASS
--------------------------------------------------------------------
ElementSettingData - 01_forward.py: PASS
--------------------------------------------------------------------
ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS
--------------------------------------------------------------------
EnabledLogicalElementCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS
--------------------------------------------------------------------
HostedAccessPoint - 01_forward.py: SKIP
--------------------------------------------------------------------
HostedAccessPoint - 02_reverse.py: SKIP
--------------------------------------------------------------------
HostedDependency - 01_forward.py: PASS
--------------------------------------------------------------------
HostedDependency - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedDependency - 03_enabledstate.py: XFAIL
ERROR - Exception: (1, u'CIM_ERR_FAILED: Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend')
ERROR - Failed to suspend the dom: hd_domain1
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend
Bug:<00011>
--------------------------------------------------------------------
HostedDependency - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
HostedResourcePool - 01_forward.py: PASS
--------------------------------------------------------------------
HostedResourcePool - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedResourcePool - 03_forward_errs.py: PASS
--------------------------------------------------------------------
HostedResourcePool - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
HostedService - 01_forward.py: PASS
--------------------------------------------------------------------
HostedService - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedService - 03_forward_errs.py: PASS
--------------------------------------------------------------------
HostedService - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
HostSystem - 01_enum.py: PASS
--------------------------------------------------------------------
HostSystem - 02_hostsystem_to_rasd.py: PASS
--------------------------------------------------------------------
HostSystem - 03_hs_to_settdefcap.py: PASS
--------------------------------------------------------------------
HostSystem - 04_hs_to_EAPF.py: PASS
--------------------------------------------------------------------
HostSystem - 05_hs_gi_errs.py: PASS
--------------------------------------------------------------------
HostSystem - 06_hs_to_vsms.py: PASS
--------------------------------------------------------------------
KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP
--------------------------------------------------------------------
KVMRedirectionSAP - 02_ipv6_support.py: SKIP
--------------------------------------------------------------------
LogicalDisk - 01_disk.py: SKIP
--------------------------------------------------------------------
LogicalDisk - 02_nodevs.py: PASS
--------------------------------------------------------------------
LogicalDisk - 03_ld_gi_errs.py: SKIP
--------------------------------------------------------------------
Memory - 01_memory.py: PASS
--------------------------------------------------------------------
Memory - 02_defgetmem.py: PASS
--------------------------------------------------------------------
Memory - 03_mem_gi_errs.py: PASS
--------------------------------------------------------------------
NetworkPort - 01_netport.py: SKIP
--------------------------------------------------------------------
NetworkPort - 02_np_gi_errors.py: SKIP
--------------------------------------------------------------------
NetworkPort - 03_user_netport.py: SKIP
--------------------------------------------------------------------
Processor - 01_processor.py: SKIP
--------------------------------------------------------------------
Processor - 02_definesys_get_procs.py: SKIP
--------------------------------------------------------------------
Processor - 03_proc_gi_errs.py: SKIP
--------------------------------------------------------------------
Profile - 01_enum.py: PASS
--------------------------------------------------------------------
Profile - 02_profile_to_elec.py: PASS
--------------------------------------------------------------------
Profile - 03_rprofile_gi_errs.py: PASS
--------------------------------------------------------------------
Profile - 04_verify_libvirt_cim_slp_profiles.py: SKIP
04_verify_libvirt_cim_slp_profiles.py:30: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - SLP tool does not exist on the machine
--------------------------------------------------------------------
RASD - 01_verify_rasd_fields.py: PASS
--------------------------------------------------------------------
RASD - 02_enum.py: PASS
--------------------------------------------------------------------
RASD - 03_rasd_errs.py: PASS
--------------------------------------------------------------------
RASD - 04_disk_rasd_size.py: SKIP
--------------------------------------------------------------------
RASD - 05_disk_rasd_emu_type.py: SKIP
--------------------------------------------------------------------
RASD - 06_parent_net_pool.py: SKIP
06_parent_net_pool.py:50: DeprecationWarning: the sets module is deprecated
from sets import Set
--------------------------------------------------------------------
RASD - 07_parent_disk_pool.py: SKIP
07_parent_disk_pool.py:47: DeprecationWarning: the sets module is deprecated
from sets import Set
--------------------------------------------------------------------
RASDIndications - 01_guest_states_rasd_ind.py: SKIP
--------------------------------------------------------------------
RASDIndications - 02_guest_add_mod_rem_rasd_ind.py: SKIP
--------------------------------------------------------------------
RedirectionService - 01_enum_crs.py: PASS
--------------------------------------------------------------------
RedirectionService - 02_enum_crscap.py: PASS
--------------------------------------------------------------------
RedirectionService - 03_RedirectionSAP_errs.py: SKIP
--------------------------------------------------------------------
ReferencedProfile - 01_verify_refprof.py: PASS
--------------------------------------------------------------------
ReferencedProfile - 02_refprofile_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 01_forward.py: FAIL
ERROR - 3 RASD insts != 4 pool insts
--------------------------------------------------------------------
ResourceAllocationFromPool - 02_reverse.py: FAIL
ERROR - 3 RASD insts != 4 pool insts
--------------------------------------------------------------------
ResourceAllocationFromPool - 03_forward_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 05_RAPF_err.py: SKIP
--------------------------------------------------------------------
ResourcePool - 01_enum.py: PASS
--------------------------------------------------------------------
ResourcePool - 02_rp_gi_errors.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 01_enum.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 08_CreateDiskResourcePool.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 09_DeleteDiskPool.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 10_create_storagevolume.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 11_create_dir_storagevolume_errs.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 12_create_netfs_storagevolume_errs.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 13_delete_storagevolume.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 14_delete_storagevolume_errs.py: SKIP
--------------------------------------------------------------------
ServiceAccessBySAP - 01_forward.py: FAIL
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 760, in emit
msg = self.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 644, in format
return fmt.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 432, in format
record.message = record.getMessage()
File "/usr/lib64/python2.6/logging/__init__.py", line 302, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 760, in emit
msg = self.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 644, in format
return fmt.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 432, in format
record.message = record.getMessage()
File "/usr/lib64/python2.6/logging/__init__.py", line 302, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 760, in emit
msg = self.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 644, in format
return fmt.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 432, in format
record.message = record.getMessage()
File "/usr/lib64/python2.6/logging/__init__.py", line 302, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
--------------------------------------------------------------------
ServiceAccessBySAP - 02_reverse.py: FAIL
ERROR - No kvmrsap instance found
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 760, in emit
msg = self.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 644, in format
return fmt.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 432, in format
record.message = record.getMessage()
File "/usr/lib64/python2.6/logging/__init__.py", line 302, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 760, in emit
msg = self.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 644, in format
return fmt.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 432, in format
record.message = record.getMessage()
File "/usr/lib64/python2.6/logging/__init__.py", line 302, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 760, in emit
msg = self.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 644, in format
return fmt.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 432, in format
record.message = record.getMessage()
File "/usr/lib64/python2.6/logging/__init__.py", line 302, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
--------------------------------------------------------------------
ServiceAffectsElement - 01_forward.py: FAIL
01_forward.py:51: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - Exception in fn verify_assoc()
ERROR - Exception details: Failed to get init_list
--------------------------------------------------------------------
ServiceAffectsElement - 02_reverse.py: FAIL
02_reverse.py:47: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - Exception : 'LXC_DisplayController'
--------------------------------------------------------------------
SettingsDefine - 01_forward.py: PASS
--------------------------------------------------------------------
SettingsDefine - 02_reverse.py: PASS
--------------------------------------------------------------------
SettingsDefine - 03_sds_fwd_errs.py: PASS
--------------------------------------------------------------------
SettingsDefine - 04_sds_rev_errs.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 01_forward.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 03_forward_errs.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS
--------------------------------------------------------------------
SystemDevice - 01_forward.py: PASS
--------------------------------------------------------------------
SystemDevice - 02_reverse.py: PASS
--------------------------------------------------------------------
SystemDevice - 03_fwderrs.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 01_definesystem_name.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 02_destroysystem.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 03_definesystem_ess.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 04_definesystem_ers.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 05_destroysystem_neg.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 06_addresource.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 07_addresource_neg.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 08_modifyresource.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 09_procrasd_persist.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 10_hv_version.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 12_referenced_config.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 14_define_sys_disk.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL
--------------------------------------------------------------------
VirtualSystemManagementService - 16_removeresource.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 17_removeresource_neg.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 18_define_sys_bridge.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 19_definenetwork_ers.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 20_verify_vnc_password.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 21_createVS_verifyMAC.py: FAIL
ERROR - LXC_NetResourceAllocationSettingData returned 0 instances, excepted at least 1.
--------------------------------------------------------------------
VirtualSystemManagementService - 22_addmulti_brg_interface.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 23_verify_duplicate_mac_err.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 24_define_sys_features.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 24_verify_modifyres_output.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS
--------------------------------------------------------------------
VirtualSystemMigrationService - 01_migratable_host.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 06_remote_live_migration.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 07_remote_offline_migration.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 08_remote_restart_resume_migration.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationSettingData - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS
--------------------------------------------------------------------
VirtualSystemSettingDataComponent - 01_forward.py: PASS
--------------------------------------------------------------------
VirtualSystemSettingDataComponent - 02_reverse.py: PASS
--------------------------------------------------------------------
VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS
--------------------------------------------------------------------
VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS
--------------------------------------------------------------------
VirtualSystemSnapshotService - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS
--------------------------------------------------------------------
VirtualSystemSnapshotService - 03_create_snapshot.py: FAIL
ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: Domain has a snapshot with return code 7
ERROR - Exception: Failed to start the defined domain: snapshot_vm
InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: Domain has a snapshot
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS
--------------------------------------------------------------------
VSSD - 01_enum.py: PASS
--------------------------------------------------------------------
VSSD - 02_bootldr.py: SKIP
--------------------------------------------------------------------
VSSD - 03_vssd_gi_errs.py: PASS
--------------------------------------------------------------------
VSSD - 04_vssd_to_rasd.py: PASS
--------------------------------------------------------------------
VSSD - 05_set_uuid.py: PASS
--------------------------------------------------------------------
VSSD - 06_duplicate_uuid.py: PASS
--------------------------------------------------------------------
15 years
[PATCH] [TEST] Fixed expected LXC devices
by Richard Maciel
# HG changeset patch
# User Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
# Date 1260579910 7200
# Node ID 7377a5c5b8d587fac75f06a511f3f43f666b7294
# Parent 7ce11553d0f236f8bd961852720e33a6f7c63ac3
[TEST] Fixed expected LXC devices
List of expected devices must not include LXC_Processor, but must include LXC_PointingDevice and
LXC_LogicalDisk (with proper path)
Signed-off-by: Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
diff -r 7ce11553d0f2 -r 7377a5c5b8d5 suites/libvirt-cim/cimtest/SystemDevice/01_forward.py
--- a/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Fri Nov 27 19:24:42 2009 -0200
+++ b/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Fri Dec 11 23:05:10 2009 -0200
@@ -49,6 +49,8 @@
if virt == 'Xen':
test_disk = 'xvdb'
+ elif virt == 'LXC':
+ test_disk = '/tmp'
else:
test_disk = 'hdb'
@@ -90,29 +92,32 @@
mem_cn = get_typed_class(virt, "Memory")
exp_pllist = { mem_cn : ['%s/mem' % test_dom] }
- proc_cn = get_typed_class(virt, "Processor")
- exp_pllist[proc_cn] = []
- for i in range(test_cpu):
- exp_pllist[proc_cn].append( '%s/%s' % (test_dom, i))
+
+ input_cn = get_typed_class(virt, "PointingDevice")
+ if virt == 'LXC':
+ point_device = "%s/%s" %(test_dom, "mouse:usb")
+ elif virt == 'Xen':
+ point_device = "%s/%s" %(test_dom, "mouse:xen")
+ else:
+ point_device = "%s/%s" %(test_dom, "mouse:ps2")
+
+ exp_pllist[input_cn] = [point_device]
+
+ disk_cn = get_typed_class(virt, "LogicalDisk")
+ exp_pllist[disk_cn] = [ '%s/%s' % (test_dom, test_disk)]
if virt != 'LXC':
net_cn = get_typed_class(virt, "NetworkPort")
- disk_cn = get_typed_class(virt, "LogicalDisk")
exp_pllist[net_cn] = ['%s/%s' % (test_dom, test_mac)]
- exp_pllist[disk_cn] = [ '%s/%s' % (test_dom, test_disk)]
+
+ proc_cn = get_typed_class(virt, "Processor")
+ exp_pllist[proc_cn] = []
+ for i in range(test_cpu):
+ exp_pllist[proc_cn].append( '%s/%s' % (test_dom, i))
curr_cim_rev, changeset = get_provider_version(virt, server)
if curr_cim_rev >= input_graphics_pool_rev:
- input_cn = get_typed_class(virt, "PointingDevice")
graphics_cn = get_typed_class(virt, "DisplayController")
- if virt == 'LXC':
- point_device = "%s/%s" %(test_dom, "mouse:usb")
- elif virt == 'Xen':
- point_device = "%s/%s" %(test_dom, "mouse:xen")
- else:
- point_device = "%s/%s" %(test_dom, "mouse:ps2")
-
- exp_pllist[input_cn] = [point_device]
exp_pllist[graphics_cn] = ['%s/graphics' % test_dom]
15 years
[PATCH] [TEST] Fixing vsms/08_modifyresource.py
by Deepti B. Kalakeri
# HG changeset patch
# User Deepti B. Kalakeri<deeptik(a)linux.vnet.ibm.com
# Date 1260446374 28800
# Node ID e95a3d156fc2284484f98f07c39fbfd65929a395
# Parent 683a8a57d54506032a659bdb9178b7558827ffde
[TEST] Fixing vsms/08_modifyresource.py
Tested with KVM and current sources on Fedora
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 683a8a57d545 -r e95a3d156fc2 suites/libvirt-cim/lib/XenKvmLib/vsms_util.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Sat Dec 05 02:22:09 2009 -0200
+++ b/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Thu Dec 10 03:59:34 2009 -0800
@@ -120,9 +120,10 @@
cxml.dumpxml(server)
dom = cxml.xml_get_dom_name()
cpu = virsh_vcpuinfo(server, dom, virt)
- if cpu is None:
+ if int(cpu) < int(ncpu) or cpu is None:
logger.info("Unable to get vcpuinfo from virsh, using XML values")
cpu = cxml.xml_get_vcpu()
+
if int(cpu) != int(ncpu):
logger.error("Got %d, exp %d.", int(cpu), int(ncpu))
raise Exception('Error changing rs for vcpu')
15 years