[PATCH] [TEST] Update vsmigrations.py to call new EnumInstances
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1224468407 25200
# Node ID 98291a8279946f37be3e74f467e32c39e927bde7
# Parent a3d9c0a81c27471418993b7c8f907f0b95f79e63
[TEST] Update vsmigrations.py to call new EnumInstances
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r a3d9c0a81c27 -r 98291a827994 suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Wed Oct 15 19:13:10 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Sun Oct 19 19:06:47 2008 -0700
@@ -108,10 +108,7 @@ def get_migration_job_instance(ip, virt,
key_list = ["instanceid"]
mig_job_cn = get_typed_class(virt, 'MigrationJob')
try:
- job = enumclass.enumerate(ip,
- mig_job_cn,
- key_list,
- virt=virt)
+ job = enumclass.EnumInstances(ip, mig_job_cn)
except Exception, details:
logger.error(CIM_ERROR_ENUMERATE, mig_job_cn)
logger.error(details)
16 years, 2 months
KVM on Pegasus Test Run Summary for Oct 20 2008
by Deepti B Kalakeri
=================================================
KVM on Pegasus Test Run Summary for Oct 20 2008
=================================================
Distro: Fedora release 9.90.1 (Rawhide)
Kernel: 2.6.27-0.323.rc6.fc10.x86_64
libvirt: 0.4.6
Hypervisor: QEMU 0.9.1
CIMOM: Pegasus 2.7.1
Libvirt-cim revision: 720
Libvirt-cim changeset: 0f39ab1ee830
=================================================
FAIL : 0
XFAIL : 2
SKIP : 6
PASS : 128
-----------------
Total : 136
=================================================
XFAIL Test Summary:
ComputerSystem - 32_start_reboot.py: XFAIL
ComputerSystem - 33_suspend_reboot.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
=================================================
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_suspend_suspend.py: PASS
--------------------------------------------------------------------
ComputerSystem - 27_define_suspend_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 32_start_reboot.py: XFAIL
ERROR - Exception: (1, u'CIM_ERR_FAILED: Domain Operation Failed')
ERROR - Unable to 'Reboot' dom 'cs_test_domain' using RequestedStateChange()
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain Operation Failed
Bug:<00005>
--------------------------------------------------------------------
ComputerSystem - 33_suspend_reboot.py: XFAIL
ERROR - Exception: (1, u'CIM_ERR_FAILED: Domain Operation Failed')
ERROR - Unable to 'Reboot' dom 'test_domain' using RequestedStateChange()
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain Operation Failed
Bug:<00005>
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
HostSystem - 04_hs_to_EAPF.py: PASS
--------------------------------------------------------------------
HostSystem - 05_hs_gi_errs.py: PASS
--------------------------------------------------------------------
HostSystem - 06_hs_to_vsms.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
--------------------------------------------------------------------
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
--------------------------------------------------------------------
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
--------------------------------------------------------------------
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
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
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
--------------------------------------------------------------------
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
--------------------------------------------------------------------
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
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS
--------------------------------------------------------------------
Thanks and Regards,
Deepti.
16 years, 2 months
Xen on Pegasus Test Run Summary for Oct 20 2008
by Guo Lian Yun
=================================================
Xen on Pegasus Test Run Summary for Oct 20 2008
=================================================
Distro: Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Kernel: 2.6.18-92.el5xen
libvirt: 0.3.3
Hypervisor: Xen 3.1.0
CIMOM: Pegasus 2.7.0
Libvirt-cim revision: 720
Libvirt-cim changeset: 0f39ab1ee830
=================================================
FAIL : 2
XFAIL : 0
SKIP : 3
PASS : 131
-----------------
Total : 136
=================================================
FAIL Test Summary:
VSSD - 02_bootldr.py: FAIL
VirtualSystemManagementService - 09_procrasd_persist.py: FAIL
=================================================
SKIP Test Summary:
ComputerSystem - 02_nosystems.py: SKIP
LogicalDisk - 02_nodevs.py: SKIP
NetworkPort - 03_user_netport.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
--------------------------------------------------------------------
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_suspend_suspend.py: PASS
--------------------------------------------------------------------
ComputerSystem - 27_define_suspend_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 32_start_reboot.py: PASS
--------------------------------------------------------------------
ComputerSystem - 33_suspend_reboot.py: PASS
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
HostSystem - 04_hs_to_EAPF.py: PASS
--------------------------------------------------------------------
HostSystem - 05_hs_gi_errs.py: PASS
--------------------------------------------------------------------
HostSystem - 06_hs_to_vsms.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
--------------------------------------------------------------------
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: SKIP
--------------------------------------------------------------------
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
--------------------------------------------------------------------
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
--------------------------------------------------------------------
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
--------------------------------------------------------------------
VSSD - 01_enum.py: PASS
--------------------------------------------------------------------
VSSD - 02_bootldr.py: FAIL
ERROR - AttributeError : 'str' object has no attribute
'Bootloader'
Traceback (most recent call last):
File "./lib/XenKvmLib/const.py", line 116, in do_try
File "02_bootldr.py", line 50, in main
xmlfile.set_bootloader(options.ip, gtype=0)
File "./lib/XenKvmLib/vxml.py", line 567, in set_bootloader
AttributeError: 'str' object has no attribute 'Bootloader'
ERROR - None
--------------------------------------------------------------------
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: FAIL
ERROR - limit is 0, expected 256
ERROR - rstest_domain CPU scheduling not set properly
--------------------------------------------------------------------
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
--------------------------------------------------------------------
VirtualSystemMigrationCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS
--------------------------------------------------------------------
VirtualSystemMigrationService - 01_migratable_host.py: PASS
--------------------------------------------------------------------
VirtualSystemMigrationService - 02_host_migrate_type.py: PASS
--------------------------------------------------------------------
VirtualSystemMigrationService - 05_migratable_host_errs.py: PASS
--------------------------------------------------------------------
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
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py:
PASS
--------------------------------------------------------------------
16 years, 2 months
[PATCH] [TEST] #2 Updating 04_reverse_errs.py tc of HostedDependency to work with/without sblim-base-provider
by Deepti B. Kalakeri
# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1224229225 25200
# Node ID a4a0adafb80f9434e06cb134d7e25bb9c11b1756
# Parent 69fe94b1348985a337d385865d7522c78f57e116
[TEST] #2 Updating 04_reverse_errs.py tc of HostedDependency to work with/without sblim-base-provider.
Patch 2:
--------
Included missing destroy call.
Tested with Xen, XenFV, KVM with current sources, with/without sblim-base-provider.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 69fe94b13489 -r a4a0adafb80f suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py
--- a/suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py Thu Oct 16 03:14:27 2008 -0700
+++ b/suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py Fri Oct 17 00:40:25 2008 -0700
@@ -42,110 +42,94 @@ sup_types = ['Xen', 'KVM', 'XenFV', 'LXC
test_dom = "hd_domain1"
test_mac = "00:11:22:33:44:55"
-bug='90264'
+bug_sblim='00007'
exp_rc = 6 #CIM_ERR_NOT_FOUND
exp_d1 = "No such instance (Name)"
exp_d2 = "No such instance (CreationClassName)"
expr_values = {
- "invalid_name_keyname" : { 'rc' : exp_rc, 'desc' : exp_d1 },
- "invalid_name_keyvalue" : { 'rc' : exp_rc, 'desc' : exp_d1 },
- "invalid_ccname_keyname" : { 'rc' : exp_rc, 'desc' : exp_d2 },
- "invalid_ccname_keyvalue" : { 'rc' : exp_rc, 'desc' : exp_d2 }
+ "INVALID_KeyName" : { 'rc' : exp_rc, 'desc' : exp_d1 },
+ "INVALID_NameValue" : { 'rc' : exp_rc, 'desc' : exp_d1 },
+ "INVALID_CCNKeyName" : { 'rc' : exp_rc, 'desc' : exp_d2 },
+ "INVALID_CCNameValue" : { 'rc' : exp_rc, 'desc' : exp_d2 }
}
-def err_invalid_name_keyname(server, conn, virt, assoc_classname, field):
- status, host_name, classname = get_host_info(server, virt)
- if status:
- return status
- keys = {
- 'CreationClassName' : classname, \
- field : host_name
- }
- return try_assoc(conn, classname, assoc_classname, keys, field_name=field, \
- expr_values=expr_values['invalid_name_keyname'], \
- bug_no=bug)
-
-def err_invalid_name_keyvalue(server, conn, virt, assoc_classname, field):
- status, host_name, classname = get_host_info(server, virt)
- if status:
- return status
- keys = {
- 'CreationClassName' : classname, \
- 'Name' : field
- }
- return try_assoc(conn, classname, assoc_classname, keys, field_name=field, \
- expr_values=expr_values['invalid_name_keyvalue'], \
- bug_no=bug)
-
-def err_invalid_ccname_keyname(server, conn, virt, assoc_classname, field):
- status, host_name, classname = get_host_info(server, virt)
- if status:
- return status
- keys = {
- field : classname, \
- 'Name' : host_name
- }
- return try_assoc(conn, classname, assoc_classname, keys, field_name=field, \
- expr_values=expr_values['invalid_ccname_keyname'], \
- bug_no=bug)
-def err_invalid_ccname_keyvalue(server, conn, virt, assoc_classname, field):
- status, host_name, classname = get_host_info(server, virt)
- if status:
- return status
- keys = {
- 'CreationClassName' : field, \
- 'Name' : host_name
- }
- return try_assoc(conn, classname, assoc_classname, keys, field_name=field, \
- expr_values=expr_values['invalid_ccname_keyvalue'], \
- bug_no=bug)
+def verify_err_fields(cxml, server, conn, keys, classname,
+ assoc_classname, msg, field):
+ try:
+ ret = try_assoc(conn, classname, assoc_classname, keys,
+ field_name=field, expr_values=expr_values[field],
+ bug_no="")
+ if ret != PASS:
+ if classname == 'Linux_ComputerSystem':
+ return XFAIL_RC(bug_sblim)
+ else:
+ logger.error("--- FAILED: %s---", msg)
+ cxml.destroy(server)
+ except Exception, details:
+ logger.error("Exception: %s", details)
+ return FAIL
+ return ret
@do_main(sup_types)
def main():
options = main.options
+ server = options.ip
+ virt = options.virt
- status = PASS
- server = options.ip
- virtxml = vxml.get_class(options.virt)
- if options.virt == "LXC":
+ virtxml = vxml.get_class(virt)
+ if virt == "LXC":
cxml = virtxml(test_dom)
else:
cxml = virtxml(test_dom, mac = test_mac)
- ret = cxml.create(options.ip)
+ ret = cxml.create(server)
if not ret:
logger.error("Failed to Create the dom: %s" % test_dom)
- status = FAIL
+ return FAIL
+
+ conn = assoc.myWBEMConnection('http://%s' % server,
+ (CIM_USER, CIM_PASS), CIM_NS)
+
+ acn = get_typed_class(virt, 'HostedDependency')
+ status, host_name, classname = get_host_info(server, virt)
+ if status:
+ logger.error("Unable to get host info")
+ cxml.destroy(server)
return status
- conn = assoc.myWBEMConnection('http://%s' % options.ip,
- (CIM_USER, CIM_PASS), CIM_NS)
- acn = get_typed_class(options.virt, 'HostedDependency')
- ret_value = err_invalid_name_keyname(server, conn, options.virt, acn,
- field='INVALID_KeyName')
+
+ msg = 'Invalid Name Key Name'
+ field = 'INVALID_KeyName'
+ keys = { 'CreationClassName' : classname, field : host_name }
+ ret_value = verify_err_fields(cxml, server, conn, keys, classname,
+ acn, msg, field)
if ret_value != PASS:
- logger.error("--- FAILED: Invalid Name Key Name.---")
- status = ret_value
- ret_value = err_invalid_name_keyvalue(server, conn, options.virt, acn,
- field='INVALID_NameValue')
+ return ret_value
+
+ msg = 'Invalid Name Key Value'
+ field='INVALID_NameValue'
+ keys = { 'CreationClassName' : classname, 'Name' : field }
+ ret_value = verify_err_fields(cxml, server, conn, keys, classname,
+ acn, msg, field)
if ret_value != PASS:
- logger.error("--- FAILED: Invalid Name Key Value.---")
- status = ret_value
- ret_value = err_invalid_ccname_keyname(server, conn, options.virt, acn,
- field='INVALID_CCNKeyName')
+ return ret_value
+
+ msg = 'Invalid CreationClassName Key Name'
+ field='INVALID_CCNKeyName'
+ keys = { field : classname, 'Name' : host_name }
+ ret_value = verify_err_fields(cxml, server, conn, keys, classname,
+ acn, msg, field)
if ret_value != PASS:
- logger.error("--- FAILED: Invalid CreationClassName Key Name---")
- status = ret_value
- ret_value = err_invalid_ccname_keyvalue(server, conn, options.virt, acn,
- field='INVALID_CCNameValue')
- if ret_value != PASS:
- logger.error("--- FAILED: Invalid CreationClassName Key Value---")
- status = ret_value
- cxml.destroy(options.ip)
- cxml.undefine(options.ip)
- return status
+ return ret_value
+ msg = 'Invalid CreationClassName Key Value'
+ field='INVALID_CCNameValue'
+ keys = { 'CreationClassName' : field, 'Name' : host_name }
+ ret_value = verify_err_fields(cxml, server, conn, keys, classname,
+ acn, msg, field)
+ cxml.destroy(server)
+ return ret_value
if __name__ == "__main__":
sys.exit(main())
16 years, 2 months
[PATCH] * Patch #2: Added association Console Redirections Service <-> Console Redirection Service
by Richard Maciel
# HG changeset patch
# User Richard Maciel <richardm(a)br.ibm.com>
# Date 1224267128 25200
# Node ID 945715d70d43a432adcd46b8eb8146564d473fc7
# Parent ef98854352d7c0e7abbe2d77ba9d885ef61629e6
* Patch #2: Added association Console Redirections Service <-> Console Redirection Service
Capabilities into the ElementCapabilities.c file
* Added ConsoleRedirectionServiceCapabilities.h to export the
get_console_rs_caps function
* get_console_rs_caps is not static anymore
* Fixed whitespace issues
* Removed not useful CU_DEBUG calls from ElementCapabilities.c file (those were added in the first patch)
Signed-off-by: Richard Maciel <richardm(a)br.ibm.com>
diff -r ef98854352d7 -r 945715d70d43 src/Makefile.am
--- a/src/Makefile.am Thu Oct 16 13:28:42 2008 -0700
+++ b/src/Makefile.am Fri Oct 17 11:12:08 2008 -0700
@@ -132,7 +132,7 @@
-lVirt_VSMigrationService \
-lVirt_DevicePool \
-lVirt_ConsoleRedirectionService \
- -lVirt_ConsoleRedirectionServiceCapabilities
+ -lVirt_ConsoleRedirectionServiceCapabilities
libVirt_SettingsDefineCapabilities_la_DEPENDENCIES = libVirt_RASD.la libVirt_DevicePool.la libVirt_VSMigrationCapabilities.la libVirt_VSMigrationSettingData.la
libVirt_SettingsDefineCapabilities_la_SOURCES = Virt_SettingsDefineCapabilities.c
diff -r ef98854352d7 -r 945715d70d43 src/Virt_ConsoleRedirectionServiceCapabilities.c
--- a/src/Virt_ConsoleRedirectionServiceCapabilities.c Thu Oct 16 13:28:42 2008 -0700
+++ b/src/Virt_ConsoleRedirectionServiceCapabilities.c Fri Oct 17 11:12:08 2008 -0700
@@ -70,12 +70,10 @@
return s;
}
-/* Removed the static keyword from the function declaration to
- * make it available for other modules */
CMPIStatus get_console_rs_caps(const CMPIBroker *broker,
- const CMPIObjectPath *ref,
- CMPIInstance **_inst,
- bool is_get_inst)
+ const CMPIObjectPath *ref,
+ CMPIInstance **_inst,
+ bool is_get_inst)
{
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIInstance *inst = NULL;
diff -r ef98854352d7 -r 945715d70d43 src/Virt_ConsoleRedirectionServiceCapabilities.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Virt_ConsoleRedirectionServiceCapabilities.h Fri Oct 17 11:12:08 2008 -0700
@@ -0,0 +1,35 @@
+/*
+ * Copyright IBM Corp. 2008
+ *
+ * Authors:
+ * Richard Maciel <richardm(a)br.ibm.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser 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
+ */
+
+CMPIStatus get_console_rs_caps(const CMPIBroker *broker,
+ const CMPIObjectPath *ref,
+ CMPIInstance **_inst,
+ bool is_get_inst);
+
+ /*
+ * Local Variables:
+ * mode: C
+ * c-set-style: "K&R"
+ * tab-width: 8
+ * c-basic-offset: 8
+ * indent-tabs-mode: nil
+ * End:
+ */
diff -r ef98854352d7 -r 945715d70d43 src/Virt_ElementCapabilities.c
--- a/src/Virt_ElementCapabilities.c Thu Oct 16 13:28:42 2008 -0700
+++ b/src/Virt_ElementCapabilities.c Fri Oct 17 11:12:08 2008 -0700
@@ -78,14 +78,13 @@
s = get_migration_service(ref, &_inst, _BROKER, context, false);
} else if (STREQC(classname, "ConsoleRedirectionServiceCapabilities")) {
- s = get_console_rs_caps(_BROKER, ref, &_inst, true);
+ s = get_console_rs_caps(_BROKER, ref, &_inst, true);
- if((s.rc != CMPI_RC_OK) || (_inst == NULL))
+ if((s.rc != CMPI_RC_OK) || (_inst == NULL))
goto out;
-
- s = get_console_rs(ref, &_inst, _BROKER, context, false);
- } else
+ s = get_console_rs(ref, &_inst, _BROKER, context, false);
+ } else
cu_statusf(_BROKER, &s,
CMPI_RC_ERR_NOT_FOUND,
"Not found");
@@ -110,7 +109,6 @@
char* classname;
classname = class_base_name(CLASSNAME(ref));
- CU_DEBUG("After class_base_name\n: %s", classname);
if (STREQC(classname, "VirtualSystemManagementService")) {
s = get_vsms(ref, &_inst, _BROKER, context, true);
if ((s.rc != CMPI_RC_OK) || (_inst == NULL))
@@ -123,18 +121,15 @@
goto out;
s = get_migration_caps(ref, &_inst, _BROKER, false);
- } else if(STREQC(classname, "ConsoleRedirectionService")) {
- CU_DEBUG("before console_rs\n");
- s = get_console_rs(ref, &_inst, _BROKER, context, true);
- if((s.rc != CMPI_RC_OK) || (_inst == NULL))
- goto out;
+ } else if (STREQC(classname, "ConsoleRedirectionService")) {
+ s = get_console_rs(ref, &_inst, _BROKER, context, true);
+ if((s.rc != CMPI_RC_OK) || (_inst == NULL))
+ goto out;
- CU_DEBUG("before console_rs_caps\n");
- s = get_console_rs_caps(_BROKER, ref, &_inst, false);
- if((s.rc != CMPI_RC_OK) || (_inst == NULL))
- goto out;
- CU_DEBUG("after console_rs_Caps\n");
- } else
+ s = get_console_rs_caps(_BROKER, ref, &_inst, false);
+ if((s.rc != CMPI_RC_OK) || (_inst == NULL))
+ goto out;
+ } else
cu_statusf(_BROKER, &s,
CMPI_RC_ERR_NOT_FOUND,
"");
@@ -211,8 +206,6 @@
{
CMPIInstance *inst = NULL;
CMPIStatus s = {CMPI_RC_OK, NULL};
-
- CU_DEBUG("service_to_cap\n");
if (!match_hypervisor_prefix(ref, info))
goto out;
16 years, 2 months
[PATCH] * Added association Console Redirections Service <-> Console Redirection Service
by Richard Maciel
# HG changeset patch
# User Richard Maciel <richardm(a)br.ibm.com>
# Date 1224196932 25200
# Node ID 7fbd020ca47795c3528a698b3ddccc718cae9f2c
# Parent ef98854352d7c0e7abbe2d77ba9d885ef61629e6
* Added association Console Redirections Service <-> Console Redirection Service
Capabilities into the ElementCapabilities.c file
* Added ConsoleRedirectionServiceCapabilities.h to export the
get_console_rs_caps function
* get_console_rs_caps is not static anymore
Signed-off-by: Richard Maciel <richardm(a)br.ibm.com>
diff -r ef98854352d7 -r 7fbd020ca477 src/Makefile.am
--- a/src/Makefile.am Thu Oct 16 13:28:42 2008 -0700
+++ b/src/Makefile.am Thu Oct 16 15:42:12 2008 -0700
@@ -132,7 +132,7 @@
-lVirt_VSMigrationService \
-lVirt_DevicePool \
-lVirt_ConsoleRedirectionService \
- -lVirt_ConsoleRedirectionServiceCapabilities
+ -lVirt_ConsoleRedirectionServiceCapabilities
libVirt_SettingsDefineCapabilities_la_DEPENDENCIES = libVirt_RASD.la libVirt_DevicePool.la libVirt_VSMigrationCapabilities.la libVirt_VSMigrationSettingData.la
libVirt_SettingsDefineCapabilities_la_SOURCES = Virt_SettingsDefineCapabilities.c
diff -r ef98854352d7 -r 7fbd020ca477 src/Virt_ConsoleRedirectionServiceCapabilities.c
--- a/src/Virt_ConsoleRedirectionServiceCapabilities.c Thu Oct 16 13:28:42 2008 -0700
+++ b/src/Virt_ConsoleRedirectionServiceCapabilities.c Thu Oct 16 15:42:12 2008 -0700
@@ -70,12 +70,10 @@
return s;
}
-/* Removed the static keyword from the function declaration to
- * make it available for other modules */
CMPIStatus get_console_rs_caps(const CMPIBroker *broker,
- const CMPIObjectPath *ref,
- CMPIInstance **_inst,
- bool is_get_inst)
+ const CMPIObjectPath *ref,
+ CMPIInstance **_inst,
+ bool is_get_inst)
{
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIInstance *inst = NULL;
diff -r ef98854352d7 -r 7fbd020ca477 src/Virt_ElementCapabilities.c
--- a/src/Virt_ElementCapabilities.c Thu Oct 16 13:28:42 2008 -0700
+++ b/src/Virt_ElementCapabilities.c Thu Oct 16 15:42:12 2008 -0700
@@ -78,14 +78,13 @@
s = get_migration_service(ref, &_inst, _BROKER, context, false);
} else if (STREQC(classname, "ConsoleRedirectionServiceCapabilities")) {
- s = get_console_rs_caps(_BROKER, ref, &_inst, true);
+ s = get_console_rs_caps(_BROKER, ref, &_inst, true);
- if((s.rc != CMPI_RC_OK) || (_inst == NULL))
+ if((s.rc != CMPI_RC_OK) || (_inst == NULL))
goto out;
-
- s = get_console_rs(ref, &_inst, _BROKER, context, false);
- } else
+ s = get_console_rs(ref, &_inst, _BROKER, context, false);
+ } else
cu_statusf(_BROKER, &s,
CMPI_RC_ERR_NOT_FOUND,
"Not found");
@@ -110,7 +109,6 @@
char* classname;
classname = class_base_name(CLASSNAME(ref));
- CU_DEBUG("After class_base_name\n: %s", classname);
if (STREQC(classname, "VirtualSystemManagementService")) {
s = get_vsms(ref, &_inst, _BROKER, context, true);
if ((s.rc != CMPI_RC_OK) || (_inst == NULL))
@@ -123,18 +121,15 @@
goto out;
s = get_migration_caps(ref, &_inst, _BROKER, false);
- } else if(STREQC(classname, "ConsoleRedirectionService")) {
- CU_DEBUG("before console_rs\n");
- s = get_console_rs(ref, &_inst, _BROKER, context, true);
- if((s.rc != CMPI_RC_OK) || (_inst == NULL))
- goto out;
+ } else if (STREQC(classname, "ConsoleRedirectionService")) {
+ s = get_console_rs(ref, &_inst, _BROKER, context, true);
+ if((s.rc != CMPI_RC_OK) || (_inst == NULL))
+ goto out;
- CU_DEBUG("before console_rs_caps\n");
- s = get_console_rs_caps(_BROKER, ref, &_inst, false);
- if((s.rc != CMPI_RC_OK) || (_inst == NULL))
- goto out;
- CU_DEBUG("after console_rs_Caps\n");
- } else
+ s = get_console_rs_caps(_BROKER, ref, &_inst, false);
+ if((s.rc != CMPI_RC_OK) || (_inst == NULL))
+ goto out;
+ } else
cu_statusf(_BROKER, &s,
CMPI_RC_ERR_NOT_FOUND,
"");
@@ -211,8 +206,6 @@
{
CMPIInstance *inst = NULL;
CMPIStatus s = {CMPI_RC_OK, NULL};
-
- CU_DEBUG("service_to_cap\n");
if (!match_hypervisor_prefix(ref, info))
goto out;
16 years, 2 months
[PATCH] [TEST] Remove a particulare case that it doesn't touch provider in SDC
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1224211402 25200
# Node ID 0d0e0b3b7cc463ff52419e577911640ecc467518
# Parent 69fe94b1348985a337d385865d7522c78f57e116
[TEST] Remove a particulare case that it doesn't touch provider in SDC
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 69fe94b13489 -r 0d0e0b3b7cc4 suites/libvirt-cim/cimtest/SettingsDefineCapabilities/03_forward_errs.py
--- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/03_forward_errs.py Thu Oct 16 03:14:27 2008 -0700
+++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/03_forward_errs.py Thu Oct 16 19:43:22 2008 -0700
@@ -43,8 +43,6 @@ expr_values = {
"invalid_instid_keyvalue" : { 'rc' : pywbem.CIM_ERR_FAILED,
'desc' : 'Unable to determine\
resource type' },
- "invalid_ccname_keyname" : { 'rc' : pywbem.CIM_ERR_INVALID_PARAMETER,
- 'desc' : 'CIM_ERR_INVALID_PARAMETER' }
}
def err_invalid_instid_keyname(virt, conn, field):
@@ -85,22 +83,6 @@ def err_invalid_instid_keyvalue(virt, co
expr_values=expr_values['invalid_instid_keyvalue'],
bug_no="")
-def err_invalid_ccname_keyname(virt, conn, field):
-# Input:
-# ------
-# wbemcli ai -ac Xen_SettingsDefineCapabilities \
-# 'http://localhost:5988/root/virt:Wrong.InstanceID="ProcessorPool/0"' -nl
-#
-# Output:
-# -------
-# error code : CIM_ERR_INVALID_PARAMETER
-# error desc : One or more parameter values passed to the method were invalid
- assoc_classname = get_typed_class(virt, "SettingsDefineCapabilities")
- classname = field
- keys = { 'InstanceID' : 'MemoryPool/0' }
- return try_assoc(conn, classname, assoc_classname, keys, field_name=field, \
- expr_values=expr_values['invalid_ccname_keyname'],
- bug_no="")
@do_main(platform_sup)
def main():
@@ -118,10 +100,6 @@ def main():
if ret_value != PASS:
logger.error("------ FAILED: Invalid InstanceID Key Value.------")
return ret_value
- ret_value = err_invalid_ccname_keyname(virt, conn, field='WrongClassName')
- if ret_value != PASS:
- logger.error("------ FAILED: Invalid CCName Key Name.------")
- return ret_value
return PASS
if __name__ == "__main__":
16 years, 2 months
[PATCH] [TEST] Fixing and updating 02_reverse.py of ElementConforms to work with/without sblim-base-provider
by Deepti B. Kalakeri
# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1224235974 25200
# Node ID a59563b0aa73db1b5e3cb3b5f84ac3e2aff3649b
# Parent 6985c0d24577f59bba4229fbed339d280ed06e63
[TEST] Fixing and updating 02_reverse.py of ElementConforms to work with/without sblim-base-provider.
Tested with Xen, XenFV, KVM with current sources, with/without sblim-base-provider.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 6985c0d24577 -r a59563b0aa73 suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Fri Oct 17 01:48:06 2008 -0700
+++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Fri Oct 17 02:32:54 2008 -0700
@@ -31,7 +31,7 @@
# wbemcli ain -ac Xen_ElementConformsToProfile \
# 'http://localhost:5988/root/virt:Xen_HostSystem.\
-# CreationClassName="Xen_HostSystem",Name="elm3b24.beaverton.ibm.com"'
+# CreationClassName="Xen_HostSystem",Name="lm3b24"'
#
# Date : 07-12-2007
@@ -41,21 +41,22 @@ from XenKvmLib.test_xml import testxml
from XenKvmLib.test_xml import testxml
from VirtLib import utils
from CimTest import Globals
-from CimTest.Globals import logger, CIM_ERROR_ENUMERATE, CIM_ERROR_ASSOCIATORS
+from CimTest.Globals import logger, CIM_ERROR_ENUMERATE, CIM_ERROR_ASSOCIATORS
from XenKvmLib.const import do_main
from XenKvmLib import enumclass
from XenKvmLib import assoc
from XenKvmLib.test_doms import destroy_and_undefine_all
-from XenKvmLib.test_doms import destroy_and_undefine_all
from XenKvmLib import enumclass
from XenKvmLib.vxml import XenXML, KVMXML, get_class
from XenKvmLib.classes import get_typed_class
-from CimTest.ReturnCodes import PASS, FAIL
-from XenKvmLib.common_util import libvirt_cached_data_poll, get_cs_instance
+from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC
+from XenKvmLib.common_util import libvirt_cached_data_poll, get_cs_instance, \
+ get_host_info
sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
-test_dom = "domgst"
+test_dom ="domgst"
+bug_sblim ='00007'
def build_exp_prof_list(proflist, virt="Xen"):
list = {}
@@ -77,91 +78,98 @@ def verify_profile(inst, exp_inst):
return FAIL
if inst['RegisteredVersion'] != exp_inst.RegisteredVersion:
return FAIL
-
return PASS
@do_main(sup_types)
def main():
options = main.options
+ server = options.ip
+ virt = options.virt
status = FAIL
- destroy_and_undefine_all(options.ip)
- virt_xml = get_class(options.virt)
+ destroy_and_undefine_all(server)
+ virt_xml = get_class(virt)
cxml = virt_xml(test_dom)
- ret = cxml.define(options.ip)
+ ret = cxml.define(server)
if not ret:
logger.error("ERROR: Failed to Define the dom: %s" % test_dom)
return status
- inst_list = []
+ inst_list = {}
- rc, cs = get_cs_instance(test_dom, options.ip, options.virt)
+ rc, cs = get_cs_instance(test_dom, server, virt)
if rc != 0:
- sys = libvirt_cached_data_poll(options.ip, options.virt, test_dom)
+ cs = libvirt_cached_data_poll(server, virt, test_dom)
if sys is None:
logger.error("Instance for %s not created" % test_dom)
+ cxml.undefine(server)
return FAIL
- inst_list.append(sys)
- keys = ['Name', 'CreationClassName']
+ inst_list[cs.CreationClassName] = cs.Name
+
try:
- #Getting the hostname, to verify with the value returned by the assoc.
- cn = get_typed_class(options.virt, 'HostSystem')
- host_sys = enumclass.EnumInstances(options.ip, cn)
+ status, host_name, classname = get_host_info(server, virt)
+ if status != PASS:
+ logger.error("Unable to get host information")
+ cxml.undefine(server)
+ return status
+ except Exception, details:
+ logger.error("DEBUG Exception: %s" % details)
+ cxml.undefine(server)
+ return FAIL
- if len(host_sys) < 1:
- logger.error("ERROR: Enumerate returned 0 host instances")
- return FAIL
-
- inst_list.append(host_sys[0])
-
- except Exception, details:
- logger.error("Exception: %s" % details)
- return FAIL
+ inst_list[classname] = host_name
prev_namespace = Globals.CIM_NS
Globals.CIM_NS = 'root/interop'
try:
- cn = get_typed_class(options.virt, 'RegisteredProfile')
- proflist = enumclass.EnumInstances(options.ip, cn)
+ cn = get_typed_class(virt, 'RegisteredProfile')
+ proflist = enumclass.EnumInstances(server, cn)
except Exception, details:
logger.error(CIM_ERROR_ENUMERATE, cn)
logger.error("Exception: %s", details)
+ cxml.undefine(server)
return status
Globals.CIM_NS = prev_namespace
- exp_list = build_exp_prof_list(proflist, options.virt)
+ exp_list = build_exp_prof_list(proflist, virt)
# Loop through the assoc results returned on test_dom and hostsystem
try:
- for item in inst_list:
- cn = item.CreationClassName
- name = item.Name
- an = get_typed_class(options.virt, "ElementConformsToProfile")
- profs = assoc.Associators(options.ip,
+ for cn, sys_name in inst_list.iteritems():
+ name = sys_name
+ an = get_typed_class(virt, "ElementConformsToProfile")
+ profs = assoc.Associators(server,
an,
cn,
CreationClassName=cn,
Name=name)
if len(profs) != 1:
- logger.error("ElementConformsToProfile assoc failed")
- return FAIL
+ if cn == 'Linux_ComputerSystem':
+ status = XFAIL_RC(bug_sblim)
+ else:
+ logger.error("ElementConformsToProfile assoc failed")
+ status = FAIL
+
+ if status != PASS:
+ cxml.undefine(server)
+ return status
status = verify_profile(profs[0], exp_list[cn])
if status != PASS:
logger.error("Verification of profile instance failed")
+ cxml.undefine(server)
return FAIL
except Exception, detail:
- logger.error(CIM_ERROR_ASSOCIATORS,
- get_typed_class(options.virt, 'RegisteredProfile'))
+ logger.error(CIM_ERROR_ASSOCIATORS, an)
logger.error("Exception: %s", detail)
status = FAIL
- cxml.undefine(options.ip)
+ cxml.undefine(server)
return status
if __name__ == "__main__":
16 years, 2 months
[PATCH] [TEST] Updating 01_forward.py of ElementConforms to work with/without sblim-base-provider
by Deepti B. Kalakeri
# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1224233286 25200
# Node ID 6985c0d24577f59bba4229fbed339d280ed06e63
# Parent 5be3bda6fb16a5ece5aa18c254d3d934fb2f8831
[TEST] Updating 01_forward.py of ElementConforms to work with/without sblim-base-provider.
Tested with Xen, XenFV, KVM with current sources, with/without sblim-base-provider.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 5be3bda6fb16 -r 6985c0d24577 suites/libvirt-cim/cimtest/ElementConforms/01_forward.py
--- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Fri Oct 17 00:44:08 2008 -0700
+++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Fri Oct 17 01:48:06 2008 -0700
@@ -45,16 +45,17 @@ from XenKvmLib.classes import get_typed_
from XenKvmLib.classes import get_typed_class
from XenKvmLib import vxml
from CimTest import Globals
-from XenKvmLib.common_util import print_field_error
+from XenKvmLib.common_util import print_field_error, check_sblim
from CimTest.Globals import logger, CIM_ERROR_ASSOCIATORS, CIM_ERROR_ENUMERATE
from XenKvmLib.const import do_main
-from CimTest.ReturnCodes import PASS, FAIL
+from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC
from XenKvmLib.enumclass import EnumInstances
from XenKvmLib.const import default_network_name, default_pool_name
sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
test_dom = "domU"
+bug_sblim = '00007'
def pool_init(verify_list, pool_cn, pool_name, virt):
ccn = get_typed_class(virt, pool_cn)
@@ -175,9 +176,13 @@ def verify_ectp_assoc(server, virt):
reg_classname,
InstanceID = devid)
if len(assoc_info) < 1:
- status = FAIL
- logger.error(" '%s' returned (%d) '%s' objects", an,
- len(assoc_info), reg_classname)
+ ret_val, linux_cs = check_sblim(server, virt)
+ if ret_val != PASS:
+ logger.error(" '%s' returned (%d) '%s' objects", an,
+ len(assoc_info), reg_classname)
+ return FAIL
+ else:
+ return XFAIL_RC(bug_sblim)
break
if 'DSP1059' in devid or 'DSP1045' in devid:
16 years, 2 months