[PATCH]Add the revision and the changeset of Cimtest to the test report
by Toshifumi Fujimura
# HG changeset patch
# User Toshifumi Fujimura<fujimura.toshifumi(a)np.css.fujitsu.com>
# Date 1225162881 -32400
# Node ID e735bda49b6b5dc2ab96c8626808e97a64711b57
# Parent 0f340004e1cd48f5ede60a68283a850ae60c9ebe
[PATCH]Add the revision and the changeset of Cimtest to the test report
Hi,
This patch adds the revision and the changeset of Cimtest
to the test report "run_report.txt".
Since Cimtest updates frequently,
we need to know the cimtest version in the test reports,
After this change, the header is like follows.
================================================
KVM on Pegasus Test Run Summary for Oct 27 2008
=================================================
Distro: Fedora release 9.92 (Rawhide)
Kernel: 2.6.27.3-34.rc1.fc10.i686.PAE
libvirt: 0.4.6
Hypervisor: QEMU 0.9.1
CIMOM: Pegasus 2.7.1
Libvirt-cim revision: 725
Libvirt-cim changeset: e043f46f299e
Cimtest revision: 459
Cimtest changeset: 0f340004e1cd
=================================================
Signed-off-by: Toshifumi Fujimura <fujimura.toshifumi(a)np.css.fujitsu.com>
diff -r 0f340004e1cd suites/libvirt-cim/lib/XenKvmLib/reporting.py
--- a/suites/libvirt-cim/lib/XenKvmLib/reporting.py Fri Oct 24
01:04:38 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/reporting.py Tue Oct 28
09:52:47 2008 +0900
@@ -25,6 +25,14 @@
from time import gmtime, strftime
from VirtLib import utils
from XenKvmLib.const import get_provider_version
+
+def get_cimtest_revision():
+ revision = commands.getoutput("hg parents --template \"{rev}\"")
+ return revision
+
+def get_cimtest_changeset():
+ changeset = commands.getoutput("hg parents --template
\"{node|short}\"")
+ return changeset
def get_cmd_val(cmd, ip):
rc, out = utils.run_remote(ip, cmd)
@@ -137,6 +145,10 @@
cimom, cimom_ver = get_cimom_ver(ip)
+ cimtest_revision = get_cimtest_revision()
+ cimtest_changeset = get_cimtest_changeset()
+ cimtest_info = "Cimtest revision: %s\nCimtest changeset: %s\n" %
(cimtest_revision, cimtest_changeset)
+
heading = "%s on %s Test Run Summary for %s" % (virt, cimom, date)
sys_env = get_env_data(ip, virt)
@@ -146,7 +158,7 @@
res, res_total, test_block = build_report_body(rvals, tstr, divider)
- report = divider + heading + "\n" + divider + sys_env + divider + res \
+ report = divider + heading + "\n" + divider + sys_env +
cimtest_info + divider + res \
+ res_total + divider + test_block + "Full report:\n" \
+ run_output
--
Toshifumi Fujimura.
16 years, 1 month
[PATCH] Added association HostSystem <-> ConsoleRedirectionServiceCapabilities into the ElementCapabilities.c file
by Richard Maciel
# HG changeset patch
# User Richard Maciel <richardm(a)br.ibm.com>
# Date 1225226020 7200
# Node ID 98341347332bf3622f3e62987f624136cb051845
# Parent ef8ad1ecedfbb085337ec46bf6728fa6bea66d7d
Added association HostSystem <-> ConsoleRedirectionServiceCapabilities into the ElementCapabilities.c file
* Changed the sys_to_cap function to add code for association
Signed-off-by: Richard Maciel <richardm(a)br.ibm.com>
diff -r ef8ad1ecedfb -r 98341347332b src/Virt_ElementCapabilities.c
--- a/src/Virt_ElementCapabilities.c Wed Oct 22 11:32:32 2008 -0700
+++ b/src/Virt_ElementCapabilities.c Tue Oct 28 18:33:40 2008 -0200
@@ -159,6 +159,10 @@
inst_list_add(list, inst);
s = get_migration_caps(ref, &inst, _BROKER, false);
+ if (s.rc == CMPI_RC_OK)
+ inst_list_add(list, inst);
+
+ s = get_console_rs_caps(_BROKER, ref, &inst, false);
if (s.rc == CMPI_RC_OK)
inst_list_add(list, inst);
16 years, 1 month
KVM on Pegasus Test Run Summary for Oct 28 2008
by Toshifumi Fujimura
=================================================
KVM on Pegasus Test Run Summary for Oct 28 2008
=================================================
Distro: Fedora release 9.92 (Rawhide)
Kernel: 2.6.27.4-47.rc3.fc10.i686.PAE
libvirt: 0.4.6
Hypervisor: QEMU 0.9.1
CIMOM: Pegasus 2.7.1
Libvirt-cim revision: 725
Libvirt-cim changeset: e043f46f299e
=================================================
FAIL : 4
XFAIL : 2
SKIP : 6
PASS : 126
-----------------
Total : 138
=================================================
FAIL Test Summary:
HostSystem - 02_hostsystem_to_rasd.py: FAIL
SettingsDefineCapabilities - 03_forward_errs.py: FAIL
VirtualSystemManagementService - 11_define_memrasdunits.py: FAIL
VirtualSystemManagementService - 14_define_sys_disk.py: FAIL
=================================================
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: FAIL
ERROR - KVM_SettingsDefineState returned 0 KVM_DisplayController objects
CIM_ERR_INVALID_CLASS: Linux_ComputerSystem
--------------------------------------------------------------------
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
--------------------------------------------------------------------
RedirectionService - 01_enum_crs.py: PASS
--------------------------------------------------------------------
RedirectionService - 02_enum_crscap.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: FAIL
ERROR - Unexpected rc code 6 and description CIM_ERR_NOT_FOUND: 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: 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: FAIL
ERROR - Unexpected rc code 1 and description:
CIM_ERR_FAILED: ResourceSettings Error: Missing `VirtualQuantity' field
in Memory RASD
ERROR - DefineSystem (Bytes) failed
InvokeMethod(DefineSystem): CIM_ERR_FAILED: ResourceSettings Error:
Missing `VirtualQuantity' field in Memory RASD
--------------------------------------------------------------------
VirtualSystemManagementService - 12_referenced_config.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 14_define_sys_disk.py: FAIL
ERROR - Unexpected rc code 1 and description:
CIM_ERR_FAILED: ResourceSettings Error: Missing `VirtualQuantity' field
in Memory RASD
ERROR - Unable to define rstest_disk_domain
InvokeMethod(DefineSystem): CIM_ERR_FAILED: ResourceSettings Error:
Missing `VirtualQuantity' field in Memory RASD
--------------------------------------------------------------------
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,
--
Toshifumi Fujimura.
16 years, 1 month
[PATCH 0 of 2] Make ProcRASD check running domains for VCPU count
by Dan Smith
This patch set makes ProcRASD get the hypervisor's count of VCPUs when a
domain is running. This helps us show the state of the system instead of the
stored configuration when the guest is running. Because of some Xen quirks,
the two can get out of sync and so it's best to make sure we're returning the
correct number when a guest is online.
16 years, 1 month
KVM on Pegasus Test Run Summary for Oct 28 2008
by Guo Lian Yun
=================================================
KVM on Pegasus Test Run Summary for Oct 28 2008
=================================================
Distro: Fedora release 9 (Sulphur)
Kernel: 2.6.25.14-108.fc9.x86_64
libvirt: 0.4.4
Hypervisor: QEMU 0.9.1
CIMOM: Pegasus 2.7.0
Libvirt-cim revision: 712
Libvirt-cim changeset: 668097d4b27c
=================================================
FAIL : 2
XFAIL : 2
SKIP : 6
PASS : 128
-----------------
Total : 138
=================================================
FAIL Test Summary:
RedirectionService - 01_enum_crs.py: FAIL
VirtualSystemManagementService - 14_define_sys_disk.py: FAIL
=================================================
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
--------------------------------------------------------------------
RedirectionService - 01_enum_crs.py: FAIL
ERROR - 'MaxConcurrentEnabledSAPs' Mismatch
ERROR - Expected '65535', Got '2'
CIM_ERR_INVALID_CLASS: Linux_ComputerSystem
--------------------------------------------------------------------
RedirectionService - 02_enum_crscap.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: FAIL
ERROR - Unexpected rc code 1 and description:
CIM_ERR_FAILED: ResourceSettings Error: Missing `VirtualQuantity' field
in Memory RASD
ERROR - Unable to define rstest_disk_domain
InvokeMethod(DefineSystem): CIM_ERR_FAILED: ResourceSettings Error:
Missing `VirtualQuantity' field in Memory RASD
--------------------------------------------------------------------
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
--------------------------------------------------------------------
16 years, 1 month
[PATCH] [TEST] #4 Remove old enumerate and getInstance and update device related tc
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1225163011 25200
# Node ID 408dbb3a61b43bd0def587a9ea7e648105def002
# Parent 0f340004e1cd48f5ede60a68283a850ae60c9ebe
[TEST] #4 Remove old enumerate and getInstance and update device related tc
Updates from 3 to 4:
Stay changeset 453 of LogicalDisk/03_ld_gi_errs.py
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 0f340004e1cd -r 408dbb3a61b4 suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py
--- a/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py Fri Oct 24 01:04:38 2008 -0700
+++ b/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py Mon Oct 27 20:03:31 2008 -0700
@@ -26,7 +26,7 @@
import sys
import pywbem
from VirtLib import utils
-from XenKvmLib import devices
+from XenKvmLib.enumclass import GetInstance
from XenKvmLib.classes import get_typed_class
from XenKvmLib.vxml import XenXML, KVMXML, get_class
from CimTest.Globals import logger
@@ -48,13 +48,13 @@
vsxml.cim_define(options.ip)
devid = "%s/%s" % (test_dom, test_dev)
+ disk = get_typed_class(options.virt, "LogicalDisk")
key_list = { 'DeviceID' : devid,
- 'CreationClassName' : get_typed_class(options.virt, "LogicalDisk"),
+ 'CreationClassName' : disk,
'SystemName' : test_dom,
'SystemCreationClassName' : get_typed_class(options.virt, "ComputerSystem")
}
- dev = eval('devices.' + get_typed_class(options.virt, "LogicalDisk"))(options.ip, key_list)
-
+ dev = GetInstance(options.ip, disk, key_list)
status = 0
if dev.Name != test_dev:
diff -r 0f340004e1cd -r 408dbb3a61b4 suites/libvirt-cim/cimtest/LogicalDisk/03_ld_gi_errs.py
--- a/suites/libvirt-cim/cimtest/LogicalDisk/03_ld_gi_errs.py Fri Oct 24 01:04:38 2008 -0700
+++ b/suites/libvirt-cim/cimtest/LogicalDisk/03_ld_gi_errs.py Mon Oct 27 20:03:31 2008 -0700
@@ -125,7 +125,7 @@
import pywbem
from VirtLib import utils
from XenKvmLib import assoc
-from XenKvmLib import devices
+from XenKvmLib.enumclass import GetInstance
from XenKvmLib.common_util import try_getinstance
from XenKvmLib.test_doms import destroy_and_undefine_all
from XenKvmLib.classes import get_typed_class
@@ -198,7 +198,7 @@
'SystemName' : test_dom,
'SystemCreationClassName' : get_typed_class(options.virt, "ComputerSystem")
}
- disk = eval('devices.' + get_typed_class(options.virt, "LogicalDisk"))(options.ip, key_list)
+ disk = GetInstance(options.ip, classname, key_list)
except Exception,detail:
logger.error(CIM_ERROR_GETINSTANCE, classname)
logger.error("Exception: %s", detail)
diff -r 0f340004e1cd -r 408dbb3a61b4 suites/libvirt-cim/cimtest/Memory/01_memory.py
--- a/suites/libvirt-cim/cimtest/Memory/01_memory.py Fri Oct 24 01:04:38 2008 -0700
+++ b/suites/libvirt-cim/cimtest/Memory/01_memory.py Mon Oct 27 20:03:31 2008 -0700
@@ -26,7 +26,7 @@
import pywbem
from VirtLib import utils
from VirtLib import live
-from XenKvmLib import devices
+from XenKvmLib.enumclass import GetInstance
from XenKvmLib.classes import get_typed_class
from XenKvmLib.vxml import XenXML, KVMXML, get_class
from CimTest.Globals import logger
@@ -46,12 +46,13 @@
alloc_mem = int(vsxml.xml_get_mem())
devid = "%s/mem" % test_dom
+ mem_class = get_typed_class(options.virt, "Memory")
key_list = { 'DeviceID' : devid,
- 'CreationClassName' : get_typed_class(options.virt, "Memory"),
+ 'CreationClassName' : mem_class,
'SystemName' : test_dom,
'SystemCreationClassName' : get_typed_class(options.virt, "ComputerSystem")
}
- dev = eval('devices.' + get_typed_class(options.virt, "Memory"))(options.ip, key_list)
+ dev = GetInstance(options.ip, mem_class, key_list)
status = 0
diff -r 0f340004e1cd -r 408dbb3a61b4 suites/libvirt-cim/cimtest/NetworkPort/01_netport.py
--- a/suites/libvirt-cim/cimtest/NetworkPort/01_netport.py Fri Oct 24 01:04:38 2008 -0700
+++ b/suites/libvirt-cim/cimtest/NetworkPort/01_netport.py Mon Oct 27 20:03:31 2008 -0700
@@ -33,7 +33,7 @@
import pywbem
from VirtLib import utils
from VirtLib import live
-from XenKvmLib import devices
+from XenKvmLib.enumclass import GetInstance
from XenKvmLib.classes import get_typed_class
from XenKvmLib.vxml import XenXML, KVMXML, get_class
from CimTest.Globals import logger
@@ -67,16 +67,17 @@
vsxml.cim_define(options.ip)
devid = "%s/%s" % (test_dom, test_mac)
+ net_class = get_typed_class(options.virt, "NetworkPort")
key_list = { 'DeviceID' : devid,
- 'CreationClassName' : get_typed_class(options.virt, "NetworkPort"),
+ 'CreationClassName' : net_class,
'SystemName' : test_dom,
'SystemCreationClassName' : get_typed_class(options.virt, "ComputerSystem")
}
dev = None
-
+
try:
- dev = eval('devices.' + get_typed_class(options.virt, "NetworkPort"))(options.ip, key_list)
+ dev = GetInstance(options.ip, net_class, key_list)
except Exception, detail:
logger.error("Exception: %s" % detail)
diff -r 0f340004e1cd -r 408dbb3a61b4 suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py
--- a/suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py Fri Oct 24 01:04:38 2008 -0700
+++ b/suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py Mon Oct 27 20:03:31 2008 -0700
@@ -28,7 +28,7 @@
import sys
import pywbem
from XenKvmLib import const
-from XenKvmLib import devices
+from XenKvmLib.enumclass import GetInstance
from XenKvmLib.vxml import KVMXML
from CimTest.Globals import logger
from XenKvmLib.const import do_main
@@ -57,7 +57,7 @@
dev = None
try:
- dev = devices.KVM_NetworkPort(options.ip, key_list)
+ dev = GetInstance(options.ip, 'KVM_NetworkPort', key_list)
except Exception, detail:
logger.error("Exception: %s" % detail)
cxml.undefine(options.ip)
diff -r 0f340004e1cd -r 408dbb3a61b4 suites/libvirt-cim/cimtest/Processor/01_processor.py
--- a/suites/libvirt-cim/cimtest/Processor/01_processor.py Fri Oct 24 01:04:38 2008 -0700
+++ b/suites/libvirt-cim/cimtest/Processor/01_processor.py Mon Oct 27 20:03:31 2008 -0700
@@ -26,7 +26,7 @@
import pywbem
from VirtLib import utils
from VirtLib import live
-from XenKvmLib import devices
+from XenKvmLib.enumclass import GetInstance
from XenKvmLib.test_xml import testxml
from XenKvmLib.classes import get_typed_class
from XenKvmLib.vxml import XenXML, KVMXML, get_class
@@ -49,6 +49,7 @@
# Processor instance enumerate need the domain to be active
domlist = live.active_domain_list(options.ip, options.virt)
+ proc_class = get_typed_class(options.virt, "Processor")
if test_dom not in domlist:
status = FAIL
logger.error("Domain not started, we're not able to check vcpu")
@@ -56,12 +57,12 @@
for i in range(0, test_vcpus):
devid = "%s/%s" % (test_dom, i)
key_list = { 'DeviceID' : devid,
- 'CreationClassName' : get_typed_class(options.virt, "Processor"),
+ 'CreationClassName' : proc_class,
'SystemName' : test_dom,
'SystemCreationClassName' : get_typed_class(options.virt, "ComputerSystem")
}
try:
- dev = eval(('devices.' + get_typed_class(options.virt, 'Processor')))(options.ip, key_list)
+ dev = GetInstance(options.ip, proc_class, key_list)
if dev.DeviceID == devid:
logger.info("Checked device %s" % devid)
else:
diff -r 0f340004e1cd -r 408dbb3a61b4 suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py
--- a/suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py Fri Oct 24 01:04:38 2008 -0700
+++ b/suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py Mon Oct 27 20:03:31 2008 -0700
@@ -30,7 +30,7 @@
from VirtLib import utils
from XenKvmLib import vxml
from XenKvmLib import assoc
-from XenKvmLib import devices
+from XenKvmLib.enumclass import GetInstance
from XenKvmLib.classes import get_typed_class
from CimTest import Globals
from XenKvmLib.const import do_main
@@ -99,8 +99,8 @@
exp_inst_id_val[cn] = key_list['DeviceID']
try:
- dev_class = devices.get_class(get_typed_class(options.virt, cn))
- devlist[cn] = dev_class(options.ip, key_list)
+ dev_class = get_typed_class(options.virt, cn)
+ devlist[cn] = GetInstance(options.ip, dev_class, key_list)
logelelst[cn] = devlist[cn].DeviceID
except Exception, detail:
print_error(cn, detail)
diff -r 0f340004e1cd -r 408dbb3a61b4 suites/libvirt-cim/lib/XenKvmLib/devices.py
--- a/suites/libvirt-cim/lib/XenKvmLib/devices.py Fri Oct 24 01:04:38 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/devices.py Mon Oct 27 20:03:31 2008 -0700
@@ -40,63 +40,6 @@
def __str__(self):
print self.inst.items()
-class CIM_LogicalDevice(CIM_Instance):
- def __init__(self, server, keys):
- conn = pywbem.WBEMConnection('http://%s' % server,
- (Globals.CIM_USER, Globals.CIM_PASS),
- Globals.CIM_NS)
-
- try:
- classname = self.__class__.__name__
- ref = CIMInstanceName(classname,
- keybindings=keys)
- inst = conn.GetInstance(ref)
- except pywbem.CIMError, arg:
- raise arg
-
- CIM_Instance.__init__(self, inst)
-
-class CIM_LogicalDisk(CIM_LogicalDevice):
- pass
-
-class CIM_NetworkPort(CIM_LogicalDevice):
- pass
-
-class CIM_Memory(CIM_LogicalDevice):
- pass
-
-class CIM_Processor(CIM_LogicalDevice):
- pass
-
-class Xen_LogicalDisk(CIM_LogicalDisk):
- pass
-
-class KVM_LogicalDisk(CIM_LogicalDisk):
- pass
-
-class LXC_LogicalDisk(CIM_LogicalDisk):
- pass
-
-class Xen_NetworkPort(CIM_NetworkPort):
- pass
-
-class KVM_NetworkPort(CIM_NetworkPort):
- pass
-
-class Xen_Memory(CIM_Memory):
- pass
-
-class KVM_Memory(CIM_Memory):
- pass
-
-class LXC_Memory(CIM_Memory):
- pass
-
-class Xen_Processor(CIM_Processor):
- pass
-
-class KVM_Processor(CIM_Processor):
- pass
def get_class(classname):
return eval(classname)
diff -r 0f340004e1cd -r 408dbb3a61b4 suites/libvirt-cim/lib/XenKvmLib/enumclass.py
--- a/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Fri Oct 24 01:04:38 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Mon Oct 27 20:03:31 2008 -0700
@@ -30,332 +30,6 @@
from CimTest import Globals, CimExt
from VirtLib import utils
from CimTest.Globals import logger
-
-class CIM_MyClass(CIM_Instance):
- def __init__(self, server, keys):
- conn = pywbem.WBEMConnection('http://%s' % server,
- (Globals.CIM_USER, Globals.CIM_PASS),
- Globals.CIM_NS)
-
- try:
- classname = self.__class__.__name__
- ref = CIMInstanceName(classname,
- keybindings=keys)
- inst = conn.GetInstance(ref)
- except pywbem.CIMError, arg:
- raise arg
-
- self.conn = conn
- self.inst = inst
- self.ref = ref
-
- CIM_Instance.__init__(self, inst)
-
- def __invoke(self, method, params):
- try:
- return self.conn.InvokeMethod(method,
- self.ref,
- **params)
- except pywbem.CIMError, arg:
- print 'InvokeMethod(%s): %s' % (method, arg[1])
- raise
-
- def __getattr__(self, attr):
- if self.inst.has_key(attr):
- return self.inst[attr]
- else:
- return CimExt._Method(self.__invoke, attr)
-
-class Linux_ComputerSystem(CIM_Instance):
- def __init__(self, server, keys):
- conn = pywbem.WBEMConnection('http://%s' % server,
- (Globals.CIM_USER, Globals.CIM_PASS),
- Globals.CIM_NS)
-
- try:
- classname = self.__class__.__name__
- ref = CIMInstanceName(classname,
- keybindings=keys)
- inst = conn.GetInstance(ref)
- except pywbem.CIMError, arg:
- raise arg
-
- CIM_Instance.__init__(self, inst)
-
-
-class CIM_ComputerSystem(CIM_MyClass):
- pass
-
-class CIM_System(CIM_MyClass):
- pass
-
-class CIM_AllocationCapabilities(CIM_MyClass):
- pass
-
-class CIM_RegisteredProfile(CIM_MyClass):
- pass
-
-class CIM_LogicalDevice(CIM_MyClass):
- pass
-
-class CIM_ResourcePool(CIM_MyClass):
- pass
-
-class CIM_VirtualSystemManagementCapabilities(CIM_MyClass):
- pass
-
-class CIM_ResourcePoolConfigurationCapabilities(CIM_MyClass):
- pass
-
-class CIM_EnabledLogicalElementCapabilities(CIM_MyClass):
- pass
-
-class Virt_VirtualSystemMigrationCapabilities(CIM_MyClass):
- pass
-
-class CIM_VirtualSystemMigrationSettingData(CIM_MyClass):
- pass
-
-class CIM_VirtualSystemSnapshotService(CIM_MyClass):
- pass
-
-class CIM_VirtualSystemSnapshotServiceCapabilities(CIM_MyClass):
- pass
-
-class CIM_NetResourceAllocationSettingData(CIM_MyClass):
- pass
-
-class CIM_MemResourceAllocationSettingData(CIM_MyClass):
- pass
-
-class CIM_ProcResourceAllocationSettingData(CIM_MyClass):
- pass
-
-class CIM_DiskResourceAllocationSettingData(CIM_MyClass):
- pass
-
-class Xen_ComputerSystem(CIM_ComputerSystem):
- pass
-
-class KVM_ComputerSystem(CIM_ComputerSystem):
- pass
-
-class LXC_ComputerSystem(CIM_ComputerSystem):
- pass
-
-class Xen_HostSystem(CIM_System):
- pass
-
-class KVM_HostSystem(CIM_System):
- pass
-
-class LXC_HostSystem(CIM_System):
- pass
-
-class Xen_MigrationJob(CIM_MyClass):
- pass
-
-class Xen_RegisteredProfile(CIM_RegisteredProfile):
- pass
-
-class KVM_RegisteredProfile(CIM_RegisteredProfile):
- pass
-
-class LXC_RegisteredProfile(CIM_RegisteredProfile):
- pass
-
-class Xen_VirtualSystemSettingData(CIM_MyClass):
- pass
-
-class KVM_VirtualSystemSettingData(CIM_MyClass):
- pass
-
-class LXC_VirtualSystemSettingData(CIM_MyClass):
- pass
-
-class Xen_LogicalDisk(CIM_LogicalDevice):
- pass
-
-class KVM_LogicalDisk(CIM_LogicalDevice):
- pass
-
-class Xen_Memory(CIM_LogicalDevice):
- pass
-
-class KVM_Memory(CIM_LogicalDevice):
- pass
-
-class LXC_Memory(CIM_LogicalDevice):
- pass
-
-class LXC_Memory(CIM_LogicalDevice):
- pass
-
-class Xen_Processor(CIM_LogicalDevice):
- pass
-
-class KVM_Processor(CIM_LogicalDevice):
- pass
-
-class Xen_NetworkPort(CIM_LogicalDevice):
- pass
-
-class KVM_NetworkPort(CIM_LogicalDevice):
- pass
-
-class Xen_MemoryPool(CIM_ResourcePool):
- pass
-
-class KVM_MemoryPool(CIM_ResourcePool):
- pass
-
-class LXC_MemoryPool(CIM_ResourcePool):
- pass
-
-class Xen_ProcessorPool(CIM_ResourcePool):
- pass
-
-class KVM_ProcessorPool(CIM_ResourcePool):
- pass
-
-class LXC_ProcessorPool(CIM_ResourcePool):
- pass
-
-class Xen_VirtualSystemManagementCapabilities(CIM_VirtualSystemManagementCapabilities):
- pass
-
-class KVM_VirtualSystemManagementCapabilities(CIM_VirtualSystemManagementCapabilities):
- pass
-
-class LXC_VirtualSystemManagementCapabilities(CIM_VirtualSystemManagementCapabilities):
- pass
-
-class Xen_ResourcePoolConfigurationCapabilities(CIM_ResourcePoolConfigurationCapabilities):
- pass
-
-class KVM_ResourcePoolConfigurationCapabilities(CIM_ResourcePoolConfigurationCapabilities):
- pass
-
-class LXC_ResourcePoolConfigurationCapabilities(CIM_ResourcePoolConfigurationCapabilities):
- pass
-
-class Xen_EnabledLogicalElementCapabilities(CIM_EnabledLogicalElementCapabilities):
- pass
-
-class KVM_EnabledLogicalElementCapabilities(CIM_EnabledLogicalElementCapabilities):
- pass
-
-class LXC_EnabledLogicalElementCapabilities(CIM_EnabledLogicalElementCapabilities):
- pass
-
-class Xen_DiskPool(CIM_ResourcePool):
- pass
-
-class KVM_DiskPool(CIM_ResourcePool):
- pass
-
-class LXC_DiskPool(CIM_ResourcePool):
- pass
-
-class Xen_NetworkPool(CIM_ResourcePool):
- pass
-
-class KVM_NetworkPool(CIM_ResourcePool):
- pass
-
-class LXC_NetworkPool(CIM_ResourcePool):
- pass
-
-class Xen_VirtualSystemMigrationCapabilities(Virt_VirtualSystemMigrationCapabilities):
- pass
-
-class KVM_VirtualSystemMigrationCapabilities(Virt_VirtualSystemMigrationCapabilities):
- pass
-
-class LXC_VirtualSystemMigrationCapabilities(Virt_VirtualSystemMigrationCapabilities):
- pass
-
-class Xen_AllocationCapabilities(CIM_AllocationCapabilities):
- pass
-
-class KVM_AllocationCapabilities(CIM_AllocationCapabilities):
- pass
-
-class LXC_AllocationCapabilities(CIM_AllocationCapabilities):
- pass
-
-class Xen_VirtualSystemMigrationSettingData(CIM_VirtualSystemMigrationSettingData):
- pass
-
-class KVM_VirtualSystemMigrationSettingData(CIM_VirtualSystemMigrationSettingData):
- pass
-
-class LXC_VirtualSystemMigrationSettingData(CIM_VirtualSystemMigrationSettingData):
- pass
-
-class Xen_VirtualSystemSnapshotService(CIM_VirtualSystemSnapshotService):
- pass
-
-class KVM_VirtualSystemSnapshotService(CIM_VirtualSystemSnapshotService):
- pass
-
-class LXC_VirtualSystemSnapshotService(CIM_VirtualSystemSnapshotService):
- pass
-
-class Xen_VirtualSystemSnapshotServiceCapabilities(CIM_VirtualSystemSnapshotServiceCapabilities):
- pass
-
-class KVM_VirtualSystemSnapshotServiceCapabilities(CIM_VirtualSystemSnapshotServiceCapabilities):
- pass
-
-class LXC_VirtualSystemSnapshotServiceCapabilities(CIM_VirtualSystemSnapshotServiceCapabilities):
- pass
-
-class Xen_MemResourceAllocationSettingData(CIM_MemResourceAllocationSettingData):
- pass
-
-class KVM_MemResourceAllocationSettingData(CIM_MemResourceAllocationSettingData):
- pass
-
-class LXC_MemResourceAllocationSettingData(CIM_MemResourceAllocationSettingData):
- pass
-
-class Xen_NetResourceAllocationSettingData(CIM_NetResourceAllocationSettingData):
- pass
-
-class KVM_NetResourceAllocationSettingData(CIM_NetResourceAllocationSettingData):
- pass
-
-class Xen_ProcResourceAllocationSettingData(CIM_ProcResourceAllocationSettingData):
- pass
-
-class KVM_ProcResourceAllocationSettingData(CIM_ProcResourceAllocationSettingData):
- pass
-
-class Xen_DiskResourceAllocationSettingData(CIM_DiskResourceAllocationSettingData):
- pass
-
-class KVM_DiskResourceAllocationSettingData(CIM_DiskResourceAllocationSettingData):
- pass
-
-class KVM_VirtualSystemMigrationService(CIM_MyClass):
- pass
-
-class Xen_VirtualSystemMigrationService(CIM_MyClass):
- pass
-
-class LXC_VirtualSystemMigrationService(CIM_MyClass):
- pass
-
-class Xen_VirtualSystemManagementService(CIM_MyClass):
- pass
-
-class KVM_VirtualSystemManagementService(CIM_MyClass):
- pass
-
-class LXC_VirtualSystemManagementService(CIM_MyClass):
- pass
-
class CIM_CimtestClass(CIM_Instance):
16 years, 1 month