[PATCH] [TEST]#2 Add new tc to verify VSMS.RemoveResourceSettings() with invalid instance
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1237951319 25200
# Node ID 24a928b5726541fa148a0261902836417373ac5a
# Parent 57f08f1c7a1a8b7c9068e1bf0e76368bb92ead26
[TEST]#2 Add new tc to verify VSMS.RemoveResourceSettings() with invalid instance
Updates from 1 to 2:
Create a DiskRASD with invalid InstanceID
Tested for KVM, Xen with current sources and rpm
Signed-off-by: Guolian Yun<yunguol(a)cn.ibm.com>
diff -r 57f08f1c7a1a -r 24a928b57265 suites/libvirt-cim/cimtest/VirtualSystemManagementService/17_removeresource_neg.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/17_removeresource_neg.py Tue Mar 24 20:21:59 2009 -0700
@@ -0,0 +1,76 @@
+#!/usr/bin/python
+#
+# Copyright 2009 IBM Corp.
+#
+# Authors:
+# Guolian Yun <yunguol(a)cn.ibm.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+import sys
+import pywbem
+from pywbem.cim_obj import CIMInstanceName
+from XenKvmLib.vsms import get_vsms_class
+from XenKvmLib.classes import get_typed_class
+from XenKvmLib.vxml import get_class
+from CimTest.Globals import logger
+from XenKvmLib.const import do_main
+from CimTest.ReturnCodes import FAIL, PASS
+
+exp_rc = 6 #CIM_ERR_NOT_FOUND
+exp_desc = 'No such instance (domain/invalid)'
+
+sup_types = ['Xen', 'KVM', 'XenFV']
+default_dom = 'domain'
+
+@do_main(sup_types)
+def main():
+ options = main.options
+ status = PASS
+
+ cxml = get_class(options.virt)(default_dom)
+ ret = cxml.cim_define(options.ip)
+ if not ret:
+ logger.error("Failed to define the dom: %s", default_dom)
+ return FAIL
+
+ rasd = get_typed_class(options.virt, 'DiskResourceAllocationSettingData')
+ rasd_id = '%s/invalid' % default_dom
+ keys = {'InstanceID' : rasd_id}
+
+ try:
+ bad_inst = CIMInstanceName(rasd, keybindings=keys)
+ service = get_vsms_class(options.virt)(options.ip)
+ ret = service.RemoveResourceSettings(ResourceSettings=[bad_inst])
+ if ret[0] == 0:
+ logger.error('RemoveRS should NOT return OK with wrong RS input')
+ status = FAIL
+ except pywbem.CIMError, (rc, desc):
+ if rc == exp_rc and desc.find(exp_desc) >= 0:
+ logger.info('Got expected rc code and error string')
+ else:
+ logger.error('Unexpected rc code %s and description"\n %s',
+ rc, desc)
+ status = FAIL
+ except Exception, details:
+ logger.error(details)
+ status = FAIL
+
+ cxml.undefine(options.ip)
+ return status
+
+if __name__ == "__main__":
+ sys.exit(main())
15 years, 5 months
[PATCH] [TEST] Remove create_using_definesystem()
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1237947348 25200
# Node ID 8a672626eb00a400605fd468cc225d2713bd9872
# Parent 57f08f1c7a1a8b7c9068e1bf0e76368bb92ead26
[TEST] Remove create_using_definesystem()
It's no longer being used.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 57f08f1c7a1a -r 8a672626eb00 suites/libvirt-cim/lib/XenKvmLib/common_util.py
--- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Sun Mar 22 22:39:16 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Tue Mar 24 19:15:48 2009 -0700
@@ -71,64 +71,6 @@
return (0, cs)
-def create_using_definesystem(domain_name, ip, params=None, ref_config=' ',
- exp_err=None, virt='Xen'):
- bug = "85673"
- try:
- class_vsms = eval('vsms.' + \
- get_typed_class(virt, 'VirtualSystemManagementService'))
- service = class_vsms(ip)
-
- if params == None or len(params) == 0:
- vssd, rasd = vsms.default_vssd_rasd_str(
- dom_name=domain_name, virt=virt)
- else:
- vssd = params['vssd']
- rasd = params['rasd']
-
- if exp_err == None or len(exp_err) == 0:
- exp_rc = 0
- exp_desc = ''
-
- else:
- exp_rc = exp_err['exp_rc']
- exp_desc = exp_err['exp_desc']
-
- service.DefineSystem(SystemSettings=vssd,
- ResourceSettings=rasd,
- ReferenceConfiguration=ref_config)
- except pywbem.CIMError, (rc, desc):
- if rc == exp_rc and desc.find(exp_desc) >= 0:
- logger.info('Got expected rc code and error string.')
- if exp_err != None:
- return PASS
- return FAIL
-
- logger.error('Unexpected rc code %s and description:\n %s', rc, desc)
- return FAIL
-
- except Exception, details:
- logger.error('Error invoke method `DefineSystem\'. %s', details)
- return FAIL
-
- if exp_err != None:
- logger.error('DefineSystem should NOT return OK with invalid arg')
- undefine_test_domain(dname, options.ip, virt=virt)
- return XFAIL_RC(bug)
-
- set_uuid(viruuid(domain_name, ip, virt=virt))
- myxml = dumpxml(domain_name, ip, virt=virt)
-
- name = xml_get_dom_name(myxml)
-
- if name != domain_name:
- logger.error ("Name should be '%s' instead of '%s'",
- domain_name, name)
- undefine_test_domain(name, ip, virt=virt)
- return FAIL
-
- return PASS
-
def verify_err_desc(exp_rc, exp_desc, err_no, err_desc):
if err_no == exp_rc and err_desc.find(exp_desc) >= 0:
logger.info("Got expected exception where ")
15 years, 5 months
[PATCH] [TEST] #2 Fix key generation
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1237495701 25200
# Node ID ddf78929ebf1b58e5c48a58d7678c47d8f7c913b
# Parent 5bafbcfb09fd3fb9c4cf532488c92d9ddefc663c
[TEST] #2 Fix key generation
Updates:
-Remove commented out lines of code.
Instead of setting up the ssh keys prior to each test run, the keys need to be
setup before main.py is called. This fixes the issue where cimtest would
complain if an id_rsa key wasn't already available.
Now, if the key isn't available, it generates one. Otherwise, it uses the
available key.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 5bafbcfb09fd -r ddf78929ebf1 runtests
--- a/runtests Wed Mar 18 06:41:56 2009 -0700
+++ b/runtests Thu Mar 19 13:48:21 2009 -0700
@@ -22,6 +22,8 @@
import sys
import os
+sys.path.append('./lib')
+from VirtLib.utils import setup_ssh_key
SUITES_DIR = 'suites'
MAIN_FILE = 'main.py'
@@ -53,6 +55,8 @@
print "\t%s" % ", ".join(available_suites())
return 1
+ setup_ssh_key()
+
suite = sys.argv[1]
print "Starting test suite: %s" % suite
diff -r 5bafbcfb09fd -r ddf78929ebf1 suites/libvirt-cim/lib/XenKvmLib/const.py
--- a/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Mar 18 06:41:56 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Thu Mar 19 13:48:21 2009 -0700
@@ -138,9 +138,7 @@
try:
from CimTest.Globals import logger, log_param
log_param()
- from VirtLib.utils import setup_ssh_key
from XenKvmLib.test_doms import destroy_and_undefine_all
- setup_ssh_key()
destroy_and_undefine_all(options.ip, options.virt)
rc = f()
except Exception, e:
15 years, 5 months
[PATCH] [TEST] Add new tc to verify VSMS.RemoveResourceSettings() with invalid instance
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1237885787 25200
# Node ID 125291db2a71a803ce3ee991dd730aaddb1d3157
# Parent 57f08f1c7a1a8b7c9068e1bf0e76368bb92ead26
[TEST] Add new tc to verify VSMS.RemoveResourceSettings() with invalid instance
Tested for KVM, Xen with current sources and rpm
Signed-off-by: Guolian Yun<yunguol(a)cn.ibm.com>
diff -r 57f08f1c7a1a -r 125291db2a71 suites/libvirt-cim/cimtest/VirtualSystemManagementService/17_removeresource_neg.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/17_removeresource_neg.py Tue Mar 24 02:09:47 2009 -0700
@@ -0,0 +1,71 @@
+#!/usr/bin/python
+#
+# Copyright 2009 IBM Corp.
+#
+# Authors:
+# Guolian Yun <yunguol(a)cn.ibm.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+import sys
+import pywbem
+from XenKvmLib.vsms import get_vsms_class
+from XenKvmLib.vxml import get_class
+from CimTest.Globals import logger
+from XenKvmLib.const import do_main
+from CimTest.ReturnCodes import FAIL, PASS
+
+exp_rc = 13
+exp_desc = 'CIM_ERR_TYPE_MISMATCH'
+
+sup_types = ['Xen', 'KVM', 'XenFV']
+default_dom = 'domain'
+
+@do_main(sup_types)
+def main():
+ options = main.options
+
+ cxml = get_class(options.virt)(default_dom)
+ ret = cxml.cim_define(options.ip)
+ if not ret:
+ logger.error("Failed to define the dom: %s", default_dom)
+ return FAIL
+
+ rc = -1
+ try:
+ bad_inst = 'instance of what ever dfs&'
+ service = get_vsms_class(options.virt)(options.ip)
+ ret = service.RemoveResourceSettings(ResourceSettings=[bad_inst])
+ if ret[0] == 0:
+ logger.error('RemoveRS should NOT return OK with wrong RS input')
+ rc = 0
+ except pywbem.CIMError, (rc, desc):
+ if rc == exp_rc and desc.find(exp_desc) >= 0:
+ logger.info('Got expected rc code and error string')
+ status = PASS
+ else:
+ logger.error('Unexpected rc code %s and description"\n %s',
+ rc, desc)
+ status = FAIL
+ except Exception, details:
+ logger.error(details)
+ status = FAIL
+
+ cxml.undefine(options.ip)
+ return status
+
+if __name__ == "__main__":
+ sys.exit(main())
15 years, 5 months
[PATCH] Expose guest's emulator via the VSSD Emulator attribute
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1237758585 25200
# Node ID bf9fd956eeb00928a7f7e6a8bb3a0de11ef9fde6
# Parent 1aff0d0e9bf49e738827b7157c0df407b814ae7d
Expose guest's emulator via the VSSD Emulator attribute
If the guest has an emulator, set the Emulator attribute appropriately.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 1aff0d0e9bf4 -r bf9fd956eeb0 src/Virt_VSSD.c
--- a/src/Virt_VSSD.c Wed Mar 04 15:25:33 2009 -0800
+++ b/src/Virt_VSSD.c Sun Mar 22 14:49:45 2009 -0700
@@ -135,6 +135,14 @@
(CMPIValue *)&clock, CMPI_uint16);
}
+ if (dominfo->dev_emu != NULL) {
+ CMSetProperty(inst,
+ "Emulator",
+ (CMPIValue *)dominfo->dev_emu->dev.emu.path,
+ CMPI_chars);
+ }
+
+
if ((dominfo->type == DOMAIN_XENFV) ||
(dominfo->type == DOMAIN_KVM))
_set_fv_prop(dominfo, inst);
15 years, 5 months
[PATCH] Advertise the profiles using SLP
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1237409963 25200
# Node ID bdf655b33c77fe916c954f205404f3a8c138a23d
# Parent b40ee621a3ae88009025aa85049fb147c9c773d6
Advertise the profiles using SLP
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r b40ee621a3ae -r bdf655b33c77 src/Virt_RegisteredProfile.c
--- a/src/Virt_RegisteredProfile.c Wed Mar 18 11:47:37 2009 -0700
+++ b/src/Virt_RegisteredProfile.c Wed Mar 18 13:59:23 2009 -0700
@@ -49,6 +49,7 @@
{
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIInstance *instance = NULL;
+ CMPIArray *array;
instance = get_typed_instance(broker,
pfx,
@@ -79,6 +80,19 @@
CMSetProperty(instance, "RegisteredVersion",
(CMPIValue *)profile->reg_version, CMPI_chars);
+ array = CMNewArray(broker, 1, CMPI_uint16, &s);
+ if ((s.rc != CMPI_RC_OK) || (CMIsNullObject(array))) {
+ cu_statusf(broker, &s,
+ CMPI_RC_ERR_FAILED,
+ "Unable to create CMPIArray object");
+ goto out;
+ }
+
+ CMSetArrayElementAt(array, 0, &profile->ad_types, CMPI_uint16);
+
+ CMSetProperty(instance, "AdvertiseTypes",
+ (CMPIValue *)&array, CMPI_uint16A);
+
*_inst = instance;
out:
diff -r b40ee621a3ae -r bdf655b33c77 src/profiles.h
--- a/src/profiles.h Wed Mar 18 11:47:37 2009 -0700
+++ b/src/profiles.h Wed Mar 18 13:59:23 2009 -0700
@@ -41,6 +41,7 @@
.reg_id = "CIM:DSP1057-VirtualSystem-1.0.0a",
.reg_name = "Virtual System Profile",
.reg_version = "1.0.0a",
+ .ad_types = 3,
.scoping_class = "ComputerSystem",
.scoping_profile = NULL
};
@@ -50,6 +51,7 @@
.reg_id = "CIM:DSP1042-SystemVirtualization-1.0.0",
.reg_name = "System Virtualization",
.reg_version = "1.0.0",
+ .ad_types = 3,
.scoping_class = "HostSystem",
.scoping_profile = &VirtualSystem
};
@@ -59,6 +61,7 @@
.reg_id = "CIM:DSP1059-GenericDeviceResourceVirtualization-1.0.0_d",
.reg_name = "Generic Device Resource Virtualization",
.reg_version = "1.0.0",
+ .ad_types = 3,
.central_class = "DiskPool",
.scoping_class = NULL,
.scoping_profile = &SystemVirtualization
@@ -69,6 +72,7 @@
.reg_id = "CIM:DSP1059-GenericDeviceResourceVirtualization-1.0.0_n",
.reg_name = "Generic Device Resource Virtualization",
.reg_version = "1.0.0",
+ .ad_types = 3,
.central_class = "NetworkPool",
.scoping_class = NULL,
.scoping_profile = &SystemVirtualization
@@ -79,6 +83,7 @@
.reg_id = "CIM:DSP1059-GenericDeviceResourceVirtualization-1.0.0_p",
.reg_name = "Generic Device Resource Virtualization",
.reg_version = "1.0.0",
+ .ad_types = 3,
.central_class = "ProcessorPool",
.scoping_class = NULL,
.scoping_profile = &SystemVirtualization
@@ -89,6 +94,7 @@
.reg_id = "CIM:DSP1045-MemoryResourceVirtualization-1.0.0",
.reg_name = "Memory Resource Virtualization",
.reg_version = "1.0.0",
+ .ad_types = 3,
.scoping_class = NULL,
.central_class = "MemoryPool",
.scoping_profile = &SystemVirtualization
@@ -99,6 +105,7 @@
.reg_id = "CIM:DSP1081-VirtualSystemMigration-0.8.1",
.reg_name = "Virtual System Migration",
.reg_version = "0.8.1",
+ .ad_types = 3,
.scoping_class = NULL,
.central_class = "VirtualSystemMigrationService",
.scoping_profile = &SystemVirtualization
@@ -109,6 +116,7 @@
.reg_id = "CIM:DSP1076-KVMRedirection-1.0.0",
.reg_name = "KVM Redirection",
.reg_version = "1.0.0",
+ .ad_types = 3,
.scoping_class = "HostSystem",
.central_class = "ConsoleRedirectionService",
.scoping_profile = &SystemVirtualization
@@ -119,6 +127,7 @@
.reg_id = "CIM:DSP1043-AllocationCapabilities-1.0.0a",
.reg_name = "Allocation Capabilities",
.reg_version = "1.0.0a",
+ .ad_types = 3,
.scoping_class = "ComputerSystem",
.central_class = "AllocationCapabilities",
.scoping_profile = &SystemVirtualization
@@ -129,6 +138,7 @@
.reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_d",
.reg_name = "Resource Allocation",
.reg_version = "1.1.0c",
+ .ad_types = 3,
.scoping_class = "ComputerSystem",
.central_class = "DiskPool",
.scoping_profile = &SystemVirtualization
@@ -139,6 +149,7 @@
.reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_n",
.reg_name = "Resource Allocation",
.reg_version = "1.1.0c",
+ .ad_types = 3,
.scoping_class = "ComputerSystem",
.central_class = "NetworkPool",
.scoping_profile = &SystemVirtualization
@@ -149,6 +160,7 @@
.reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_p",
.reg_name = "Resource Allocation",
.reg_version = "1.1.0c",
+ .ad_types = 3,
.scoping_class = "ComputerSystem",
.central_class = "ProcessorPool",
.scoping_profile = &SystemVirtualization
@@ -159,6 +171,7 @@
.reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_m",
.reg_name = "Resource Allocation",
.reg_version = "1.1.0c",
+ .ad_types = 3,
.scoping_class = "ComputerSystem",
.central_class = "MemoryPool",
.scoping_profile = &SystemVirtualization
15 years, 5 months
[PATCH] Improve random MAC generator
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1237266354 25200
# Node ID 69b7af00d9da92ce169d915bb6b17c493fe0b021
# Parent 160e1a86d82e8ed930e3006098f2af8b230c9834
Improve random MAC generator
Use microseconds since the epoch instead of seconds. When defining a guest
with multiple net devices specified (in which none of them have a MAC supplied),
it's possible for _net_rand_mac() to be called in rapid succession.
Also, initialize s - the seed value passed to rand_r().
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 160e1a86d82e -r 69b7af00d9da src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Mon Mar 16 13:55:02 2009 -0700
+++ b/src/Virt_VirtualSystemManagementService.c Mon Mar 16 22:05:54 2009 -0700
@@ -25,6 +25,7 @@
#include <stdbool.h>
#include <inttypes.h>
#include <time.h>
+#include <sys/time.h>
#include <libvirt/libvirt.h>
#include "cmpidt.h"
@@ -383,8 +384,14 @@
const char *_mac = NULL;
CMPIString *str = NULL;
CMPIStatus status;
+ struct timeval curr_time;
- srand(time(NULL));
+ ret = gettimeofday(&curr_time, NULL);
+ if (ret != 0)
+ goto out;
+
+ srand(curr_time.tv_usec);
+ s = curr_time.tv_usec;
r = rand_r(&s);
ret = asprintf(&mac,
15 years, 5 months
[PATCH] [TEST] #2 Add branch to VSMS/14_define_sys_disk.py to fix Caption settings in DiskRASD
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1237786756 25200
# Node ID 57f08f1c7a1a8b7c9068e1bf0e76368bb92ead26
# Parent 5bafbcfb09fd3fb9c4cf532488c92d9ddefc663c
[TEST] #2 Add branch to VSMS/14_define_sys_disk.py to fix Caption settings in DiskRASD
Updates from 1 to 2:
Set rasd['VirtualDevice'] value by xvda or hda instead of KVM_default_disk_dev or Xen_default_disk_dev
Tested for Xen, XenFV, KVM with current sources and rpm
Signed-off-by: Guolian Yun<yunguol(a)cn.ibm.com>
diff -r 5bafbcfb09fd -r 57f08f1c7a1a suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Wed Mar 18 06:41:56 2009 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Sun Mar 22 22:39:16 2009 -0700
@@ -35,14 +35,14 @@
from CimTest.ReturnCodes import FAIL, PASS
from XenKvmLib.classes import get_typed_class, inst_to_mof
from XenKvmLib.rasd import get_default_rasds
-from XenKvmLib.const import do_main, _image_dir, f9_changeset, \
- KVM_default_disk_dev, get_provider_version
+from XenKvmLib.const import do_main, _image_dir, get_provider_version
from XenKvmLib.vxml import get_class
from XenKvmLib.common_util import parse_instance_id
from XenKvmLib.enumclass import EnumInstances
sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
test_dom = 'rstest_disk_domain'
+libvirt_cim_dasd_caption = 707
def make_long_disk_path(ip):
path = os.path.join(_image_dir, 'cimtest_large_image')
@@ -64,14 +64,19 @@
rasd_list = {}
+ if virt == 'Xen':
+ test_disk = 'xvda'
+ else:
+ test_disk = 'hda'
+
for rasd in rasds:
if rasd.classname == drasd_cn:
- if disk_type != "" and rasd['Caption'] != disk_type:
+ curr_cim_rev, changeset = get_provider_version(virt, ip)
+ if disk_type != "" and rasd['Caption'] != disk_type and \
+ curr_cim_rev >= libvirt_cim_dasd_caption:
continue
rasd['Address'] = addr
- curr_cim_rev, changeset = get_provider_version(virt, ip)
- if changeset == f9_changeset and virt == 'KVM':
- rasd['VirtualDevice'] = KVM_default_disk_dev
+ rasd['VirtualDevice'] = test_disk
rasd_list[rasd.classname] = inst_to_mof(rasd)
return rasd_list
15 years, 5 months
Test Run Summary (Mar 23 2009): KVM on Fedora release 10 (Cambridge) with sfcb
by Guo Lian Yun
=================================================
Test Run Summary (Mar 23 2009): KVM on Fedora release 10 (Cambridge) with
sfcb
=================================================
Distro: Fedora release 10 (Cambridge)
Kernel: 2.6.27.15-170.2.24.fc10.x86_64
libvirt: 0.4.5
Hypervisor: QEMU 0.9.1
CIMOM: sfcb sfcbd 1.3.4preview
Libvirt-cim revision: 830
Libvirt-cim changeset: 6195f98ebe5e
Cimtest revision: 655
Cimtest changeset: 5bafbcfb09fd
=================================================
FAIL : 1
XFAIL : 4
SKIP : 5
PASS : 138
-----------------
Total : 148
=================================================
FAIL Test Summary:
ComputerSystemIndication - 01_created_indication.py: FAIL
=================================================
XFAIL Test Summary:
ComputerSystem - 32_start_reboot.py: XFAIL
ComputerSystem - 33_suspend_reboot.py: XFAIL
VirtualSystemManagementService - 09_procrasd_persist.py: XFAIL
VirtualSystemManagementService - 16_removeresource.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
VirtualSystemMigrationService - 06_remote_live_migration.py: SKIP
=================================================
Full report:
--------------------------------------------------------------------
AllocationCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
AllocationCapabilities - 02_alloccap_gi_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 01_enum.py: PASS
--------------------------------------------------------------------
ComputerSystem - 02_nosystems.py: 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_pause_pause.py: PASS
--------------------------------------------------------------------
ComputerSystem - 27_define_pause_errs.py: PASS
--------------------------------------------------------------------
ComputerSystem - 32_start_reboot.py: XFAIL
ERROR - Got CIM error Unable to reboot domain: this function is
not supported by the hypervisor: virDomainReboot with return code 1
ERROR - Exception: Unable reboot dom 'cs_test_domain'
InvokeMethod(RequestStateChange): Unable to reboot domain: this function
is not supported by the hypervisor: virDomainReboot
Bug:<00005>
--------------------------------------------------------------------
ComputerSystem - 33_suspend_reboot.py: XFAIL
ERROR - Got CIM error State not supported with return code 7
ERROR - Exception: Unable Suspend dom 'test_domain'
InvokeMethod(RequestStateChange): State not supported
Bug:<00012>
--------------------------------------------------------------------
ComputerSystem - 35_start_reset.py: PASS
--------------------------------------------------------------------
ComputerSystem - 40_RSC_start.py: PASS
--------------------------------------------------------------------
ComputerSystem - 41_cs_to_settingdefinestate.py: PASS
--------------------------------------------------------------------
ComputerSystem - 42_cs_gi_errs.py: PASS
--------------------------------------------------------------------
ComputerSystemIndication - 01_created_indication.py: FAIL
ERROR - Exception : Request Failed: 200
Traceback (most recent call last):
File "./lib/XenKvmLib/const.py", line 145, in do_try
File "01_created_indication.py", line 146, in main
sub_list, ind_names, dict = sub_ind(ip, virt)
File "01_created_indication.py", line 60, in sub_ind
sub.subscribe(dict['default_url'], dict['default_auth'])
File
"/data/users/daisy/cimtest/suites/libvirt-cim/lib/XenKvmLib/indication_tester.py",
line 345, in subscribe
"CreateInstance", auth_hdr)
File
"/data/users/daisy/cimtest/suites/libvirt-cim/lib/XenKvmLib/indication_tester.py",
line 330, in __do_cimpost
(resp.status, resp.reason))
Exception: Request Failed: 200
ERROR - None
--------------------------------------------------------------------
ElementAllocatedFromPool - 01_forward.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 03_reverse_errs.py: PASS
--------------------------------------------------------------------
ElementAllocatedFromPool - 04_forward_errs.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 01_forward.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 03_forward_errs.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
ElementCapabilities - 05_hostsystem_cap.py: PASS
--------------------------------------------------------------------
ElementConforms - 01_forward.py: PASS
--------------------------------------------------------------------
ElementConforms - 02_reverse.py: PASS
--------------------------------------------------------------------
ElementConforms - 03_ectp_fwd_errs.py: PASS
--------------------------------------------------------------------
ElementConforms - 04_ectp_rev_errs.py: PASS
--------------------------------------------------------------------
ElementSettingData - 01_forward.py: PASS
--------------------------------------------------------------------
ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS
--------------------------------------------------------------------
EnabledLogicalElementCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS
--------------------------------------------------------------------
HostSystem - 01_enum.py: PASS
--------------------------------------------------------------------
HostSystem - 02_hostsystem_to_rasd.py: PASS
--------------------------------------------------------------------
HostSystem - 03_hs_to_settdefcap.py: PASS
--------------------------------------------------------------------
HostSystem - 04_hs_to_EAPF.py: PASS
--------------------------------------------------------------------
HostSystem - 05_hs_gi_errs.py: PASS
--------------------------------------------------------------------
HostSystem - 06_hs_to_vsms.py: PASS
--------------------------------------------------------------------
HostedAccessPoint - 01_forward.py: PASS
--------------------------------------------------------------------
HostedAccessPoint - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedDependency - 01_forward.py: PASS
--------------------------------------------------------------------
HostedDependency - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedDependency - 03_enabledstate.py: PASS
--------------------------------------------------------------------
HostedDependency - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
HostedResourcePool - 01_forward.py: PASS
--------------------------------------------------------------------
HostedResourcePool - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedResourcePool - 03_forward_errs.py: PASS
--------------------------------------------------------------------
HostedResourcePool - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
HostedService - 01_forward.py: PASS
--------------------------------------------------------------------
HostedService - 02_reverse.py: PASS
--------------------------------------------------------------------
HostedService - 03_forward_errs.py: PASS
--------------------------------------------------------------------
HostedService - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS
--------------------------------------------------------------------
LogicalDisk - 01_disk.py: PASS
--------------------------------------------------------------------
LogicalDisk - 02_nodevs.py: 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
--------------------------------------------------------------------
RASD - 05_disk_rasd_emu_type.py: PASS
--------------------------------------------------------------------
RedirectionService - 01_enum_crs.py: PASS
--------------------------------------------------------------------
RedirectionService - 02_enum_crscap.py: PASS
--------------------------------------------------------------------
RedirectionService - 03_RedirectionSAP_errs.py: PASS
--------------------------------------------------------------------
ReferencedProfile - 01_verify_refprof.py: PASS
--------------------------------------------------------------------
ReferencedProfile - 02_refprofile_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 01_forward.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 02_reverse.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 03_forward_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 04_reverse_errs.py: PASS
--------------------------------------------------------------------
ResourceAllocationFromPool - 05_RAPF_err.py: PASS
--------------------------------------------------------------------
ResourcePool - 01_enum.py: PASS
--------------------------------------------------------------------
ResourcePool - 02_rp_gi_errors.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 01_enum.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py:
PASS
--------------------------------------------------------------------
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS
--------------------------------------------------------------------
ServiceAccessBySAP - 01_forward.py: PASS
--------------------------------------------------------------------
ServiceAccessBySAP - 02_reverse.py: PASS
--------------------------------------------------------------------
SettingsDefine - 01_forward.py: PASS
--------------------------------------------------------------------
SettingsDefine - 02_reverse.py: PASS
--------------------------------------------------------------------
SettingsDefine - 03_sds_fwd_errs.py: PASS
--------------------------------------------------------------------
SettingsDefine - 04_sds_rev_errs.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 01_forward.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 03_forward_errs.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS
--------------------------------------------------------------------
SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS
--------------------------------------------------------------------
SystemDevice - 01_forward.py: PASS
--------------------------------------------------------------------
SystemDevice - 02_reverse.py: PASS
--------------------------------------------------------------------
SystemDevice - 03_fwderrs.py: PASS
--------------------------------------------------------------------
VSSD - 01_enum.py: PASS
--------------------------------------------------------------------
VSSD - 02_bootldr.py: SKIP
--------------------------------------------------------------------
VSSD - 03_vssd_gi_errs.py: PASS
--------------------------------------------------------------------
VSSD - 04_vssd_to_rasd.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 01_definesystem_name.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 02_destroysystem.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 03_definesystem_ess.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 04_definesystem_ers.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 05_destroysystem_neg.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 06_addresource.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 07_addresource_neg.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 08_modifyresource.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 09_procrasd_persist.py: XFAIL
--------------------------------------------------------------------
VirtualSystemManagementService - 10_hv_version.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 11_define_memrasdunits.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 12_referenced_config.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 14_define_sys_disk.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 15_mod_system_settings.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 16_removeresource.py: XFAIL
ERROR - 0 RASD insts for domain/mouse:ps2
No such instance (no device domain/mouse:ps2)
Bug:<00014>
--------------------------------------------------------------------
VirtualSystemMigrationCapabilities - 01_enum.py: PASS
--------------------------------------------------------------------
VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS
--------------------------------------------------------------------
VirtualSystemMigrationService - 01_migratable_host.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 06_remote_live_migration.py: SKIP
--------------------------------------------------------------------
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, 5 months
[PATCH] Fix key generation
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1237399611 25200
# Node ID 5f95e05cced6279241c9200333bc4d41f83c83d8
# Parent daccd46e12ccf2afce3295a41510d7e94ff48d7b
Fix key generation
Instead of setting up the ssh keys prior to each test run, the keys need to be
setup before main.py is called. This fixes the issue where cimtest would
complain if an id_rsa key wasn't already available.
Now, if the key isn't available, it generates one. Otherwise, it uses the
available key.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r daccd46e12cc -r 5f95e05cced6 runtests
--- a/runtests Fri Mar 13 10:31:02 2009 -0700
+++ b/runtests Wed Mar 18 11:06:51 2009 -0700
@@ -22,6 +22,8 @@
import sys
import os
+sys.path.append('./lib')
+from VirtLib.utils import setup_ssh_key
SUITES_DIR = 'suites'
MAIN_FILE = 'main.py'
@@ -53,6 +55,8 @@
print "\t%s" % ", ".join(available_suites())
return 1
+ setup_ssh_key()
+
suite = sys.argv[1]
print "Starting test suite: %s" % suite
diff -r daccd46e12cc -r 5f95e05cced6 suites/libvirt-cim/lib/XenKvmLib/const.py
--- a/suites/libvirt-cim/lib/XenKvmLib/const.py Fri Mar 13 10:31:02 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Mar 18 11:06:51 2009 -0700
@@ -134,9 +134,9 @@
try:
from CimTest.Globals import logger, log_param
log_param()
- from VirtLib.utils import setup_ssh_key
+ #from VirtLib.utils import setup_ssh_key
from XenKvmLib.test_doms import destroy_and_undefine_all
- setup_ssh_key()
+ #setup_ssh_key()
destroy_and_undefine_all(options.ip, options.virt)
rc = f()
except Exception, e:
15 years, 5 months