Test Run Summary (May 29 2009): KVM on SLES_11 with sfcb
by Deepti B Kalakeri
=================================================
Test Run Summary (May 29 2009): KVM on with sfcb
=================================================
Distro:
Kernel: 2.6.27.21-5.1-default
libvirt: 0.6.3
Hypervisor: QEMU 0.10.4
CIMOM: sfcb sfcbd 1.3.2
Libvirt-cim revision: 0
Libvirt-cim changeset: SLES_11
Cimtest revision: 692
Cimtest changeset: 3c17b4d15e84
=================================================
FAIL : 23
XFAIL : 3
SKIP : 21
PASS : 109
-----------------
Total : 156
=================================================
FAIL Test Summary:
AllocationCapabilities - 01_enum.py: FAIL
ComputerSystem - 42_cs_gi_errs.py: FAIL
ComputerSystemIndication - 01_created_indication.py: FAIL
ElementCapabilities - 01_forward.py: FAIL
ElementCapabilities - 03_forward_errs.py: FAIL
ElementConforms - 01_forward.py: FAIL
ElementConforms - 04_ectp_rev_errs.py: FAIL
HostSystem - 03_hs_to_settdefcap.py: FAIL
HostedDependency - 04_reverse_errs.py: FAIL
HostedResourcePool - 03_forward_errs.py: FAIL
HostedService - 03_forward_errs.py: FAIL
ResourceAllocationFromPool - 01_forward.py: FAIL
ResourceAllocationFromPool - 02_reverse.py: FAIL
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: FAIL
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: FAIL
ServiceAffectsElement - 01_forward.py: FAIL
SettingsDefine - 01_forward.py: FAIL
SettingsDefine - 02_reverse.py: FAIL
SettingsDefineCapabilities - 01_forward.py: FAIL
SettingsDefineCapabilities - 03_forward_errs.py: FAIL
SystemDevice - 01_forward.py: FAIL
VirtualSystemManagementService - 05_destroysystem_neg.py: FAIL
VirtualSystemSnapshotService - 03_create_snapshot.py: FAIL
=================================================
XFAIL Test Summary:
ComputerSystem - 33_suspend_reboot.py: XFAIL
VirtualSystemManagementService - 09_procrasd_persist.py: XFAIL
VirtualSystemManagementService - 16_removeresource.py: XFAIL
=================================================
SKIP Test Summary:
ComputerSystem - 02_nosystems.py: SKIP
HostSystem - 05_hs_gi_errs.py: SKIP
HostedAccessPoint - 01_forward.py: SKIP
HostedAccessPoint - 02_reverse.py: SKIP
KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP
LogicalDisk - 02_nodevs.py: SKIP
RASD - 05_disk_rasd_emu_type.py: SKIP
RASD - 06_parent_net_pool.py: SKIP
RASD - 07_parent_disk_pool.py: SKIP
RedirectionService - 01_enum_crs.py: SKIP
RedirectionService - 02_enum_crscap.py: SKIP
RedirectionService - 03_RedirectionSAP_errs.py: SKIP
ServiceAccessBySAP - 01_forward.py: SKIP
ServiceAccessBySAP - 02_reverse.py: SKIP
VSSD - 02_bootldr.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
=================================================
Full report:
--------------------------------------------------------------------
AllocationCapabilities - 01_enum.py: FAIL
ERROR - 12 KVM_AllocationCapabilities insts != 10 pool insts
--------------------------------------------------------------------
AllocationCapabilities - 02_alloccap_gi_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 01_enum.py: PASS
--------------------------------------------------------------------
ComputerSystem - 02_nosystems.py: SKIP
ERROR - System has defined domains; unable to run
--------------------------------------------------------------------
ComputerSystem - 03_defineVS.py: PASS
--------------------------------------------------------------------
ComputerSystem - 04_defineStartVS.py: PASS
--------------------------------------------------------------------
ComputerSystem - 05_activate_defined_start.py: PASS
--------------------------------------------------------------------
ComputerSystem - 06_paused_active_suspend.py: PASS
--------------------------------------------------------------------
ComputerSystem - 22_define_suspend.py: PASS
--------------------------------------------------------------------
ComputerSystem - 23_pause_pause.py: PASS
--------------------------------------------------------------------
ComputerSystem - 27_define_pause_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 32_start_reboot.py: PASS
--------------------------------------------------------------------
ComputerSystem - 33_suspend_reboot.py: XFAIL
ERROR - Got CIM error State not supported with return code 7
ERROR - Exception: Unable Suspend dom 'test_domain'
InvokeMethod(RequestStateChange): State not supported
Bug:<00012>
--------------------------------------------------------------------
ComputerSystem - 35_start_reset.py: PASS
--------------------------------------------------------------------
ComputerSystem - 40_RSC_start.py: PASS
--------------------------------------------------------------------
ComputerSystem - 41_cs_to_settingdefinestate.py: PASS
--------------------------------------------------------------------
ComputerSystem - 42_cs_gi_errs.py: FAIL
ERROR - Unexpected errno 6, desc Referenced domain `invalid_name' does not exist: Domain not found: no domain with matching name 'invalid_name'
ERROR - Expected No such instance (invalid_name) 6
ERROR - ------ FAILED: invalid_name ------
--------------------------------------------------------------------
ComputerSystemIndication - 01_created_indication.py: FAIL
ERROR - Waited too long for start indication
ERROR - Waited too long for destroy indication
--------------------------------------------------------------------
ElementAllocatedFromPool - 01_forward.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 03_reverse_errs.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 04_forward_errs.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 01_forward.py: FAIL
ERROR - 'KVM_ElementCapabilities' association classname error
--------------------------------------------------------------------
ElementCapabilities - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 03_forward_errs.py: FAIL
ERROR - Unexpected rc code 6 and description Referenced domain `wrong' does not exist: Domain not found: no domain with matching name 'wrong'
--------------------------------------------------------------------
ElementCapabilities - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 05_hostsystem_cap.py: PASS
--------------------------------------------------------------------
ElementConforms - 01_forward.py: FAIL
ERROR - verify_fields() exception: u'KVM_ConsoleRedirectionService'
ERROR - Exception: Failed to verify instance
--------------------------------------------------------------------
ElementConforms - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementConforms - 03_ectp_fwd_errs.py: PASS
--------------------------------------------------------------------
ElementConforms - 04_ectp_rev_errs.py: FAIL
ERROR - Unexpected rc code 6 and description Referenced domain `INVALID_Name_Keyvalue' does not exist: Domain not found: no domain with matching name 'INVALID_Name_Keyvalue'
ERROR - ------ FAILED: INVALID_Name_Keyvalue------
--------------------------------------------------------------------
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
--------------------------------------------------------------------
HostSystem - 01_enum.py: PASS
--------------------------------------------------------------------
HostSystem - 02_hostsystem_to_rasd.py: PASS
--------------------------------------------------------------------
HostSystem - 03_hs_to_settdefcap.py: FAIL
ERROR - 'KVM_SettingsDefineCapabilities' returned 8 RASD objects instead of 4
--------------------------------------------------------------------
HostSystem - 04_hs_to_EAPF.py: PASS
--------------------------------------------------------------------
HostSystem - 05_hs_gi_errs.py: SKIP
--------------------------------------------------------------------
HostSystem - 06_hs_to_vsms.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: PASS
--------------------------------------------------------------------
HostedDependency - 04_reverse_errs.py: FAIL
ERROR - Unexpected rc code 6 and description No such instance (Name)
ERROR - --- FAILED: Invalid Name Key Name---
ERROR - Exception: KVMXML instance has no attribute 'cim_undefine'
ERROR - Got CIM error Referenced domain `hd_domain1' does not exist: Domain not found: no domain with matching name 'hd_domain1' with return code 6
ERROR - AttributeError : KVMXML instance has no attribute 'cim_undefine'
Traceback (most recent call last):
File "./lib/XenKvmLib/const.py", line 139, in do_try
File "04_reverse_errs.py", line 126, in main
acn, msg, field, expr_values)
File "04_reverse_errs.py", line 79, in verify_err_fields
cxml.cim_undefine(server)
AttributeError: KVMXML instance has no attribute 'cim_undefine'
ERROR - None
InvokeMethod(DestroySystem): Referenced domain `hd_domain1' does not exist: Domain not found: no domain with matching name 'hd_domain1'
--------------------------------------------------------------------
HostedResourcePool - 01_forward.py: PASS
--------------------------------------------------------------------
HostedResourcePool - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedResourcePool - 03_forward_errs.py: FAIL
ERROR - Unexpected rc code 6 and description No such instance (CreationClassName)
ERROR - ------FAILED: Invalid CreationClassName Key Value.------
--------------------------------------------------------------------
HostedResourcePool - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
HostedService - 01_forward.py: PASS
--------------------------------------------------------------------
HostedService - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedService - 03_forward_errs.py: FAIL
ERROR - Unexpected rc code 6 and description No such instance (Name)
ERROR - ------ FAILED: Invalid Name Key Name.------
--------------------------------------------------------------------
HostedService - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP
--------------------------------------------------------------------
LogicalDisk - 01_disk.py: PASS
--------------------------------------------------------------------
LogicalDisk - 02_nodevs.py: SKIP
ERROR - System has defined domains; unable to run
--------------------------------------------------------------------
LogicalDisk - 03_ld_gi_errs.py: PASS
--------------------------------------------------------------------
Memory - 01_memory.py: PASS
--------------------------------------------------------------------
Memory - 02_defgetmem.py: PASS
--------------------------------------------------------------------
Memory - 03_mem_gi_errs.py: PASS
--------------------------------------------------------------------
NetworkPort - 01_netport.py: PASS
--------------------------------------------------------------------
NetworkPort - 02_np_gi_errors.py: PASS
--------------------------------------------------------------------
NetworkPort - 03_user_netport.py: PASS
--------------------------------------------------------------------
Processor - 01_processor.py: PASS
--------------------------------------------------------------------
Processor - 02_definesys_get_procs.py: PASS
--------------------------------------------------------------------
Processor - 03_proc_gi_errs.py: PASS
--------------------------------------------------------------------
Profile - 01_enum.py: PASS
--------------------------------------------------------------------
Profile - 02_profile_to_elec.py: PASS
--------------------------------------------------------------------
Profile - 03_rprofile_gi_errs.py: PASS
--------------------------------------------------------------------
RASD - 01_verify_rasd_fields.py: PASS
--------------------------------------------------------------------
RASD - 02_enum.py: PASS
--------------------------------------------------------------------
RASD - 03_rasd_errs.py: PASS
--------------------------------------------------------------------
RASD - 04_disk_rasd_size.py: PASS
--------------------------------------------------------------------
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
ERROR - NetworkPool template RASDs not supported. Supported in version 867.
--------------------------------------------------------------------
RASD - 07_parent_disk_pool.py: SKIP
07_parent_disk_pool.py:47: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - DiskPool template RASDs not supported. Supported in version 863.
--------------------------------------------------------------------
RedirectionService - 01_enum_crs.py: SKIP
01_enum_crs.py:29: DeprecationWarning: the sets module is deprecated
from sets import Set
--------------------------------------------------------------------
RedirectionService - 02_enum_crscap.py: SKIP
--------------------------------------------------------------------
RedirectionService - 03_RedirectionSAP_errs.py: SKIP
--------------------------------------------------------------------
ReferencedProfile - 01_verify_refprof.py: PASS
--------------------------------------------------------------------
ReferencedProfile - 02_refprofile_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 01_forward.py: FAIL
ERROR - 6 RASD insts != 4 pool insts
--------------------------------------------------------------------
ResourceAllocationFromPool - 02_reverse.py: FAIL
ERROR - 6 RASD insts != 4 pool insts
--------------------------------------------------------------------
ResourceAllocationFromPool - 03_forward_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 05_RAPF_err.py: PASS
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: FAIL
ERROR - Unexpected rc code 4 and description One or more parameter values passed to the method were invalid
ERROR - Error in networkpool creation
InvokeMethod(CreateChildResourcePool): One or more parameter values passed to the method were invalid
--------------------------------------------------------------------
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: FAIL
ERROR - Unexpected rc code 4 and description One or more parameter values passed to the method were invalid
InvokeMethod(DeleteResourcePool): One or more parameter values passed to the method were invalid
--------------------------------------------------------------------
ServiceAccessBySAP - 01_forward.py: SKIP
--------------------------------------------------------------------
ServiceAccessBySAP - 02_reverse.py: SKIP
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
SettingsDefine - 01_forward.py: FAIL
ERROR - 4 device insts != 6 RASD insts
--------------------------------------------------------------------
SettingsDefine - 02_reverse.py: FAIL
ERROR - u'KVM_DisplayController'
--------------------------------------------------------------------
SettingsDefine - 03_sds_fwd_errs.py: PASS
--------------------------------------------------------------------
SettingsDefine - 04_sds_rev_errs.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 01_forward.py: FAIL
ERROR - KVM_SettingsDefineCapabilities returned 60 ResourcePool objects instead of 4
--------------------------------------------------------------------
SettingsDefineCapabilities - 03_forward_errs.py: FAIL
ERROR - Unexpected rc code 6 and description No such instance (INVALID_InstID_KeyValue) - resource pool type mismatch
ERROR - ------ FAILED: Invalid InstanceID Key Value.------
--------------------------------------------------------------------
SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS
--------------------------------------------------------------------
SystemDevice - 01_forward.py: FAIL
01_forward.py:29: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - Device Class mismatch
ERROR - Exception Expected Device class list: ['KVM_LogicalDisk', 'KVM_Memory', 'KVM_NetworkPort', 'KVM_Processor']
Got: [u'KVM_DisplayController', u'KVM_LogicalDisk', u'KVM_Memory', u'KVM_NetworkPort', u'KVM_PointingDevice', u'KVM_Processor']
--------------------------------------------------------------------
SystemDevice - 02_reverse.py: PASS
--------------------------------------------------------------------
SystemDevice - 03_fwderrs.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
--------------------------------------------------------------------
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: FAIL
ERROR - Got error no 6, but expected no 1
ERROR - Got error desc: Unable to retrieve domain name: Error 0, but expected desc: Unable to retrieve domain name.
ERROR - Got error no 6, but expected no 1
ERROR - Got error desc: Referenced domain `##@@!!cimtest_domain' does not exist: Domain not found: no domain with matching name '##@@!!cimtest_domain', but expected desc: Failed to find domain
InvokeMethod(DestroySystem): Unable to retrieve domain name: Error 0
InvokeMethod(DestroySystem): Referenced domain `##@@!!cimtest_domain' does not exist: Domain not found: no domain with matching name '##@@!!cimtest_domain'
--------------------------------------------------------------------
VirtualSystemManagementService - 06_addresource.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 07_addresource_neg.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 08_modifyresource.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 09_procrasd_persist.py: XFAIL
--------------------------------------------------------------------
VirtualSystemManagementService - 10_hv_version.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 11_define_memrasdunits.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 12_referenced_config.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 14_define_sys_disk.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 15_mod_system_settings.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 16_removeresource.py: XFAIL
ERROR - 0 RASD insts for domain/mouse:ps2
No such instance (no device domain/mouse:ps2)
Bug:<00014>
--------------------------------------------------------------------
VirtualSystemManagementService - 17_removeresource_neg.py: PASS
--------------------------------------------------------------------
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 - Exception: (1, u'*** Provider Virt_VirtualSystemSnapshotService(18530) exiting due to a SIGSEGV signal ')
ERROR - Failed to remove snapshot file for snapshot_vm
InvokeMethod(CreateSnapshot): *** Provider Virt_VirtualSystemSnapshotService(18530) exiting due to a SIGSEGV signal
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS
--------------------------------------------------------------------
--
Thanks and Regards,
Deepti B. Kalakeri
IBM Linux Technology Center
deeptik(a)linux.vnet.ibm.com
15 years, 3 months
[PATCH 0 of 4] Adding tc to verify creation/deletion of DiskPool.
by Deepti B. Kalakeri
The patchset includes new tc to cover the creation and deletion of DiskPool.
It also includes the changes to RPCS/04_CreateChildResourcePool.py and RPCS/07_DeleteChildResourcePool.py to align
with the create_pool() and verify_pool() changes.
This test case should be applied on top of
"(#2) Return SKIP if the provide version doesn't support template pool RASDs"
Tested with KVM on F10 with current sources.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
15 years, 3 months
Test Run Summary (May 28 2009): KVM on Fedora release 10.90 (Rawhide) with Pegasus
by Kaitlin Rupert
=================================================
Test Run Summary (May 28 2009): KVM on Fedora release 10.90 (Rawhide)
with Pegasus
=================================================
Distro: Fedora release 10.90 (Rawhide)
Kernel: 2.6.29-0.24.rc0.git13.fc11.x86_64
libvirt: 0.6.3
Hypervisor: QEMU 0.10.1
CIMOM: Pegasus 2.7.2
Libvirt-cim revision: 886
Libvirt-cim changeset: c127bb551eb8
Cimtest revision: 693
Cimtest changeset: 6d369846b8ec
=================================================
FAIL : 7
XFAIL : 3
SKIP : 9
PASS : 137
-----------------
Total : 156
=================================================
FAIL Test Summary:
ComputerSystemIndication - 01_created_indication.py: FAIL
HostSystem - 03_hs_to_settdefcap.py: FAIL
RASD - 05_disk_rasd_emu_type.py: FAIL
RASD - 07_parent_disk_pool.py: FAIL
RedirectionService - 01_enum_crs.py: FAIL
SettingsDefineCapabilities - 01_forward.py: FAIL
SystemDevice - 01_forward.py: FAIL
=================================================
XFAIL Test Summary:
ComputerSystem - 33_suspend_reboot.py: XFAIL
VirtualSystemManagementService - 09_procrasd_persist.py: XFAIL
VirtualSystemManagementService - 16_removeresource.py: XFAIL
=================================================
SKIP Test Summary:
ComputerSystem - 02_nosystems.py: SKIP
LogicalDisk - 02_nodevs.py: SKIP
VSSD - 02_bootldr.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
=================================================
Full report:
--------------------------------------------------------------------
AllocationCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
AllocationCapabilities - 02_alloccap_gi_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 01_enum.py: PASS
--------------------------------------------------------------------
ComputerSystem - 02_nosystems.py: SKIP
ERROR - System has defined domains; unable to run
--------------------------------------------------------------------
ComputerSystem - 03_defineVS.py: PASS
--------------------------------------------------------------------
ComputerSystem - 04_defineStartVS.py: PASS
--------------------------------------------------------------------
ComputerSystem - 05_activate_defined_start.py: PASS
--------------------------------------------------------------------
ComputerSystem - 06_paused_active_suspend.py: PASS
--------------------------------------------------------------------
ComputerSystem - 22_define_suspend.py: PASS
--------------------------------------------------------------------
ComputerSystem - 23_pause_pause.py: PASS
--------------------------------------------------------------------
ComputerSystem - 27_define_pause_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 32_start_reboot.py: PASS
--------------------------------------------------------------------
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 - 35_start_reset.py: PASS
--------------------------------------------------------------------
ComputerSystem - 40_RSC_start.py: PASS
--------------------------------------------------------------------
ComputerSystem - 41_cs_to_settingdefinestate.py: PASS
--------------------------------------------------------------------
ComputerSystem - 42_cs_gi_errs.py: PASS
--------------------------------------------------------------------
ComputerSystemIndication - 01_created_indication.py: FAIL
ERROR - Waited too long for define indication
ERROR - Waited too long for start indication
ERROR - Waited too long for destroy indication
--------------------------------------------------------------------
ElementAllocatedFromPool - 01_forward.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 03_reverse_errs.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 04_forward_errs.py: PASS
--------------------------------------------------------------------
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
--------------------------------------------------------------------
HostSystem - 01_enum.py: PASS
--------------------------------------------------------------------
HostSystem - 02_hostsystem_to_rasd.py: PASS
--------------------------------------------------------------------
HostSystem - 03_hs_to_settdefcap.py: FAIL
ERROR - 'KVM_SettingsDefineCapabilities' returned 8 RASD objects
instead of 4
CIM_ERR_INVALID_CLASS: Linux_ComputerSystem
--------------------------------------------------------------------
HostSystem - 04_hs_to_EAPF.py: PASS
--------------------------------------------------------------------
HostSystem - 05_hs_gi_errs.py: PASS
--------------------------------------------------------------------
HostSystem - 06_hs_to_vsms.py: PASS
--------------------------------------------------------------------
HostedAccessPoint - 01_forward.py: PASS
--------------------------------------------------------------------
HostedAccessPoint - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedDependency - 01_forward.py: PASS
--------------------------------------------------------------------
HostedDependency - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedDependency - 03_enabledstate.py: PASS
--------------------------------------------------------------------
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
--------------------------------------------------------------------
KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS
--------------------------------------------------------------------
LogicalDisk - 01_disk.py: PASS
--------------------------------------------------------------------
LogicalDisk - 02_nodevs.py: SKIP
ERROR - System has defined domains; unable to run
--------------------------------------------------------------------
LogicalDisk - 03_ld_gi_errs.py: PASS
--------------------------------------------------------------------
Memory - 01_memory.py: PASS
--------------------------------------------------------------------
Memory - 02_defgetmem.py: PASS
--------------------------------------------------------------------
Memory - 03_mem_gi_errs.py: PASS
--------------------------------------------------------------------
NetworkPort - 01_netport.py: PASS
--------------------------------------------------------------------
NetworkPort - 02_np_gi_errors.py: PASS
--------------------------------------------------------------------
NetworkPort - 03_user_netport.py: PASS
--------------------------------------------------------------------
Processor - 01_processor.py: PASS
--------------------------------------------------------------------
Processor - 02_definesys_get_procs.py: PASS
--------------------------------------------------------------------
Processor - 03_proc_gi_errs.py: PASS
--------------------------------------------------------------------
Profile - 01_enum.py: PASS
--------------------------------------------------------------------
Profile - 02_profile_to_elec.py: PASS
--------------------------------------------------------------------
Profile - 03_rprofile_gi_errs.py: PASS
--------------------------------------------------------------------
RASD - 01_verify_rasd_fields.py: PASS
--------------------------------------------------------------------
RASD - 02_enum.py: PASS
--------------------------------------------------------------------
RASD - 03_rasd_errs.py: PASS
--------------------------------------------------------------------
RASD - 04_disk_rasd_size.py: PASS
--------------------------------------------------------------------
RASD - 05_disk_rasd_emu_type.py: FAIL
ERROR - Exception: EmulatedType Mismatch: got 0,expected 1
--------------------------------------------------------------------
RASD - 06_parent_net_pool.py: PASS
--------------------------------------------------------------------
RASD - 07_parent_disk_pool.py: FAIL
07_parent_disk_pool.py:47: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - Exception details: Got 5 recs instead of 3
--------------------------------------------------------------------
RedirectionService - 01_enum_crs.py: FAIL
01_enum_crs.py:29: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - TypeError : __call__() takes exactly 1 argument (2 given)
Traceback (most recent call last):
File "./lib/XenKvmLib/const.py", line 139, in do_try
File "01_enum_crs.py", line 108, in main
if res_val != exp_val:
TypeError: __call__() takes exactly 1 argument (2 given)
ERROR - None
CIM_ERR_INVALID_CLASS: Linux_ComputerSystem
--------------------------------------------------------------------
RedirectionService - 02_enum_crscap.py: PASS
--------------------------------------------------------------------
RedirectionService - 03_RedirectionSAP_errs.py: PASS
--------------------------------------------------------------------
ReferencedProfile - 01_verify_refprof.py: PASS
--------------------------------------------------------------------
ReferencedProfile - 02_refprofile_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 01_forward.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 02_reverse.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 03_forward_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 05_RAPF_err.py: PASS
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService -
06_RemoveResourcesFromResourcePool.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS
--------------------------------------------------------------------
ServiceAccessBySAP - 01_forward.py: PASS
--------------------------------------------------------------------
ServiceAccessBySAP - 02_reverse.py: PASS
--------------------------------------------------------------------
ServiceAffectsElement - 01_forward.py: PASS
--------------------------------------------------------------------
ServiceAffectsElement - 02_reverse.py: PASS
--------------------------------------------------------------------
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: FAIL
ERROR - KVM_SettingsDefineCapabilities returned 8 ResourcePool objects
instead of 4
--------------------------------------------------------------------
SettingsDefineCapabilities - 03_forward_errs.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS
--------------------------------------------------------------------
SystemDevice - 01_forward.py: FAIL
01_forward.py:29: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - DeviceID mismatch
ERROR - Exception Expected DeviceID: ['test_domain/0', 'test_domain/1',
'test_domain/2']
Got: [u'test_domain/0']
--------------------------------------------------------------------
SystemDevice - 02_reverse.py: PASS
--------------------------------------------------------------------
SystemDevice - 03_fwderrs.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
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 07_addresource_neg.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 08_modifyresource.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 09_procrasd_persist.py: XFAIL
--------------------------------------------------------------------
VirtualSystemManagementService - 10_hv_version.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 11_define_memrasdunits.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 12_referenced_config.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 14_define_sys_disk.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 15_mod_system_settings.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 16_removeresource.py: XFAIL
ERROR - 0 RASD insts for domain/mouse:ps2
CIM_ERR_NOT_FOUND: No such instance (no device domain/mouse:ps2)
Bug:<00014>
--------------------------------------------------------------------
VirtualSystemManagementService - 17_removeresource_neg.py: PASS
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py:
PASS
--------------------------------------------------------------------
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com
15 years, 3 months
[PATCH] [TEST] Add new tc to verify dir type diskpool creations using CreateChildResourcePool()
by Deepti B. Kalakeri
# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1243340705 25200
# Node ID 7329a4c6f1884c4be3e3f042a704f56410bea3fa
# Parent b417a41ea09985ad7aaabc642496c86e25c5d404
[TEST] Add new tc to verify dir type diskpool creations using CreateChildResourcePool().
This test case should be applied on top of
"(#2) Return SKIP if the provider version doesn't support template pool RASDs"
Tested with KVM on F10 with current sources.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r b417a41ea099 -r 7329a4c6f188 suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/08_CreateDiskResourcePool.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/08_CreateDiskResourcePool.py Tue May 26 05:25:05 2009 -0700
@@ -0,0 +1,102 @@
+#!/usr/bin/python
+#
+# Copyright 2009 IBM Corp.
+#
+# Authors:
+# Deepti B. Kalakeri<dkalaker(a)in.ibm.com>
+#
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# This test case should test the CreateChildResourcePool service
+# supplied by the RPCS provider.
+# Input
+# -----
+# IN -- ElementName -- String -- The desired name of the resource pool
+# IN -- Settings -- String -- A string representation of a
+# CIM_ResourceAllocationSettingData
+# instance that represents the allocation
+# assigned to this child pool
+# IN -- ParentPool -- CIM_ResourcePool REF -- The parent pool from which
+# to create this pool
+#
+# Output
+# ------
+# OUT -- Pool -- CIM_ResourcePool REF -- The resulting resource pool
+# OUT -- Job -- CIM_ConcreteJob REF -- Returned job if started
+# OUT -- Error -- String -- Encoded error instance if the operation
+# failed and did not return a job
+#
+# Exception details before Revision 846
+# -----
+# Error code: CIM_ERR_NOT_SUPPORTED
+#
+# After revision 846, the service is implemented
+#
+# -Date: 26.05.2009
+
+import sys
+from CimTest.Globals import logger
+from CimTest.ReturnCodes import FAIL, PASS
+from XenKvmLib.const import do_main, platform_sup
+from XenKvmLib.classes import get_typed_class
+from XenKvmLib.common_util import destroy_diskpool
+from XenKvmLib.pool import create_pool, verify_pool, undefine_diskpool
+
+test_pool = "diskpool"
+dp_types = { "DISK_POOL_DIR" : 1 }
+
+
+@do_main(platform_sup)
+def main():
+ options = main.options
+ server = options.ip
+ virt = options.virt
+ pool_attr = { "Path" : "/tmp" }
+
+ # For now the test case support only the creation of
+ # dir type disk pool, later change to fs and netfs etc
+ for key, value in dp_types.iteritems():
+ status = create_pool(server, virt, test_pool, pool_attr,
+ mode_type=value, pool_type= "DiskPool")
+ if status != PASS:
+ logger.error("Failed to create '%s' type diskpool '%s'",
+ key, test_pool)
+ return FAIL
+
+ status = verify_pool(server, virt, test_pool, pool_attr,
+ mode_type=value, pool_type="DiskPool")
+ if status != PASS:
+ logger.error("Error in diskpool verification")
+ destroy_diskpool(server, virt, test_pool)
+ undefine_diskpool(server, virt, test_pool)
+ return FAIL
+
+ status = destroy_diskpool(server, virt, test_pool)
+ if status != PASS:
+ logger.error("Unable to destroy diskpool '%s'", test_pool)
+ return FAIL
+
+ status = undefine_diskpool(server, virt, test_pool)
+ if status != PASS:
+ logger.error("Unable to undefine diskpool '%s'", test_pool)
+ return FAIL
+
+ status = PASS
+
+ return status
+
+if __name__ == "__main__":
+ sys.exit(main())
diff -r b417a41ea099 -r 7329a4c6f188 suites/libvirt-cim/lib/XenKvmLib/pool.py
--- a/suites/libvirt-cim/lib/XenKvmLib/pool.py Tue May 26 00:10:35 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/pool.py Tue May 26 05:25:05 2009 -0700
@@ -230,7 +230,7 @@
break
pool_settings = inst_to_mof(n_d_pool_rasds[i])
-
+
try:
rpcs_conn.CreateChildResourcePool(ElementName=test_pool,
Settings=[pool_settings])
15 years, 3 months
[PATCH] [TEST] Modifying the RASD/07_parent_disk_pool.py to verify when PoolRASD support
by Deepti B. Kalakeri
# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1242981668 25200
# Node ID a8ad5184432bbbbefa3e17802d334fe465f13140
# Parent 80d1092c225b8f04502c61986e7f81b683bef98b
[TEST] Modifying the RASD/07_parent_disk_pool.py to verify when PoolRASD support.
This patch is dependent on "(#2) Return SKIP if the provider version doesn't support template pool RASDs"
Tested with KVM on F10 with current sources.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 80d1092c225b -r a8ad5184432b suites/libvirt-cim/cimtest/RASD/07_parent_disk_pool.py
--- a/suites/libvirt-cim/cimtest/RASD/07_parent_disk_pool.py Fri May 22 01:36:16 2009 -0700
+++ b/suites/libvirt-cim/cimtest/RASD/07_parent_disk_pool.py Fri May 22 01:41:08 2009 -0700
@@ -65,8 +65,10 @@
options = main.options
virt = options.virt
server = options.ip
- diskpool_rasd = get_pool_rasds(server, virt, pool_type="DiskPool",
- filter_default=False)
+ status, diskpool_rasd = get_pool_rasds(server, virt, pool_type="DiskPool",
+ filter_default=False)
+ if status != PASS:
+ return status
inst_list = [ 'Default', 'Minimum', 'Maximum', 'Increment' ]
n_rec_val = { 'ResourceType' : 17,
'PoolID' : "DiskPool/0",
15 years, 3 months
[PATCH] [TEST] (#2) Return SKIP if the provider version doesn't support template pool RASDs
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1242937450 25200
# Node ID 5417439be71f3f502576ee4db92764708c370874
# Parent e5fd77170913c3819d667e240c9873efa3bf0d07
[TEST] (#2) Return SKIP if the provider version doesn't support template pool RASDs
Changes:
-Rebase on updated tree.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r e5fd77170913 -r 5417439be71f suites/libvirt-cim/cimtest/RASD/06_parent_net_pool.py
--- a/suites/libvirt-cim/cimtest/RASD/06_parent_net_pool.py Thu May 21 04:21:15 2009 -0700
+++ b/suites/libvirt-cim/cimtest/RASD/06_parent_net_pool.py Thu May 21 13:24:10 2009 -0700
@@ -67,7 +67,11 @@
options = main.options
virt = options.virt
server = options.ip
- netpool_rasd = get_pool_rasds(server, virt, filter_default=False)
+
+ status, netpool_rasd = get_pool_rasds(server, virt, filter_default=False)
+ if status != PASS:
+ return status
+
inst_list = [ 'Default', 'Minimum', 'Maximum', 'Increment' ]
n_rec_val = { 'ResourceType' : 10,
'PoolID' : "NetworkPool/0",
diff -r e5fd77170913 -r 5417439be71f suites/libvirt-cim/lib/XenKvmLib/pool.py
--- a/suites/libvirt-cim/lib/XenKvmLib/pool.py Thu May 21 04:21:15 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/pool.py Thu May 21 13:24:10 2009 -0700
@@ -22,7 +22,7 @@
import sys
from CimTest.Globals import logger, CIM_NS
-from CimTest.ReturnCodes import PASS, FAIL
+from CimTest.ReturnCodes import PASS, FAIL, SKIP
from XenKvmLib.classes import get_typed_class, inst_to_mof
from XenKvmLib.const import get_provider_version, default_pool_name
from XenKvmLib.enumclass import EnumInstances, GetInstance
@@ -108,6 +108,22 @@
def get_pool_rasds(server, virt,
pool_type="NetworkPool", filter_default=True):
+
+ net_pool_rasd_rev = 867
+ disk_pool_rasd_rev = 863
+
+ try:
+ rev, changeset = get_provider_version(virt, server)
+ if pool_type == "NetworkPool" and rev < net_pool_rasd_rev:
+ raise Exception("Supported in version %d" % net_pool_rasd_rev)
+
+ if pool_type == "DiskPool" and rev < disk_pool_rasd_rev:
+ raise Exception("Supported in version %d" % disk_pool_rasd_rev)
+
+ except Exception, detail:
+ logger.error("%s template RASDs not supported. %s.", pool_type, detail)
+ return SKIP, None
+
net_pool_rasds = []
ac_cn = get_typed_class(virt, "AllocationCapabilities")
@@ -119,16 +135,16 @@
rasd = Associators(server, an_cn, ac_cn, InstanceID=inst.InstanceID)
except Exception, detail:
logger.error("Exception: %s", detail)
- return None
+ return FAIL, None
if filter_default == True:
for item in rasd:
if item['InstanceID'] == "Default":
net_pool_rasds.append(item)
else:
- return rasd
+ return PASS, rasd
- return net_pool_rasds
+ return PASS, net_pool_rasds
def net_undefine(network, server, virt="Xen"):
"""Function undefine a given virtual network"""
@@ -177,8 +193,8 @@
logger.error("IP address is in use by a different network")
return FAIL
- net_pool_rasds = get_pool_rasds(server, virt)
- if len(net_pool_rasds) == 0:
+ status, net_pool_rasds = get_pool_rasds(server, virt)
+ if len(net_pool_rasds) == 0 or status != PASS:
logger.error("We can not get NetPoolRASDs")
return FAIL
else:
15 years, 3 months
[PATCH] [TEST] #2 Adding new tc to verify the template RASDs for parent DiskPoolRASD
by Deepti B. Kalakeri
# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1242974489 25200
# Node ID c2fb325da0413f33ea9b893f29ace6caed8a24b1
# Parent e5fd77170913c3819d667e240c9873efa3bf0d07
[TEST] #2 Adding new tc to verify the template RASDs for parent DiskPoolRASD
Tested with KVM on F10 with current sources.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r e5fd77170913 -r c2fb325da041 suites/libvirt-cim/cimtest/RASD/07_parent_disk_pool.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/suites/libvirt-cim/cimtest/RASD/07_parent_disk_pool.py Thu May 21 23:41:29 2009 -0700
@@ -0,0 +1,114 @@
+#!/usr/bin/python
+#
+# Copyright 2009 IBM Corp.
+#
+# Authors:
+# Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+# This test case is used to verify the Parent DiskPoolRASD properties
+# in detail using the SettingsDefineCapabilities association.
+#
+# Ex:
+# Command:
+# wbemcli ai -ac SettingsDefineCapabilities \
+# 'http://localhost:5988/root/virt:KVM_AllocationCapabilties.InstanceID=\
+# "DiskPool/0"'
+#
+# Output:
+# localhost/root/virt:KVM_DiskPoolResourceAllocationSettingData.\
+# InstanceID="Increment"
+# -InstanceID="Default" [ verified for Minimum, Maximum, Increment as well ]
+# -ResourceType=17
+# -PoolID="DiskPool/0"
+# -Type=3 [ For Type 1 and 2 as well ]
+# -Path="/dev/null"
+# -DevicePath=
+# -Host="host_sys.domain.com"
+# -SourceDirectory="/var/lib/images"
+#
+# Date : 21-05-2009
+
+import sys
+from sets import Set
+from CimTest.Globals import logger
+from XenKvmLib.const import do_main
+from CimTest.ReturnCodes import PASS, FAIL
+from XenKvmLib.pool import get_pool_rasds
+
+sup_types = ['KVM', 'Xen', 'XenFV']
+DISKPOOL_REC_LEN = 3
+
+def get_rec(diskpool_rasd, inst_id='Default'):
+ recs = []
+ for dp_rasd in diskpool_rasd:
+ if dp_rasd['InstanceID'] == inst_id :
+ recs.append(dp_rasd)
+ return recs
+
+@do_main(sup_types)
+def main():
+ options = main.options
+ virt = options.virt
+ server = options.ip
+ diskpool_rasd = get_pool_rasds(server, virt, pool_type="DiskPool",
+ filter_default=False)
+ inst_list = [ 'Default', 'Minimum', 'Maximum', 'Increment' ]
+ n_rec_val = { 'ResourceType' : 17,
+ 'PoolID' : "DiskPool/0",
+ 'Path' : "/dev/null",
+ }
+ exp_type_path_host_dir = [('1', 'None', 'None', 'None'),
+ ('2', '/dev/sda100', 'None', 'None'),
+ ('3', 'None', 'host_sys.domain.com',
+ '/var/lib/images')]
+
+
+ for inst_type in inst_list:
+ logger.info("Verifying '%s' records", inst_type)
+
+ try:
+ n_rec = get_rec(diskpool_rasd, inst_id=inst_type)
+ if len(n_rec) != DISKPOOL_REC_LEN:
+ raise Exception("Got %s recs instead of %s" %(len(n_rec),
+ DISKPOOL_REC_LEN))
+
+ res_type_path_host_dir = []
+ for rec in n_rec:
+ l = (str(rec['Type']), str(rec['DevicePath']),
+ str(rec['Host']), str(rec['SourceDirectory']))
+ res_type_path_host_dir.append(l)
+
+ if len(Set(exp_type_path_host_dir) & Set(res_type_path_host_dir)) \
+ != DISKPOOL_REC_LEN :
+ raise Exception("Mismatching values, \nGot %s,\nExpected %s"\
+ %(exp_type_path_host_dir,
+ res_type_path_host_dir))
+
+ for key in n_rec_val.keys():
+ for rec in n_rec:
+ if n_rec_val[key] != rec[key]:
+ raise Exception("'%s' Mismatch, Got %s, Expected %s" \
+ % (key, rec[key], n_rec_val[key]))
+
+ except Exception, details:
+ logger.error("Exception details: %s", details)
+ return FAIL
+
+ return PASS
+if __name__ == "__main__":
+ sys.exit(main())
15 years, 3 months
[PATCH] [TEST] Adding new tc to verify the template RASDs for parent DiskPoolRASD
by Deepti B. Kalakeri
# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1242904299 25200
# Node ID b88e452523d773787c9ea2e4b46505fd9df5ba76
# Parent 835ba5d083c620046dc16c29e1bf44932af759a7
[TEST] Adding new tc to verify the template RASDs for parent DiskPoolRASD
Tested with KVM on F10 with current sources.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 835ba5d083c6 -r b88e452523d7 suites/libvirt-cim/cimtest/RASD/07_parent_disk_pool.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/suites/libvirt-cim/cimtest/RASD/07_parent_disk_pool.py Thu May 21 04:11:39 2009 -0700
@@ -0,0 +1,112 @@
+#!/usr/bin/python
+#
+# Copyright 2009 IBM Corp.
+#
+# Authors:
+# Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+# This test case is used to verify the Parent DiskPoolRASD properties
+# in detail using the SettingsDefineCapabilities association.
+#
+# Ex:
+# Command:
+# wbemcli ai -ac SettingsDefineCapabilities \
+# 'http://localhost:5988/root/virt:KVM_AllocationCapabilties.InstanceID=\
+# "DiskPool/0"'
+#
+# Output:
+# localhost/root/virt:KVM_DiskPoolResourceAllocationSettingData.InstanceID="Increment"
+# -InstanceID="Default" [ verified for Minimum, Maximum, Increment as well ]
+# -ResourceType=17
+# -PoolID="DiskPool/0"
+# -Type=3 [ For Type 1 and 2 as well ]
+# -Path="/dev/null"
+# -DevicePath=
+# -Host="host_sys.domain.com"
+# -SourceDirectory="/var/lib/images"
+#
+# Date : 21-05-2009
+
+import sys
+from sets import Set
+from CimTest.Globals import logger
+from XenKvmLib.const import do_main
+from CimTest.ReturnCodes import PASS, FAIL
+from XenKvmLib.pool import get_pool_rasds
+
+sup_types = ['KVM', 'Xen', 'XenFV']
+
+def get_rec(netpool_rasd, inst_id='Default'):
+ recs = []
+ for np_rasd in netpool_rasd:
+ if np_rasd['InstanceID'] == inst_id :
+ recs.append(np_rasd)
+ return recs
+
+@do_main(sup_types)
+def main():
+ options = main.options
+ virt = options.virt
+ server = options.ip
+ status = FAIL
+ netpool_rasd = get_pool_rasds(server, virt, pool_type="DiskPool",
+ filter_default=False)
+ inst_list = [ 'Default', 'Minimum', 'Maximum', 'Increment' ]
+ n_rec_val = { 'ResourceType' : 17,
+ 'PoolID' : "DiskPool/0",
+ 'Path' : "/dev/null",
+ }
+ exp_type_path_host_dir = [('1', 'None', 'None', 'None'),
+ ('2', '/dev/sda100', 'None', 'None'),
+ ('3', 'None', 'host_sys.domain.com',
+ '/var/lib/images')]
+
+
+ for inst_type in inst_list:
+ logger.info("Verifying '%s' records", inst_type)
+
+ try:
+ n_rec = get_rec(netpool_rasd, inst_id=inst_type)
+ if len(n_rec) != 3:
+ raise Exception("Got %s recs instead of 3" %(len(n_rec)))
+
+ res_type_path_host_dir = []
+ for rec in n_rec:
+ l = (str(rec['Type']), str(rec['DevicePath']),
+ str(rec['Host']), str(rec['SourceDirectory']))
+ res_type_path_host_dir.append(l)
+
+ if len(Set(exp_type_path_host_dir) & Set(res_type_path_host_dir)) != 3 :
+ raise Exception("Mismatching values, " \
+ "\nGot %s, \nExpected %s" \
+ %(exp_type_path_host_dir, \
+ res_type_path_host_dir))
+
+ for key in n_rec_val.keys():
+ for rec in n_rec:
+ if n_rec_val[key] != rec[key]:
+ raise Exception("'%s' Mismatch, Got %s, Expected %s" \
+ % (key, rec[key], n_rec_val[key]))
+
+ except Exception, details:
+ logger.error("Exception details: %s", details)
+ return FAIL
+
+ return PASS
+if __name__ == "__main__":
+ sys.exit(main())
15 years, 3 months
[PATCH] [TEST] Return SKIP if the provider version doesn't support template pool RASDs
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1242936560 25200
# Node ID 4467ea28368f7343c89990e7179170be34c08c6f
# Parent 835ba5d083c620046dc16c29e1bf44932af759a7
[TEST] Return SKIP if the provider version doesn't support template pool RASDs
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 835ba5d083c6 -r 4467ea28368f suites/libvirt-cim/cimtest/RASD/06_parent_net_pool.py
--- a/suites/libvirt-cim/cimtest/RASD/06_parent_net_pool.py Wed May 20 03:27:45 2009 -0700
+++ b/suites/libvirt-cim/cimtest/RASD/06_parent_net_pool.py Thu May 21 13:09:20 2009 -0700
@@ -68,7 +68,10 @@
virt = options.virt
server = options.ip
status = FAIL
- netpool_rasd = get_pool_rasds(server, virt, filter_default=False)
+ status, netpool_rasd = get_pool_rasds(server, virt, filter_default=False)
+ if status != PASS:
+ return status
+
inst_list = [ 'Default', 'Minimum', 'Maximum', 'Increment' ]
n_rec_val = { 'ResourceType' : 10,
'PoolID' : "NetworkPool/0",
diff -r 835ba5d083c6 -r 4467ea28368f suites/libvirt-cim/lib/XenKvmLib/pool.py
--- a/suites/libvirt-cim/lib/XenKvmLib/pool.py Wed May 20 03:27:45 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/pool.py Thu May 21 13:09:20 2009 -0700
@@ -22,7 +22,7 @@
import sys
from CimTest.Globals import logger, CIM_NS
-from CimTest.ReturnCodes import PASS, FAIL
+from CimTest.ReturnCodes import PASS, FAIL, SKIP
from XenKvmLib.classes import get_typed_class, inst_to_mof
from XenKvmLib.const import get_provider_version, default_pool_name
from XenKvmLib.enumclass import EnumInstances, GetInstance
@@ -108,6 +108,22 @@
def get_pool_rasds(server, virt,
pool_type="NetworkPool", filter_default=True):
+
+ net_pool_rasd_rev = 867
+ disk_pool_rasd_rev = 863
+
+ try:
+ rev, changeset = get_provider_version(virt, server)
+ if pool_type == "NetworkPool" and rev < net_pool_rasd_rev:
+ raise Exception("Supported in version %d" % net_pool_rasd_rev)
+
+ if pool_type == "DiskPool" and rev < disk_pool_rasd_rev:
+ raise Exception("Supported in version %d" % disk_pool_rasd_rev)
+
+ except Exception, detail:
+ logger.error("%s template RASDs not supported. %s.", pool_type, detail)
+ return SKIP, None
+
net_pool_rasds = []
ac_cn = get_typed_class(virt, "AllocationCapabilities")
@@ -119,16 +135,16 @@
rasd = Associators(server, an_cn, ac_cn, InstanceID=inst.InstanceID)
except Exception, detail:
logger.error("Exception: %s", detail)
- return None
+ return FAIL, None
if filter_default == True:
for item in rasd:
if item['InstanceID'] == "Default":
net_pool_rasds.append(item)
else:
- return rasd
+ return PASS, rasd
- return net_pool_rasds
+ return PASS, net_pool_rasds
def net_undefine(network, server, virt="Xen"):
"""Function undefine a given virtual network"""
@@ -177,8 +193,8 @@
logger.error("IP address is in use by a different network")
return FAIL
- net_pool_rasds = get_pool_rasds(server, virt)
- if len(net_pool_rasds) == 0:
+ status, net_pool_rasds = get_pool_rasds(server, virt)
+ if len(net_pool_rasds) == 0 or status != PASS:
logger.error("We can not get NetPoolRASDs")
return FAIL
else:
15 years, 3 months