Xen test report on Fedora 8
by Guo Lian Yun
stro: Fedora8
Kernel: kernel-2.6.23.1-42.fc8
Xen: xen-3.1.2-2.fc8
Libvirt: libvirt-0.4.2-1
CIMOM: sblim-sfcb-1.2.5-0
PyWBEM: pywbem-0.6-2
LibCMPIutil: 72
LibvirtCIM: 532
CIM Schema: cimv216Experimental
Cimtest: 76 and patched with proceesor id update
=============CIMTEST FAILING REPORT========================================
ComputerSystem - 23_suspend_suspend.py: FAIL
It fails because of invoking method `DefineSystem', it's unable to define
domain using DefineSystem()
ComputerSystem - 27_define_suspend_errs.py: FAIL
Same as above
ComputerSystem - 32_start_reboot.py: FAIL
InvokeMethod(DefineSystem): Failed to create domain
ComputerSystem - 33_suspend_reboot.py: FAIL
Same as ComputerSystem.23
ComputerSystem - 35_start_reset.py: FAIL
ComputerSystem - 40_RSC_start.py: FAIL
Same as ComputerSystem.23
ComputerSystem - 41_cs_to_settingdefinestate.py: FAIL
This fails because of processor id, I will fix it later.
ElementAllocatedFromPool - 02_reverse.py: FAIL
No such instance (foo)
ElementConforms - 01_forward.py: FAIL
ElementConforms - 04_ectp_rev_errs.py: FAIL
HostSystem - 03_hs_to_settdefcap.py: FAIL
HostSystem - 04_hs_to_EAPF.py: FAIL
Memory - 02_defgetmem.py: FAIL
Same as ComputerSystem.23
Memory - 03_mem_gi_errs.py: FAIL
Processor - 02_definesys_get_procs.py: FAIL
Same as ComputerSystem.23
Profile - 01_enum.py: FAIL
Mon, 14 Apr 2008 15:40:07:TEST LOG:PRINT - Verifying the fields for
:System Virtualization
Mon, 14 Apr 2008 15:40:07:TEST LOG:PRINT - Verifying the fields for
:Virtual System Profile
Mon, 14 Apr 2008 15:40:07:TEST LOG:PRINT - Verifying the fields for
:Generic Device Resource Virtualization
Profile - 02_profile_to_elec.py: FAIL
SettingsDefineCapabilities - 01_forward.py: FAIL
No such instance (foo)
SettingsDefineCapabilities - 04_forward_vsmsdata.py: FAIL
SystemDevice - 02_reverse.py: FAIL
VSSD - 03_vssd_gi_errs.py: FAIL
VirtualSystemManagementService - 01_definesystem_name.py: FAIL
VirtualSystemMigrationService - 01_migratable_host.py: FAIL
InvokeMethod(CheckVirtualSystemIsMigratableToHost): Provider not found or
not loadable
The provider is registered successfully, and I can get expected result by
wbemcli ein.
Who knows why it is?
VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL
InvokeMethod(CheckVirtualSystemIsMigratableToHost): Provider not found or
not loadable
VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL
InvokeMethod(CheckVirtualSystemIsMigratableToHost): Provider not found or
not loadable
VirtualSystemMigrationSettingData - 01_enum.py: FAIL
Provider not found or not loadable
VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: FAIL
VirtualSystemSettingDataComponent - 01_forward.py: FAIL
No such instance (VSSDC_dom/00:11:22:33:44:aa)
No such instance (VSSDC_dom/xvda)
No such instance (VSSDC_dom/mem)
VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: FAIL
Provider not found or not loadable
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py:
FAIL
====================CIMTEST FULL
REPORT==============================================
AllocationCapabilities - 01_enum.py: PASS
AllocationCapabilities - 02_alloccap_gi_errs.py: PASS
ComputerSystem - 01_enum.py: PASS
ComputerSystem - 02_nosystems.py: PASS
ComputerSystem - 03_defineVS.py: PASS
ComputerSystem - 04_defineStartVS.py: PASS
ComputerSystem - 05_activate_defined_start.py: XFAIL Bug: 85769
ComputerSystem - 06_paused_active_suspend.py: XFAIL Bug: 85769
ComputerSystem - 22_define_suspend.py: PASS
ComputerSystem - 23_suspend_suspend.py: FAIL
ComputerSystem - 27_define_suspend_errs.py: FAIL
ComputerSystem - 32_start_reboot.py: FAIL
InvokeMethod(DefineSystem): Failed to create domain
ComputerSystem - 33_suspend_reboot.py: FAIL
ComputerSystem - 35_start_reset.py: FAIL
ComputerSystem - 40_RSC_start.py: FAIL
ComputerSystem - 41_cs_to_settingdefinestate.py: FAIL
ComputerSystem - 42_cs_gi_errs.py: PASS
ComputerSystemIndication - 01_created_indication.py: FAIL
Got indication: Xen_ComputerSystemCreatedIndication
ElementAllocatedFromPool - 01_forward.py: PASS
ElementAllocatedFromPool - 02_reverse.py: FAIL
No such instance (foo)
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: FAIL
ElementConforms - 02_reverse.py: PASS
ElementConforms - 03_ectp_fwd_errs.py: PASS
ElementConforms - 04_ectp_rev_errs.py: FAIL
ElementSettingData - 01_forward.py: PASS
ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS
EnabledLogicalElementCapabilities - 01_enum.py: PASS
EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS
HostSystem - 01_enum.py: PASS
HostSystem - 02_hostsystem_to_rasd.py: PASS
HostSystem - 03_hs_to_settdefcap.py: FAIL
HostSystem - 04_hs_to_EAPF.py: FAIL
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
LogicalDisk - 03_ld_gi_errs.py: PASS
Memory - 01_memory.py: PASS
Memory - 02_defgetmem.py: FAIL
Memory - 03_mem_gi_errs.py: FAIL
NetworkPort - 01_netport.py: XFAIL Bug: 90844
NetworkPort - 02_np_gi_errors.py: PASS
NetworkPort - 03_user_netport.py: SKIP
Processor - 01_processor.py: PASS
Processor - 02_definesys_get_procs.py: FAIL
Processor - 03_proc_gi_errs.py: PASS
Profile - 01_enum.py: FAIL
Mon, 14 Apr 2008 15:40:07:TEST LOG:PRINT - Verifying the fields for
:System Virtualization
Mon, 14 Apr 2008 15:40:07:TEST LOG:PRINT - Verifying the fields for
:Virtual System Profile
Mon, 14 Apr 2008 15:40:07:TEST LOG:PRINT - Verifying the fields for
:Generic Device Resource Virtualization
Profile - 02_profile_to_elec.py: FAIL
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
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: XFAIL
Bug: 92173
InvokeMethod(AddResourcesToResourcePool): Unknown Method
Bug:<92173>
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: FAIL
No such instance (foo)
SettingsDefineCapabilities - 03_forward_errs.py: XFAIL Bug: Test error:
returned XFAIL without a valid bug string.
Bug:<>
SettingsDefineCapabilities - 04_forward_vsmsdata.py: FAIL
SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS
SystemDevice - 01_forward.py: PASS
SystemDevice - 02_reverse.py: FAIL
SystemDevice - 03_fwderrs.py: PASS
VSSD - 01_enum.py: PASS
VSSD - 02_bootldr.py: PASS
VSSD - 03_vssd_gi_errs.py: FAIL
VSSD - 04_vssd_to_rasd.py: PASS
VirtualSystemManagementCapabilities - 01_enum.py: PASS
VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS
VirtualSystemManagementService - 01_definesystem_name.py: FAIL
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: XFAIL Bug: 90853
InvokeMethod(ModifyResourceSettings): Device `11:22:33:aa:bb:cc' not found
Bug:<90853>
VirtualSystemMigrationCapabilities - 01_enum.py: PASS
VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS
VirtualSystemMigrationService - 01_migratable_host.py: FAIL
InvokeMethod(CheckVirtualSystemIsMigratableToHost): Provider not found or
not loadable
VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL
InvokeMethod(CheckVirtualSystemIsMigratableToHost): Provider not found or
not loadable
VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL
InvokeMethod(CheckVirtualSystemIsMigratableToHost): Provider not found or
not loadable
VirtualSystemMigrationSettingData - 01_enum.py: FAIL
Provider not found or not loadable
VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: FAIL
VirtualSystemSettingDataComponent - 01_forward.py: FAIL
No such instance (VSSDC_dom/00:11:22:33:44:aa)
No such instance (VSSDC_dom/xvda)
No such instance (VSSDC_dom/mem)
VirtualSystemSettingDataComponent - 02_reverse.py: PASS
VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS
VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL
VirtualSystemSnapshotService - 01_enum.py: PASS
VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: FAIL
Provider not found or not loadable
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py:
FAIL
Best,
Regards
Daisy Guo Lian Yun
E-mail: yunguol(a)cn.ibm.com
IBM China Development Lab, Shanghai, China
TEL: (86)-21-61008057
16 years, 8 months
[PATCH] [TEST] update ProcResourceAllocationSettingData instance id in SettingsDefine.02
by Guo Lian Yun
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1208223114 25200
# Node ID 955cc0b1395b743b31027a7d48c82df753d9a9e5
# Parent 137e5079c73fcbfc70e6654cee0b3c3eb3c6acd2
[TEST] update ProcResourceAllocationSettingData instance id in SettingsDefine.02
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 137e5079c73f -r 955cc0b1395b suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py
--- a/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Fri Apr 11 16:58:23 2008 +0530
+++ b/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Mon Apr 14 18:31:54 2008 -0700
@@ -186,7 +186,7 @@ def main():
global rasd_devid
rasd_devid = {
- 'ProcResourceAllocationSettingData' : '%s/%s' % (test_dom, test_vcpus-1),
+ 'ProcResourceAllocationSettingData' : '%s/%s' % (test_dom, 'proc'),
'NetResourceAllocationSettingData' : '%s/%s' % (test_dom, test_mac),
'DiskResourceAllocationSettingData' : '%s/%s' % (test_dom, test_disk),
'MemResourceAllocationSettingData' : '%s/%s' % (test_dom, 'mem')}
16 years, 8 months
[PATCH] [TEST].2# update processor id to reflect recent provider changes
by Guo Lian Yun
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1208138597 25200
# Node ID ede68ec5664dd564fe55ae9a90243d6e53465003
# Parent 137e5079c73fcbfc70e6654cee0b3c3eb3c6acd2
[TEST].2# update processor id to reflect recent provider changes
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 137e5079c73f -r ede68ec5664d suites/libvirt-cim/cimtest/ElementAllocatedFromPool/04_forward_errs.py
--- a/suites/libvirt-cim/cimtest/ElementAllocatedFromPool/04_forward_errs.py Fri Apr 11 16:58:23 2008 +0530
+++ b/suites/libvirt-cim/cimtest/ElementAllocatedFromPool/04_forward_errs.py Sun Apr 13 19:03:17 2008 -0700
@@ -99,7 +99,7 @@ def try_assoc(conn, exp_ret, dev_dom_nam
diskid = "%s/%s" % (dev_dom_name, test_disk)
memid = "%s/mem" % dev_dom_name
netid = "%s/%s" % (dev_dom_name, test_mac)
- procid = "%s/%s" % (dev_dom_name, 0)
+ procid = "%s/proc" % dev_dom_name
lelist = {
get_typed_class(virt, "LogicalDisk") : diskid, \
diff -r 137e5079c73f -r ede68ec5664d suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py
--- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Fri Apr 11 16:58:23 2008 +0530
+++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Sun Apr 13 19:03:17 2008 -0700
@@ -79,7 +79,7 @@ def init_list(vsxml, virt="Xen"):
rasd_values = {
proc_cn : {
- "InstanceID" : '%s/%s' %(test_dom,0),
+ "InstanceID" : '%s/%s' %(test_dom, "proc"),
"ResourceType" : 3,
},
disk_cn : {
diff -r 137e5079c73f -r ede68ec5664d suites/libvirt-cim/cimtest/RASD/01_verify_rasd_fields.py
--- a/suites/libvirt-cim/cimtest/RASD/01_verify_rasd_fields.py Fri Apr 11 16:58:23 2008 +0530
+++ b/suites/libvirt-cim/cimtest/RASD/01_verify_rasd_fields.py Sun Apr 13 19:03:17 2008 -0700
@@ -74,7 +74,7 @@ def init_list(xml, disk, virt="Xen"):
Creating the lists that will be used for comparisons.
"""
procrasd = {
- "InstanceID" : '%s/%s' %(test_dom,0),\
+ "InstanceID" : '%s/%s' %(test_dom, "proc"),\
"ResourceType" : 3,\
"CreationClassName": get_typed_class(virt, 'ProcResourceAllocationSettingData')
}
diff -r 137e5079c73f -r ede68ec5664d suites/libvirt-cim/cimtest/RASD/02_enum.py
--- a/suites/libvirt-cim/cimtest/RASD/02_enum.py Fri Apr 11 16:58:23 2008 +0530
+++ b/suites/libvirt-cim/cimtest/RASD/02_enum.py Sun Apr 13 19:03:17 2008 -0700
@@ -51,7 +51,7 @@ def init_list(virt="Xen"):
Creating the lists that will be used for comparisons.
"""
procrasd = {
- "InstanceID" : '%s/%s' %(test_dom,0),\
+ "InstanceID" : '%s/%s' %(test_dom, "proc"),\
"ResourceType" : 3,\
"CreationClassName": get_typed_class(virt, 'ProcResourceAllocationSettingData')
}
diff -r 137e5079c73f -r ede68ec5664d suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py
--- a/suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py Fri Apr 11 16:58:23 2008 +0530
+++ b/suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py Sun Apr 13 19:03:17 2008 -0700
@@ -82,7 +82,7 @@ def main():
'LogicalDisk' : test_disk,
'Memory' : 'mem',
'NetworkPort' : test_mac,
- 'Processor' : test_vcpus -1 }
+ 'Processor' : 'proc' }
devlist = {}
logelelst = {}
diff -r 137e5079c73f -r ede68ec5664d suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py
--- a/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Fri Apr 11 16:58:23 2008 +0530
+++ b/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Sun Apr 13 19:03:17 2008 -0700
@@ -186,13 +186,13 @@ def main():
global rasd_devid
rasd_devid = {
- 'ProcResourceAllocationSettingData' : '%s/%s' % (test_dom, test_vcpus-1),
+ 'ProcResourceAllocationSettingData' : '%s/%s' % (test_dom, 'proc'),
'NetResourceAllocationSettingData' : '%s/%s' % (test_dom, test_mac),
'DiskResourceAllocationSettingData' : '%s/%s' % (test_dom, test_disk),
'MemResourceAllocationSettingData' : '%s/%s' % (test_dom, 'mem')}
global dev_devid
dev_devid = {
- 'Processor' : '%s/%s' % (test_dom, test_vcpus-1),
+ 'Processor' : '%s/%s' % (test_dom, 'proc'),
'NetworkPort' : '%s/%s' % (test_dom, test_mac),
'LogicalDisk' : '%s/%s' % (test_dom, test_disk),
'Memory' : '%s/%s' % (test_dom, 'mem')}
diff -r 137e5079c73f -r ede68ec5664d suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py
--- a/suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py Fri Apr 11 16:58:23 2008 +0530
+++ b/suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py Sun Apr 13 19:03:17 2008 -0700
@@ -232,7 +232,7 @@ def main():
get_typed_class(options.virt, 'LogicalDisk') : test_disk,
get_typed_class(options.virt, 'Memory') : 'mem',
get_typed_class(options.virt, 'NetworkPort') : test_mac,
- get_typed_class(options.virt, 'Processor') : test_vcpus - 1
+ get_typed_class(options.virt, 'Processor') : 'proc'
}
tc_scen = [
diff -r 137e5079c73f -r ede68ec5664d suites/libvirt-cim/cimtest/SystemDevice/01_forward.py
--- a/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Fri Apr 11 16:58:23 2008 +0530
+++ b/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Sun Apr 13 19:03:17 2008 -0700
@@ -74,7 +74,7 @@ def main():
get_typed_class(options.virt, "NetworkPort") : '%s/%s' % (test_dom, test_mac),
get_typed_class(options.virt, "Memory") : '%s/mem' % test_dom,
get_typed_class(options.virt, "LogicalDisk") : '%s/%s' % (test_dom, test_disk),
- get_typed_class(options.virt, "Processor") : '%s/%s' % (test_dom, test_cpu-1)
+ get_typed_class(options.virt, "Processor") : '%s/proc' % test_dom
}
key_list = {'DeviceID' : '',
diff -r 137e5079c73f -r ede68ec5664d suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py
--- a/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Fri Apr 11 16:58:23 2008 +0530
+++ b/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Sun Apr 13 19:03:17 2008 -0700
@@ -82,7 +82,7 @@ def init_list(virt):
Creating the lists that will be used for comparisons.
"""
procrasd = {
- "InstanceID" : '%s/%s' %(test_dom,0),
+ "InstanceID" : '%s/%s' %(test_dom, "proc"),
"ResourceType" : 3,
"CreationClassName": get_typed_class(virt, 'ProcResourceAllocationSettingData')
}
16 years, 8 months
[PATCH] [TEST] Add -d to duplicate error output to stderr
by zli@linux.vnet.ibm.com
# HG changeset patch
# User Zhengang Li <lizg(a)cn.ibm.com>
# Date 1207811341 -28800
# Node ID 28d173f24fb60cbbe230b7a67de97cb26aaa95dc
# Parent 19ff9c851ed8cb76b74d158a4c439dfa5f4ccb50
[TEST] Add -d to duplicate error output to stderr
This gives us the capability to output the error messages to screen.
The default value is set to false, where error messages will only
be saved in the 'vsmtest.log' file.
Signed-off-by: Zhengang Li <lizg(a)cn.ibm.com>
diff -r 19ff9c851ed8 -r 28d173f24fb6 lib/CimTest/Globals.py
--- a/lib/CimTest/Globals.py Wed Apr 09 18:00:14 2008 +0530
+++ b/lib/CimTest/Globals.py Thu Apr 10 15:09:01 2008 +0800
@@ -68,6 +68,8 @@ parser.add_option("-v", "--virt", dest="
parser.add_option("-v", "--virt", dest="virt", type="choice",
choices=platform_sup, default="Xen",
help="Virt type, select from: 'Xen' & 'KVM' & 'XenFV', default: Xen")
+parser.add_option("-d", "--debug-output", action="store_true", dest="debug",
+ help="Print the output to stderr")
if not CIM_NS:
CIM_NS = "root/cimv2"
@@ -85,11 +87,14 @@ if not CIM_IP:
if not CIM_IP:
CIM_IP = "localhost"
-def log_param():
+def log_param(debug=False):
logger.setLevel(logging.DEBUG)
#create console handler and set level to debug
ch = logging.StreamHandler()
- ch.setLevel(int(CIM_LEVEL))
+ if debug:
+ ch.setLevel(logging.ERROR)
+ else:
+ ch.setLevel(int(CIM_LEVEL))
#create file handler and set level to debug
fh = logging.FileHandler("vsmtest.log")
fh.setLevel(logging.DEBUG)
@@ -98,6 +103,7 @@ def log_param():
\t- %(message)s", datefmt="%a, %d %b %Y %H:%M:%S")
#add formatter to handlers
fh.setFormatter(formatter)
+ formatter = logging.Formatter("%(levelname)s \t- %(message)s")
ch.setFormatter(formatter)
#add handlers to logger
logger.addHandler(fh)
@@ -119,6 +125,7 @@ def do_main(types=['Xen'], p=parser):
else:
def do_try():
try:
+ log_param(options.debug)
from VirtLib.utils import setup_ssh_key
from XenKvmLib.test_doms import destroy_and_undefine_all
setup_ssh_key()
diff -r 19ff9c851ed8 -r 28d173f24fb6 suites/libvirt-cim/main.py
--- a/suites/libvirt-cim/main.py Wed Apr 09 18:00:14 2008 +0530
+++ b/suites/libvirt-cim/main.py Thu Apr 10 15:09:01 2008 +0800
@@ -49,6 +49,9 @@ parser.add_option("-v", "--virt", dest="
parser.add_option("-v", "--virt", dest="virt", type="choice",
choices=platform_sup, default="Xen",
help="Virt type, select from 'Xen' & 'KVM' & 'XenFV'(default: Xen). ")
+parser.add_option("-d", "--debug-output", action="store_true", dest="debug",
+ help="Print the output to stderr")
+
TEST_SUITE = 'cimtest'
@@ -110,14 +113,19 @@ def main():
if options.clean:
remove_old_logs(options.group)
+ if options.debug:
+ debug_param = "-d"
+ else:
+ debug_param = ""
+
print "Testing " + options.virt + " hypervisor"
for test in test_list:
t_path = os.path.join(TEST_SUITE, test['group'])
os.environ['CIM_TC'] = test['test']
- cmd = "cd %s && python %s -i %s -v %s" % \
- (t_path, test['test'], options.ip, options.virt)
+ cmd = "cd %s && python %s -i %s -v %s %s" % \
+ (t_path, test['test'], options.ip, options.virt, debug_param)
status, output = commands.getstatusoutput(cmd)
os_status = os.WEXITSTATUS(status)
16 years, 8 months
[PATCH] Make the 'default' NetRASD allocation include a randomly-generated MAC
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1208203862 25200
# Node ID b8c657f804fda928ea45798f5c1f0ff9f0234889
# Parent d00685b6206aaf99f37527442886c878e1010362
Make the 'default' NetRASD allocation include a randomly-generated MAC
No changes from last time, except I think this can be put in by itself,
to reduce the size of my queue for the VSMS stuff.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r d00685b6206a -r b8c657f804fd src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c Mon Apr 14 10:57:32 2008 -0700
+++ b/src/Virt_SettingsDefineCapabilities.c Mon Apr 14 13:11:02 2008 -0700
@@ -25,6 +25,7 @@
#include <stdbool.h>
#include <sys/vfs.h>
#include <errno.h>
+#include <time.h>
#include <libvirt/libvirt.h>
@@ -52,6 +53,8 @@ const static CMPIBroker *_BROKER;
#define SDC_DISK_MIN 2000
#define SDC_DISK_DEF 5000
#define SDC_DISK_INC 250
+
+#define DEFAULT_MAC_PREFIX "00:16:3e"
static bool rasd_prop_copy_value(struct sdc_rasd_prop src,
struct sdc_rasd_prop *dest)
@@ -430,26 +433,73 @@ static struct sdc_rasd_prop *net_max(con
return rasd;
}
+static const char *_net_rand_mac(void)
+{
+ int r;
+ int ret;
+ unsigned int s;
+ char *mac = NULL;
+ CMPIString *str = NULL;
+ CMPIStatus status;
+
+ srand(time(NULL));
+ r = rand_r(&s);
+
+ ret = asprintf(&mac,
+ "%s:%02x:%02x:%02x",
+ DEFAULT_MAC_PREFIX,
+ r & 0xFF,
+ (r & 0xFF00) >> 8,
+ (r & 0xFF0000) >> 16);
+
+ if (ret == -1)
+ goto out;
+
+ str = CMNewString(_BROKER, mac, &status);
+ if ((str == NULL) || (status.rc != CMPI_RC_OK)) {
+ str = NULL;
+ CU_DEBUG("Failed to create string");
+ goto out;
+ }
+ out:
+ free(mac);
+
+ if (str != NULL)
+ mac = CMGetCharPtr(str);
+ else
+ mac = NULL;
+
+ return mac;
+}
+
static struct sdc_rasd_prop *net_def(const CMPIObjectPath *ref,
CMPIStatus *s)
{
bool ret;
uint16_t num_nics = 1;
struct sdc_rasd_prop *rasd = NULL;
-
+ const char *mac = _net_rand_mac();
struct sdc_rasd_prop tmp[] = {
{"InstanceID", (CMPIValue *)"Default", CMPI_chars},
{"VirtualQuantity", (CMPIValue *)&num_nics, CMPI_uint16},
- PROP_END
- };
-
- ret = dup_rasd_prop_list(tmp, &rasd);
- if (!ret) {
- cu_statusf(_BROKER, s,
- CMPI_RC_ERR_FAILED,
- "Could not copy RASD");
- }
-
+ {"Address", (CMPIValue *)mac, CMPI_chars},
+ PROP_END
+ };
+
+ if (mac == NULL) {
+ cu_statusf(_BROKER, s,
+ CMPI_RC_ERR_FAILED,
+ "Failed to generate new MAC address");
+ goto out;
+ }
+
+ ret = dup_rasd_prop_list(tmp, &rasd);
+ if (!ret) {
+ cu_statusf(_BROKER, s,
+ CMPI_RC_ERR_FAILED,
+ "Could not copy RASD");
+ }
+ out:
return rasd;
}
16 years, 8 months
UML diagrams
by Szymanski, Lukasz K
Hello,
I am not sure if this is the place to post this so I apologize if it is not. Please point me to the right mailing list to answer the following question:
Is it possible for someone to post the UML class and/or instance diagrams (like DMTF), that you are using as the basis of the providers?
Thank you,
Luke Szymanski
Unisys Corp.
16 years, 8 months
[PATCH] Make the 'default' NetRASD allocation include a randomly-generated MAC
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1208189730 25200
# Node ID abf9b4881cc061cca318fe39c3c849f01316cdc8
# Parent da267e967adbd316d30303cc064584ebd36d7123
Make the 'default' NetRASD allocation include a randomly-generated MAC
No changes from last time, except I think this can be put in by itself,
to reduce the size of my queue for the VSMS stuff.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r da267e967adb -r abf9b4881cc0 src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c Mon Apr 14 09:13:15 2008 -0700
+++ b/src/Virt_SettingsDefineCapabilities.c Mon Apr 14 09:15:30 2008 -0700
@@ -25,6 +25,7 @@
#include <stdbool.h>
#include <sys/vfs.h>
#include <errno.h>
+#include <time.h>
#include <libvirt/libvirt.h>
@@ -52,6 +53,8 @@ const static CMPIBroker *_BROKER;
#define SDC_DISK_MIN 2000
#define SDC_DISK_DEF 5000
#define SDC_DISK_INC 250
+
+#define DEFAULT_MAC_PREFIX "00:16:3e"
static bool rasd_prop_copy_value(struct sdc_rasd_prop src,
struct sdc_rasd_prop *dest)
@@ -430,6 +433,45 @@ static struct sdc_rasd_prop *net_max(con
return rasd;
}
+static const char *_net_rand_mac(void)
+{
+ int r;
+ int ret;
+ unsigned int s;
+ char *mac = NULL;
+ CMPIString *str = NULL;
+ CMPIStatus status;
+
+ srand(time(NULL));
+ r = rand_r(&s);
+
+ ret = asprintf(&mac,
+ "%s:%02x:%02x:%02x",
+ DEFAULT_MAC_PREFIX,
+ r & 0xFF,
+ (r & 0xFF00) >> 8,
+ (r & 0xFF0000) >> 16);
+
+ if (ret == -1)
+ goto out;
+
+ str = CMNewString(_BROKER, mac, &status);
+ if ((str == NULL) || (status.rc != CMPI_RC_OK)) {
+ str = NULL;
+ CU_DEBUG("Failed to create string");
+ goto out;
+ }
+ out:
+ free(mac);
+
+ if (str != NULL)
+ mac = CMGetCharPtr(str);
+ else
+ mac = NULL;
+
+ return mac;
+}
+
static struct sdc_rasd_prop *net_def(const CMPIObjectPath *ref,
CMPIStatus *s)
{
@@ -440,6 +482,7 @@ static struct sdc_rasd_prop *net_def(con
struct sdc_rasd_prop tmp[] = {
{"InstanceID", (CMPIValue *)"Default", CMPI_chars},
{"VirtualQuantity", (CMPIValue *)&num_nics, CMPI_uint16},
+ {"Address", (CMPIValue *)_net_rand_mac(), CMPI_chars},
PROP_END
};
16 years, 8 months
[PATCH] Add revision information to the VSMS
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1207934505 25200
# Node ID 52e2f501b44994af849df3a8e354bbe6097cd9d6
# Parent 17cf33b5cf9ac533d51f73037a6f08499dc0a67b
Add revision information to the VSMS
This is done at build time, if possible. If not, the changeset/revision
at the last automake run will be used. This should make it work for the
tarball/release case as well as the RPM build.
The way this works, if you build, then apply a patch or pull a new changeset,
the exposed revision/version information will be stale unless you do a clean.
Since this is really just for the purposes of test-tracking, I think this
is a reasonable restriction that can be minded by the people doing testing.
The changeset hash and revision number are exposed in aptly-named properties
of the VSMS for each platform. If anyone has a better place for these to
show up, or a better format, please bring it up.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 17cf33b5cf9a -r 52e2f501b449 Makefile.am
--- a/Makefile.am Fri Apr 11 09:53:15 2008 -0700
+++ b/Makefile.am Fri Apr 11 10:21:45 2008 -0700
@@ -98,7 +98,8 @@ pkgdata_SCRIPTS = provider-register.sh
EXTRA_DIST = schema $(pkgdata_DATA) $(pkgdata_SCRIPTS) \
libvirt-cim.spec.in libvirt-cim.spec \
- doc/CodingStyle doc/SubmittingPatches
+ doc/CodingStyle doc/SubmittingPatches \
+ .changeset .revision
preinstall:
sh -x base_schema/install_base_schema.sh `pwd`/base_schema
diff -r 17cf33b5cf9a -r 52e2f501b449 acinclude.m4
--- a/acinclude.m4 Fri Apr 11 09:53:15 2008 -0700
+++ b/acinclude.m4 Fri Apr 11 10:21:45 2008 -0700
@@ -313,4 +313,23 @@ AC_DEFUN([DEFINE_DISK_CONFIG],
[
AC_DEFINE_UNQUOTED([DISK_POOL_CONFIG], "$1", [Disk pool config filepath.])
]
-)
\ No newline at end of file
+)
+
+AC_DEFUN([SET_CSET],
+ [
+ if test -d .hg && test -x $(which hg); then
+ cs='-DLIBVIRT_CIM_CS=\"`hg id -i`\"'
+ rv='-DLIBVIRT_CIM_RV=\"`hg id -n`\"'
+ elif test -f .changeset; then
+ cset=$(cat .changeset)
+ revn=$(cat .revision)
+ cs="-DLIBVIRT_CIM_CS=\\\"$cset\\\""
+ rv="-DLIBVIRT_CIM_RV=\\\"$revn\\\""
+ else
+ cs='-DLIBVIRT_CIM_CS=\"Unknown\"'
+ rv='-DLIBVIRT_CIM_RV=\"0\"'
+ fi
+
+ CFLAGS="$CFLAGS $cs $rv"
+ ]
+)
diff -r 17cf33b5cf9a -r 52e2f501b449 autoconfiscate.sh
--- a/autoconfiscate.sh Fri Apr 11 09:53:15 2008 -0700
+++ b/autoconfiscate.sh Fri Apr 11 10:21:45 2008 -0700
@@ -17,4 +17,12 @@ echo "Running autoconf ..." &&
echo "Running autoconf ..." &&
autoconf --force &&
+if test -x $(which hg); then
+ hg id -i > .changeset
+ hg id -n > .revision
+else
+ echo "Unknown" > .changeset
+ echo "0" > .revision
+fi
+
echo "You may now run ./configure"
diff -r 17cf33b5cf9a -r 52e2f501b449 configure.ac
--- a/configure.ac Fri Apr 11 09:53:15 2008 -0700
+++ b/configure.ac Fri Apr 11 10:21:45 2008 -0700
@@ -143,6 +143,7 @@ AC_SUBST(CFLAGS_STRICT)
AC_SUBST(CFLAGS_STRICT)
CFLAGS="$CFLAGS $CC_WARNINGS"
+SET_CSET
# Display configuration options
echo "----------------------------------------------------------"
diff -r 17cf33b5cf9a -r 52e2f501b449 src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Fri Apr 11 09:53:15 2008 -0700
+++ b/src/Virt_VirtualSystemManagementService.c Fri Apr 11 10:21:45 2008 -0700
@@ -1244,6 +1244,12 @@ CMPIStatus get_vsms(const CMPIObjectPath
CMSetProperty(inst, "SystemCreationClassName",
(CMPIValue *)ccname, CMPI_chars);
+ CMSetProperty(inst, "Changeset",
+ (CMPIValue *)LIBVIRT_CIM_CS, CMPI_chars);
+
+ CMSetProperty(inst, "Revision",
+ (CMPIValue *)LIBVIRT_CIM_RV, CMPI_chars);
+
if (is_get_inst) {
s = cu_validate_ref(broker, reference, inst);
if (s.rc != CMPI_RC_OK)
16 years, 8 months