[PATCH] Add support for "xen" input bus type
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1227551275 28800
# Node ID db393eb037a0782d2e8328d2e2fd0582e185f08b
# Parent 598515fe705be5738226bb0fe789d7645769e4f3
Add support for "xen" input bus type
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 598515fe705b -r db393eb037a0 src/Virt_Device.c
--- a/src/Virt_Device.c Fri Nov 21 15:08:33 2008 -0800
+++ b/src/Virt_Device.c Mon Nov 24 10:27:55 2008 -0800
@@ -242,6 +242,8 @@
bus_str = "USB";
else if (STREQC(bus, "ps2"))
bus_str = "PS2";
+ else if (STREQC(bus, "xen"))
+ bus_str = "Xen";
else
bus_str = "Unknown bus";
diff -r 598515fe705b -r db393eb037a0 src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c Fri Nov 21 15:08:33 2008 -0800
+++ b/src/Virt_SettingsDefineCapabilities.c Mon Nov 24 10:27:55 2008 -0800
@@ -761,6 +761,7 @@
const char *id,
const char *type,
const char *bus,
+ const char *caption,
struct inst_list *list)
{
CMPIStatus s = {CMPI_RC_OK, NULL};
@@ -773,6 +774,15 @@
CMPI_RC_ERR_NOT_FOUND,
"Unable to build input caption");
return s;
+ }
+
+ if (caption != NULL) {
+ if (asprintf(&cap, "%s %s", caption, cap) == -1) {
+ cu_statusf(_BROKER, &s,
+ CMPI_RC_ERR_NOT_FOUND,
+ "Unable to build input caption");
+ goto out;
+ }
}
inst = sdc_rasd_inst(&s, ref, CIM_RES_TYPE_INPUT);
@@ -799,11 +809,20 @@
{
const char *id;
CMPIStatus s = {CMPI_RC_OK, NULL};
- const char *inputs[4][2] = { {"mouse", "ps2"},
- {"mouse", "usb"},
- {"tablet", "usb"},
- {NULL, NULL}
- };
+ const char *xen_inputs[4][3] = { {"mouse", "ps2", "FV"},
+ {"mouse", "usb", "FV"},
+ {"mouse", "xen", "PV"},
+ {NULL, NULL, NULL}
+ };
+ const char *kvm_inputs[4][3] = { {"mouse", "ps2", NULL},
+ {"mouse", "usb", NULL},
+ {"tablet", "usb", NULL},
+ {NULL, NULL, NULL}
+ };
+ const char *lxc_inputs[4][3] = { {"mouse", "usb", NULL},
+ {NULL, NULL, NULL}
+ };
+ char *pfx = NULL;
int i;
switch(template_type) {
@@ -826,13 +845,50 @@
goto out;
}
- for(i = 0; inputs[i][0] != NULL; i++) {
- s = set_input_props(ref, id, inputs[i][0], inputs[i][1], list);
- if (s.rc != CMPI_RC_OK)
- goto out;
+ pfx = class_prefix_name(CLASSNAME(ref));
+
+ if (STREQ(pfx, "Xen")) {
+ for(i = 0; xen_inputs[i][0] != NULL; i++) {
+ s = set_input_props(ref,
+ id,
+ xen_inputs[i][0],
+ xen_inputs[i][1],
+ xen_inputs[i][2],
+ list);
+ if (s.rc != CMPI_RC_OK)
+ goto out;
+ }
+ } else if (STREQ(pfx, "KVM")) {
+ for(i = 0; kvm_inputs[i][0] != NULL; i++) {
+ s = set_input_props(ref,
+ id,
+ kvm_inputs[i][0],
+ kvm_inputs[i][1],
+ kvm_inputs[i][2],
+ list);
+ if (s.rc != CMPI_RC_OK)
+ goto out;
+ }
+ } else if (STREQ(pfx, "LXC")) {
+ for(i = 0; lxc_inputs[i][0] != NULL; i++) {
+ s = set_input_props(ref,
+ id,
+ lxc_inputs[i][0],
+ lxc_inputs[i][1],
+ lxc_inputs[i][2],
+ list);
+ if (s.rc != CMPI_RC_OK)
+ goto out;
+ }
+ } else {
+ cu_statusf(_BROKER, &s,
+ CMPI_RC_ERR_FAILED,
+ "Unsupported guest type");
+ goto out;
}
out:
+ free(pfx);
return s;
}
15 years, 9 months
[PATCH] [TEST] (#2) Fix CSI issues
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1227282354 28800
# Node ID 70dfdd6774dd76fc5b80c98f5e97eb09dca99c01
# Parent 648a7d0bb2f95fab9d43802326745157ece6bec7
[TEST] (#2) Fix CSI issues.
Fixed bug in error message, also fixed handle_request() to deal with the way
sfcb returns indications.
Updates from to to 2:
-Change: logger.error("Cancelling subscription for %s" % ind_name) to
logger.info("Cancelling subscription for %s" % ind_name)
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 648a7d0bb2f9 -r 70dfdd6774dd suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py
--- a/suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py Fri Nov 14 15:38:42 2008 -0800
+++ b/suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py Fri Nov 21 07:45:54 2008 -0800
@@ -97,19 +97,29 @@
return FAIL
-def handle_request(sub, ind_name):
- sub.server.handle_request()
- if len(sub.server.indications) == 0:
- logger.error("No valid indications received")
- return FAIL
- elif str(sub.server.indications[0]) != ind_name:
- logger.error("Received indication %s instead of %s" % \
- (str(sub.server.indications[0])), ind_name)
- return FAIL
+def handle_request(sub, ind_name, dict, exp_ind_ct):
+ #sfcb delivers indications to all registrations, even if the indication
+ #isn't what the registration was subscribed to. So, for modified and
+ #deleted indications, we must loop through until the indication we are
+ #looking for is triggered.
+ for i in range(0, exp_ind_ct):
+ sub.server.handle_request()
+ if len(sub.server.indications) < 1:
+ logger.error("No valid indications received")
+ return FAIL
- return PASS
+ if str(sub.server.indications[0]) == ind_name:
+ sub.unsubscribe(dict['default_auth'])
+ logger.info("Cancelling subscription for %s" % ind_name)
+ return PASS
+ else:
+ sub.server.indications.remove(sub.server.indications[0])
-def poll_for_ind(pid):
+ logger.error("Did not recieve indication %s" % ind_name)
+ return FAIL
+
+def poll_for_ind(pid, ind_name):
+ status = FAIL
for i in range(0, 20):
pw = os.waitpid(pid, os.WNOHANG)
@@ -118,17 +128,17 @@
# Only return a success if waitpid returns the expected pid
# and the return code is 0.
if pw[0] == pid and pw[1] == 0:
- logger.info("Great, got indication successfuly")
+ logger.info("Great, got %s indication successfuly", ind_name)
status = PASS
break
elif pw[1] == 0 and i < 19:
if i % 10 == 0:
- logger.info("In child process, waiting for indication")
+ logger.info("In child, waiting for %s indication", ind_name)
time.sleep(1)
else:
# Time is up and waitpid never returned the expected pid
if pw[0] != pid:
- logger.error("Waited too long for indication")
+ logger.error("Waited too long for %s indication", ind_name)
os.kill(pid, signal.SIGKILL)
else:
logger.error("Received indication error: %d" % pw[1])
@@ -154,7 +164,7 @@
try:
pid = os.fork()
if pid == 0:
- status = handle_request(sub, ind_name)
+ status = handle_request(sub, ind_name, dict, len(ind_list))
if status != PASS:
os._exit(1)
@@ -164,18 +174,18 @@
status = gen_ind(test_dom, options.ip, options.virt, ind)
if status != PASS:
os.kill(pid, signal.SIGKILL)
- return FAIL
+ raise Exception("Unable to generate indication")
- status = poll_for_ind(pid)
+ status = poll_for_ind(pid, ind)
except Exception, details:
- logger.error("Exception: %s" % details)
os.kill(pid, signal.SIGKILL)
- return FAIL
+ raise Exception(details)
except Exception, details:
logger.error("Exception: %s" % details)
- return FAIL
+ status = FAIL
+ #Make sure all subscriptions are really unsubscribed
for ind, sub in sub_list.iteritems():
sub.unsubscribe(dict['default_auth'])
logger.info("Cancelling subscription for %s" % ind_names[ind])
15 years, 9 months
[PATCH] [TEST] Fix HostSystem/04_hs_to_EAPF.py
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1227509815 28800
# Node ID bc56cef9e199bb077f14d324abb3e0f3373b3fe9
# Parent c349be6661452da17725d63a69aee17f5da9a80d
[TEST] Fix HostSystem/04_hs_to_EAPF.py
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r c349be666145 -r bc56cef9e199 suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py
--- a/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Wed Nov 19 22:42:13 2008 -0800
+++ b/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Sun Nov 23 22:56:55 2008 -0800
@@ -86,10 +86,14 @@
npool = get_typed_class(virt, 'NetworkPool')
dpool = get_typed_class(virt, 'DiskPool')
ppool = get_typed_class(virt, 'ProcessorPool')
+ gpool = get_typed_class(virt, 'GraphicsPool')
+ ipool = get_typed_class(virt, 'InputPool')
exp_pllist[dpool] = 'DiskPool/%s' % dp_InstID
exp_pllist[npool] = '%s/%s' %('NetworkPool', net_name)
exp_pllist[ppool] = 'ProcessorPool/0'
exp_pllist[mpool] = 'MemoryPool/0'
+ exp_pllist[gpool] = 'GraphicsPool/0'
+ exp_pllist[ipool] = 'InputPool/0'
for p_inst in pool_assoc:
CName = p_inst.classname
@@ -109,6 +113,8 @@
proc_inst = get_typed_class(virt, "Processor")
net_inst = get_typed_class(virt, "NetworkPort")
mem_inst = get_typed_class(virt, "Memory")
+ display_inst = get_typed_class(virt, "DisplayController")
+ point_inst = get_typed_class(virt, "PointingDevice")
disk = {
'SystemName' : test_dom,
@@ -133,13 +139,27 @@
'DeviceID' : "%s/%s" % (test_dom, "mem"),
'NumberOfBlocks' : test_mem * 1024
}
+ display = {
+ 'SystemName' : test_dom,
+ 'CreationClassName' : display_inst,
+ 'DeviceID' : "%s/%s" % (test_dom, "graphics"),
+ }
+
+ point = {
+ 'SystemName' : test_dom,
+ 'CreationClassName' : point_inst,
+ 'DeviceID' : "%s/%s" % (test_dom, "mouse:ps2")
+ }
+
if virt == "LXC":
eaf_values = { mem_inst : mem}
else:
eaf_values = { proc_inst : proc,
disk_inst : disk,
net_inst : net,
- mem_inst : mem
+ mem_inst : mem,
+ display_inst: display,
+ point_inst : point
}
return eaf_values
@@ -250,7 +270,7 @@
if virt == 'LXC':
exp_len = 1
else:
- exp_len = 4
+ exp_len = 6
status = check_len(an, in_pllist, qcn, exp_len)
if status != PASS:
vsxml.undefine(server)
diff -r c349be666145 -r bc56cef9e199 suites/libvirt-cim/lib/XenKvmLib/logicaldevices.py
--- a/suites/libvirt-cim/lib/XenKvmLib/logicaldevices.py Wed Nov 19 22:42:13 2008 -0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/logicaldevices.py Sun Nov 23 22:56:55 2008 -0800
@@ -56,7 +56,8 @@
def verify_device_values(assoc_info, list_values, virt='Xen'):
- dev_cnames = ['LogicalDisk', 'Memory', 'NetworkPort', 'Processor']
+ dev_cnames = ['LogicalDisk', 'Memory', 'NetworkPort', 'Processor', \
+ 'DisplayController', 'PointingDevice']
for i in range(len(dev_cnames)):
dev_cnames[i] = get_typed_class(virt, dev_cnames[i])
15 years, 9 months
LXC on sfcb Test Run Summary for Nov 24 2008
by Guo Lian Yun
=================================================
LXC on sfcb Test Run Summary for Nov 24 2008
=================================================
Distro: Fedora release 9.90.1 (Rawhide)
Kernel: 2.6.27-0.323.rc6.fc10.x86_64
libvirt: 0.4.5
Hypervisor: QEMU 0.9.1
CIMOM: sfcb sfcbd 1.3.3preview
Libvirt-cim revision: 764
Libvirt-cim changeset: f0d81cc3a080
Cimtest revision: 504
Cimtest changeset: c349be666145
=================================================
FAIL : 5
XFAIL : 1
SKIP : 38
PASS : 95
-----------------
Total : 139
=================================================
FAIL Test Summary:
AllocationCapabilities - 01_enum.py: FAIL
ElementCapabilities - 01_forward.py: FAIL
HostSystem - 02_hostsystem_to_rasd.py: FAIL
VSSD - 04_vssd_to_rasd.py: FAIL
VirtualSystemManagementService - 12_referenced_config.py: FAIL
=================================================
XFAIL Test Summary:
VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL
=================================================
SKIP Test Summary:
ComputerSystem - 02_nosystems.py: SKIP
ComputerSystem - 06_paused_active_suspend.py: SKIP
ComputerSystem - 23_suspend_suspend.py: SKIP
ComputerSystem - 32_start_reboot.py: SKIP
ComputerSystem - 33_suspend_reboot.py: SKIP
ComputerSystem - 35_start_reset.py: SKIP
ComputerSystem - 40_RSC_start.py: SKIP
ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP
ComputerSystemIndication - 01_created_indication.py: SKIP
ElementAllocatedFromPool - 03_reverse_errs.py: SKIP
ElementAllocatedFromPool - 04_forward_errs.py: SKIP
HostedDependency - 03_enabledstate.py: SKIP
LogicalDisk - 01_disk.py: SKIP
LogicalDisk - 02_nodevs.py: SKIP
LogicalDisk - 03_ld_gi_errs.py: SKIP
NetworkPort - 01_netport.py: SKIP
NetworkPort - 03_user_netport.py: SKIP
Processor - 01_processor.py: SKIP
Processor - 02_definesys_get_procs.py: SKIP
Processor - 03_proc_gi_errs.py: SKIP
Profile - 02_profile_to_elec.py: SKIP
RASD - 04_disk_rasd_size.py: SKIP
ResourceAllocationFromPool - 05_RAPF_err.py: SKIP
ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP
ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py:
SKIP
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP
SettingsDefineCapabilities - 05_reverse_vsmcap.py: SKIP
VSSD - 02_bootldr.py: SKIP
VirtualSystemManagementService - 06_addresource.py: SKIP
VirtualSystemManagementService - 08_modifyresource.py: SKIP
VirtualSystemManagementService - 09_procrasd_persist.py: SKIP
VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP
VirtualSystemManagementService - 13_refconfig_additional_devs.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: FAIL
ERROR - LXC_AllocationCapabilities returned 7 instances,
expected 5
ERROR - LXC_AllocationCapabilities returned instance with
unexpected InstanceID u'GraphicsPool/0'
--------------------------------------------------------------------
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: SKIP
--------------------------------------------------------------------
ComputerSystem - 22_define_suspend.py: PASS
--------------------------------------------------------------------
ComputerSystem - 23_suspend_suspend.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 27_define_suspend_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 32_start_reboot.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 33_suspend_reboot.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 35_start_reset.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 40_RSC_start.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 42_cs_gi_errs.py: PASS
--------------------------------------------------------------------
ComputerSystemIndication - 01_created_indication.py: SKIP
--------------------------------------------------------------------
ElementAllocatedFromPool - 01_forward.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 03_reverse_errs.py: SKIP
--------------------------------------------------------------------
ElementAllocatedFromPool - 04_forward_errs.py: SKIP
--------------------------------------------------------------------
ElementCapabilities - 01_forward.py: FAIL
ERROR - 'LXC_ElementCapabilities' association InstanceID error
Class not found
--------------------------------------------------------------------
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 - Failed to get associators information for
LXC_SettingsDefineState
ERROR - Exception: u'LXC_PointingDevice'
Class not found
--------------------------------------------------------------------
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: SKIP
--------------------------------------------------------------------
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: SKIP
--------------------------------------------------------------------
LogicalDisk - 02_nodevs.py: SKIP
ERROR - System has defined domains; unable to run
--------------------------------------------------------------------
LogicalDisk - 03_ld_gi_errs.py: SKIP
--------------------------------------------------------------------
Memory - 01_memory.py: PASS
--------------------------------------------------------------------
Memory - 02_defgetmem.py: PASS
--------------------------------------------------------------------
Memory - 03_mem_gi_errs.py: PASS
--------------------------------------------------------------------
NetworkPort - 01_netport.py: SKIP
--------------------------------------------------------------------
NetworkPort - 02_np_gi_errors.py: PASS
--------------------------------------------------------------------
NetworkPort - 03_user_netport.py: SKIP
--------------------------------------------------------------------
Processor - 01_processor.py: SKIP
--------------------------------------------------------------------
Processor - 02_definesys_get_procs.py: SKIP
--------------------------------------------------------------------
Processor - 03_proc_gi_errs.py: SKIP
--------------------------------------------------------------------
Profile - 01_enum.py: PASS
--------------------------------------------------------------------
Profile - 02_profile_to_elec.py: SKIP
--------------------------------------------------------------------
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: SKIP
--------------------------------------------------------------------
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: SKIP
--------------------------------------------------------------------
ResourcePool - 01_enum.py: PASS
--------------------------------------------------------------------
ResourcePool - 02_rp_gi_errors.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 01_enum.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py:
SKIP
--------------------------------------------------------------------
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP
--------------------------------------------------------------------
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: SKIP
--------------------------------------------------------------------
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: FAIL
ERROR - Mistmatching LXC_InputResourceAllocationSettingData
values
--------------------------------------------------------------------
VirtualSystemManagementCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 01_definesystem_name.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 02_destroysystem.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 03_definesystem_ess.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 04_definesystem_ers.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 05_destroysystem_neg.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 06_addresource.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 07_addresource_neg.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 08_modifyresource.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 09_procrasd_persist.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 10_hv_version.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 12_referenced_config.py: FAIL
ERROR - Unable to build VSSD and RASD instances for
rstest_domain2
--------------------------------------------------------------------
VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 14_define_sys_disk.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL
ERROR - rstest_domain not updated properly.
ERROR - Exp AutomaticRecoveryAction=3, got 2
Bug:<00008>
--------------------------------------------------------------------
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
--------------------------------------------------------------------
15 years, 9 months
Re: KVM on sfcb Test Run Summary for Nov 24 2008
by Guo Lian Yun
Guo Lian Yun/China/IBM@IBMCN wrote on 2008-11-24 10:01:21:
> =================================================
> KVM on sfcb Test Run Summary for Nov 24 2008
> =================================================
> Distro: Fedora release 9.90.1 (Rawhide)
> Kernel: 2.6.27-0.323.rc6.fc10.x86_64
> libvirt: 0.4.5
> Hypervisor: QEMU 0.9.1
> CIMOM: sfcb sfcbd 1.3.3preview
> Libvirt-cim revision: 764
> Libvirt-cim changeset: f0d81cc3a080
> Cimtest revision: 504
> Cimtest changeset: c349be666145
> =================================================
> FAIL : 6
> XFAIL : 2
> SKIP : 4
> PASS : 127
> -----------------
> Total : 139
> =================================================
> FAIL Test Summary:
> AllocationCapabilities - 01_enum.py: FAIL
I cooked up a patch for this today.
> ComputerSystemIndication - 01_created_indication.py: FAIL
Kaitlin fixed this.
> ElementCapabilities - 01_forward.py: FAIL
> HostSystem - 02_hostsystem_to_rasd.py: FAIL
> HostSystem - 04_hs_to_EAPF.py: FAIL
> VSSD - 04_vssd_to_rasd.py: FAIL
> I've fixed them today, and all the patches are under review.
> =================================================
> XFAIL Test Summary:
> ComputerSystem - 32_start_reboot.py: XFAIL
> ComputerSystem - 33_suspend_reboot.py: XFAIL
>
> =================================================
> SKIP Test Summary:
> 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: FAIL
> ERROR - KVM_AllocationCapabilities returned 7 instances, expected 5
> ERROR - KVM_AllocationCapabilities returned instance with
> unexpected InstanceID u'GraphicsPool/0'
> --------------------------------------------------------------------
> AllocationCapabilities - 02_alloccap_gi_errs.py: PASS
> --------------------------------------------------------------------
> ComputerSystem - 01_enum.py: PASS
> --------------------------------------------------------------------
> ComputerSystem - 02_nosystems.py: PASS
> --------------------------------------------------------------------
> ComputerSystem - 03_defineVS.py: PASS
> --------------------------------------------------------------------
> ComputerSystem - 04_defineStartVS.py: PASS
> --------------------------------------------------------------------
> ComputerSystem - 05_activate_defined_start.py: PASS
> --------------------------------------------------------------------
> ComputerSystem - 06_paused_active_suspend.py: 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'Domain Operation Failed')
> ERROR - Unable to 'Reboot' dom 'cs_test_domain' using
> RequestedStateChange()
> InvokeMethod(RequestStateChange): Domain Operation Failed
> Bug:<00005>
> --------------------------------------------------------------------
> ComputerSystem - 33_suspend_reboot.py: XFAIL
> ERROR - Exception: (1, u'Domain Operation Failed')
> ERROR - Unable to 'Reboot' dom 'test_domain' using
RequestedStateChange()
> InvokeMethod(RequestStateChange): 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: FAIL
> ERROR - Exception: not enough arguments for format string
> Got indication: KVM_ComputerSystemCreatedIndication
> ERROR - Received indication error: 256
> ERROR - Exception: not enough arguments for format string
> Got indication: KVM_ComputerSystemCreatedIndication
> ERROR - Received indication error: 256
> --------------------------------------------------------------------
> ElementAllocatedFromPool - 01_forward.py: PASS
> --------------------------------------------------------------------
> ElementAllocatedFromPool - 02_reverse.py: PASS
> --------------------------------------------------------------------
> ElementAllocatedFromPool - 03_reverse_errs.py: PASS
> --------------------------------------------------------------------
> ElementAllocatedFromPool - 04_forward_errs.py: PASS
> --------------------------------------------------------------------
> ElementCapabilities - 01_forward.py: FAIL
> ERROR - 'KVM_ElementCapabilities' association InstanceID error
> Class not found
> --------------------------------------------------------------------
> 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 - Failed to get associators information for
KVM_SettingsDefineState
> ERROR - Exception: u'KVM_PointingDevice'
> Class not found
> --------------------------------------------------------------------
> HostSystem - 03_hs_to_settdefcap.py: PASS
> --------------------------------------------------------------------
> HostSystem - 04_hs_to_EAPF.py: FAIL
> ERROR - DEBUG host_name is elm3b197.beaverton.ibm.com
> ERROR - KeyError : u'KVM_GraphicsPool'
> Traceback (most recent call last):
> File "./lib/XenKvmLib/const.py", line 129, in do_try
> File "04_hs_to_EAPF.py", line 248, in main
> in_pllist = pool_init_list(virt, pool, net_name, default_pool_name)
> File "04_hs_to_EAPF.py", line 102, in pool_init_list
> if exp_pllist[CName] == InstID:
> KeyError: u'KVM_GraphicsPool'
> ERROR - None
> Class not found
> --------------------------------------------------------------------
> 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: PASS
> --------------------------------------------------------------------
> 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: 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: FAIL
> ERROR - Mistmatching KVM_InputResourceAllocationSettingData values
> --------------------------------------------------------------------
> 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
> --------------------------------------------------------------------
> VirtualSystemManagementService - 15_mod_system_settings.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
> --------------------------------------------------------------------
>
15 years, 9 months
[PATCH] [TEST] Fix HostSystem/02_hostsystem_to_rasd.py
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1227506606 28800
# Node ID 0c72a96031f673677c5bd8675fd2232f5572e8cc
# Parent c349be6661452da17725d63a69aee17f5da9a80d
[TEST] Fix HostSystem/02_hostsystem_to_rasd.py
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r c349be666145 -r 0c72a96031f6 suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py
--- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Wed Nov 19 22:42:13 2008 -0800
+++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Sun Nov 23 22:03:26 2008 -0800
@@ -58,7 +58,7 @@
from CimTest.ReturnCodes import PASS, FAIL
from XenKvmLib.rasd import verify_procrasd_values, verify_netrasd_values, \
verify_diskrasd_values, verify_memrasd_values, verify_displayrasd_values, \
-rasd_init_list
+rasd_init_list, verify_inputrasd_values
sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
@@ -180,6 +180,8 @@
status = verify_memrasd_values(assoc_info[index], rasd)
elif 'GraphicsResourceAllocationSettingData' in CCName:
status = verify_displayrasd_values(assoc_info[index], rasd)
+ elif 'InputResourceAllocationSettingData' in CCName:
+ status = verify_inputrasd_values(assoc_info[index], rasd)
else:
status = FAIL
if status != PASS:
15 years, 9 months
[PATCH] [TEST] Update rasd.py and fix VSSD/04_vssd_to_rasd.py
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1227506439 28800
# Node ID 3f4b7b3e1e0b013fa3dee488d0d6070a04c19e45
# Parent c349be6661452da17725d63a69aee17f5da9a80d
[TEST] Update rasd.py and fix VSSD/04_vssd_to_rasd.py
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r c349be666145 -r 3f4b7b3e1e0b suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py
--- a/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Wed Nov 19 22:42:13 2008 -0800
+++ b/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Sun Nov 23 22:00:39 2008 -0800
@@ -54,7 +54,7 @@
from XenKvmLib import rasd
from XenKvmLib.rasd import verify_procrasd_values, verify_netrasd_values, \
verify_diskrasd_values, verify_memrasd_values, verify_displayrasd_values, \
-rasd_init_list
+rasd_init_list, verify_inputrasd_values
from XenKvmLib.const import default_network_name
sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
@@ -176,6 +176,7 @@
diskrasd = rasd_values_list['%s' %in_list['disk']]
memrasd = rasd_values_list['%s' %in_list['mem']]
displayrasd = rasd_values_list['%s' %in_list['display']]
+ inputrasd = rasd_values_list['%s' %in_list['point']]
try:
for rasd_instance in rasd_values_info:
@@ -190,6 +191,8 @@
status = verify_memrasd_values(rasd_instance, memrasd)
elif 'GraphicsResourceAllocationSettingData' in CCName :
status = verify_displayrasd_values(rasd_instance, displayrasd)
+ elif 'InputResourceAllocationSettingData' in CCName:
+ status = verify_inputrasd_values(rasd_instance, inputrasd)
else:
status = FAIL
if status != PASS:
diff -r c349be666145 -r 3f4b7b3e1e0b suites/libvirt-cim/lib/XenKvmLib/rasd.py
--- a/suites/libvirt-cim/lib/XenKvmLib/rasd.py Wed Nov 19 22:42:13 2008 -0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/rasd.py Sun Nov 23 22:00:39 2008 -0800
@@ -35,11 +35,13 @@
dasd_cn = 'DiskResourceAllocationSettingData'
masd_cn = 'MemResourceAllocationSettingData'
dcrasd_cn = 'GraphicsResourceAllocationSettingData'
+irasd_cn = 'InputResourceAllocationSettingData'
proccn = 'Processor'
memcn = 'Memory'
netcn = 'NetworkPort'
diskcn = 'LogicalDisk'
dccn = 'DisplayController'
+pdcn = 'PointingDevice'
def rasd_init_list(vsxml, virt, t_disk, t_dom, t_mac, t_mem):
"""
@@ -51,12 +53,14 @@
net_cn = get_typed_class(virt, netcn)
disk_cn = get_typed_class(virt, diskcn)
dc_cn = get_typed_class(virt, dccn)
+ pd_cn = get_typed_class(virt, pdcn)
in_list = { 'proc' : proc_cn,
'mem' : mem_cn,
'net' : net_cn,
'disk' : disk_cn,
- 'display' : dc_cn
+ 'display' : dc_cn,
+ 'point' : pd_cn
}
try:
@@ -88,6 +92,9 @@
},
dc_cn : {
"InstanceID" : "%s/%s" %(t_dom, "graphics")
+ },
+ pd_cn : {
+ "InstanceID" : "%s/%s" %(t_dom, "mouse:ps2")
}
}
except Exception, details:
@@ -120,6 +127,15 @@
status = PASS
if assoc_info['InstanceID'] != displayrasd_list['InstanceID']:
InstId_err(assoc_info, displayrasd_list)
+ status = FAIL
+ return status
+
+def verify_inputrasd_values(assoc_info, inputrasd_list):
+ status = PASS
+ logger.info('a %s p is %s' %(assoc_info['InstanceID'], inputrasd_list['InstanceID']))
+ if assoc_info['InstanceID'] != inputrasd_list['InstanceID']:
+ logger.info('a % p is %s' %(assoc_info['InstanceID'], inputrasd_list['InstanceID']))
+ InstId_err(assoc_info, inputrasd_list)
status = FAIL
return status
15 years, 9 months
[PATCH] [TEST] Fix ElementCapabilities/01_forward.py
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1227495851 28800
# Node ID 855e3f63702949e07b4d13064f4f0ee60a57314c
# Parent c349be6661452da17725d63a69aee17f5da9a80d
[TEST] Fix ElementCapabilities/01_forward.py
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r c349be666145 -r 855e3f637029 suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py
--- a/suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py Wed Nov 19 22:42:13 2008 -0800
+++ b/suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py Sun Nov 23 19:04:11 2008 -0800
@@ -52,6 +52,9 @@
valid_elc_id = append_to_list(server, virt, "MemoryPool", valid_elc_id)
valid_elc_id = append_to_list(server, virt, "ProcessorPool", valid_elc_id)
valid_elc_id = append_to_list(server, virt, "NetworkPool", valid_elc_id)
+ valid_elc_id = append_to_list(server, virt, "GraphicsPool", valid_elc_id)
+ valid_elc_id = append_to_list(server, virt, "InputPool", valid_elc_id)
+
except Exception, details:
logger.error("Exception: In fn set_pool_info(): %s", details)
return FAIL, valid_elc_id
15 years, 9 months
[PATCH] [TEST] Fix AllocationCapabilities/01_enum.py, add GraphicsPool and InputPool
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1227495264 28800
# Node ID 78440b9ec90f26c0a80e0bc932cb7d0e5078efdc
# Parent c349be6661452da17725d63a69aee17f5da9a80d
[TEST] Fix AllocationCapabilities/01_enum.py, add GraphicsPool and InputPool
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r c349be666145 -r 78440b9ec90f suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py
--- a/suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py Wed Nov 19 22:42:13 2008 -0800
+++ b/suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py Sun Nov 23 18:54:24 2008 -0800
@@ -87,7 +87,9 @@
pt = [get_typed_class(options.virt, 'MemoryPool'),
get_typed_class(options.virt, 'ProcessorPool'),
get_typed_class(options.virt, 'DiskPool'),
- get_typed_class(options.virt, 'NetworkPool')]
+ get_typed_class(options.virt, 'NetworkPool'),
+ get_typed_class(options.virt, 'GraphicsPool'),
+ get_typed_class(options.virt, 'InputPool')]
pools, ac = enum_pools_and_ac(options.ip, cn, pt)
if len(pools) < 4:
15 years, 9 months
KVM on sfcb Test Run Summary for Nov 24 2008
by Guo Lian Yun
=================================================
KVM on sfcb Test Run Summary for Nov 24 2008
=================================================
Distro: Fedora release 9.90.1 (Rawhide)
Kernel: 2.6.27-0.323.rc6.fc10.x86_64
libvirt: 0.4.5
Hypervisor: QEMU 0.9.1
CIMOM: sfcb sfcbd 1.3.3preview
Libvirt-cim revision: 764
Libvirt-cim changeset: f0d81cc3a080
Cimtest revision: 504
Cimtest changeset: c349be666145
=================================================
FAIL : 6
XFAIL : 2
SKIP : 4
PASS : 127
-----------------
Total : 139
=================================================
FAIL Test Summary:
AllocationCapabilities - 01_enum.py: FAIL
ComputerSystemIndication - 01_created_indication.py: FAIL
ElementCapabilities - 01_forward.py: FAIL
HostSystem - 02_hostsystem_to_rasd.py: FAIL
HostSystem - 04_hs_to_EAPF.py: FAIL
VSSD - 04_vssd_to_rasd.py: FAIL
=================================================
XFAIL Test Summary:
ComputerSystem - 32_start_reboot.py: XFAIL
ComputerSystem - 33_suspend_reboot.py: XFAIL
=================================================
SKIP Test Summary:
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: FAIL
ERROR - KVM_AllocationCapabilities returned 7 instances,
expected 5
ERROR - KVM_AllocationCapabilities returned instance with
unexpected InstanceID u'GraphicsPool/0'
--------------------------------------------------------------------
AllocationCapabilities - 02_alloccap_gi_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 01_enum.py: PASS
--------------------------------------------------------------------
ComputerSystem - 02_nosystems.py: PASS
--------------------------------------------------------------------
ComputerSystem - 03_defineVS.py: PASS
--------------------------------------------------------------------
ComputerSystem - 04_defineStartVS.py: PASS
--------------------------------------------------------------------
ComputerSystem - 05_activate_defined_start.py: PASS
--------------------------------------------------------------------
ComputerSystem - 06_paused_active_suspend.py: 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'Domain Operation Failed')
ERROR - Unable to 'Reboot' dom 'cs_test_domain' using
RequestedStateChange()
InvokeMethod(RequestStateChange): Domain Operation Failed
Bug:<00005>
--------------------------------------------------------------------
ComputerSystem - 33_suspend_reboot.py: XFAIL
ERROR - Exception: (1, u'Domain Operation Failed')
ERROR - Unable to 'Reboot' dom 'test_domain' using
RequestedStateChange()
InvokeMethod(RequestStateChange): 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: FAIL
ERROR - Exception: not enough arguments for format string
Got indication: KVM_ComputerSystemCreatedIndication
ERROR - Received indication error: 256
ERROR - Exception: not enough arguments for format string
Got indication: KVM_ComputerSystemCreatedIndication
ERROR - Received indication error: 256
--------------------------------------------------------------------
ElementAllocatedFromPool - 01_forward.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 03_reverse_errs.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 04_forward_errs.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 01_forward.py: FAIL
ERROR - 'KVM_ElementCapabilities' association InstanceID error
Class not found
--------------------------------------------------------------------
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 - Failed to get associators information for
KVM_SettingsDefineState
ERROR - Exception: u'KVM_PointingDevice'
Class not found
--------------------------------------------------------------------
HostSystem - 03_hs_to_settdefcap.py: PASS
--------------------------------------------------------------------
HostSystem - 04_hs_to_EAPF.py: FAIL
ERROR - DEBUG host_name is elm3b197.beaverton.ibm.com
ERROR - KeyError : u'KVM_GraphicsPool'
Traceback (most recent call last):
File "./lib/XenKvmLib/const.py", line 129, in do_try
File "04_hs_to_EAPF.py", line 248, in main
in_pllist = pool_init_list(virt, pool, net_name, default_pool_name)
File "04_hs_to_EAPF.py", line 102, in pool_init_list
if exp_pllist[CName] == InstID:
KeyError: u'KVM_GraphicsPool'
ERROR - None
Class not found
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
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: 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: FAIL
ERROR - Mistmatching KVM_InputResourceAllocationSettingData
values
--------------------------------------------------------------------
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
--------------------------------------------------------------------
VirtualSystemManagementService - 15_mod_system_settings.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
--------------------------------------------------------------------
15 years, 9 months