[PATCH] [TEST] Fix VSMS-10_hv_version.py to XFAIL status because that libvirt does not support virConnectGetVersion function
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1218679800 25200
# Node ID 1f30a898cb2e30587ebf094edf57bb911775b4c1
# Parent 0bd92300ca12c4fa58394f0426bc57d054a53c67
[TEST] Fix VSMS-10_hv_version.py to XFAIL status because that libvirt does not support virConnectGetVersion function
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 0bd92300ca12 -r 1f30a898cb2e suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Wed Aug 13 05:47:44 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Wed Aug 13 19:10:00 2008 -0700
@@ -26,9 +26,10 @@ from XenKvmLib import vsms
from XenKvmLib import vsms
from CimTest.Globals import do_main
from CimTest.Globals import logger
-from CimTest.ReturnCodes import FAIL, PASS
+from CimTest.ReturnCodes import FAIL, PASS, XFAIL_RC
sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
+bug_libvirt = "00006"
@do_main(sup_types)
def main():
@@ -51,7 +52,7 @@ def main():
if cim_ver != local_ver:
logger.error("CIM says version is `%s', but libvirt says `%s'" \
% (cim_ver, local_ver))
- return FAIL
+ return XFAIL_RC(bug_libvirt)
else:
logger.info("Verified %s == %s" % (cim_ver, local_ver))
except Exception, details:
16 years, 4 months
[PATCH] Override devices in reference configuration, where the ID is the same
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1218817591 25200
# Node ID df2834c111fe5cee0ec322d7a4f10a0083638eae
# Parent 86d7161daef682ba869fbae74133cfd811f1d306
Override devices in reference configuration, where the ID is the same
Currently, we depend on libvirt to return an error if the client's
combination of ReferenceConfig and ResourceSettings results in a duplicate
device. That error is non-obvious in origin. Since two devices that would
result in the same InstanceID cannot be properly represented by the providers
anyway, this patch adds some logic to properly override such a conflicting
device.
To do this, I had to make sure we set the ID in rasd_to_vdev, which wasn't
previously required. The actual insertion of the device into the appropriate
type list is done by a helper function which checks for (and overrides if
appropriate) a duplicate before tacking the new instance on the end of the
list.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 86d7161daef6 -r df2834c111fe src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Thu Aug 14 07:28:22 2008 -0700
+++ b/src/Virt_VirtualSystemManagementService.c Fri Aug 15 09:26:31 2008 -0700
@@ -411,6 +411,9 @@
free(dev->dev.net.mac);
dev->dev.net.mac = strdup(val);
+ free(dev->id);
+ dev->id = strdup(dev->dev.net.mac);
+
op = CMGetObjectPath(inst, NULL);
if (op == NULL) {
CU_DEBUG("Unable to get instance path");
@@ -449,6 +452,9 @@
dev->dev.disk.source = strdup(val);
dev->dev.disk.disk_type = disk_type_from_file(val);
+ free(dev->id);
+ dev->id = strdup(dev->dev.disk.virtual_dev);
+
return NULL;
}
@@ -469,6 +475,9 @@
free(dev->dev.disk.source);
dev->dev.disk.source = strdup(val);
dev->dev.disk.disk_type = DISK_FS;
+
+ free(dev->id);
+ dev->id = strdup(dev->dev.disk.virtual_dev);
return NULL;
}
@@ -621,6 +630,33 @@
return true;
}
+static char *add_device_nodup(struct virt_device *dev,
+ struct virt_device *list,
+ int max,
+ int *index)
+{
+ int i;
+
+ for (i = 0; i < *index; i++) {
+ struct virt_device *ptr = &list[i];
+
+ if (STREQC(ptr->id, dev->id)) {
+ CU_DEBUG("Overriding device %s from refconf", ptr->id);
+ cleanup_virt_device(ptr);
+ memcpy(ptr, dev, sizeof(*ptr));
+ return NULL;
+ }
+ }
+
+ if (*index == max)
+ return "Internal error: no more device slots";
+
+ memcpy(&list[*index], dev, sizeof(list[*index]));
+ *index += 1;
+
+ return NULL;
+}
+
static const char *classify_resources(CMPIArray *resources,
const char *ns,
struct domain *domain)
@@ -678,15 +714,31 @@
&domain->dev_mem[0],
ns);
} else if (type == CIM_RES_TYPE_DISK) {
+ struct virt_device dev;
+
+ memset(&dev, 0, sizeof(dev));
msg = rasd_to_vdev(inst,
domain,
- &domain->dev_disk[domain->dev_disk_ct++],
+ &dev,
ns);
+ if (msg == NULL)
+ msg = add_device_nodup(&dev,
+ domain->dev_disk,
+ count,
+ &domain->dev_disk_ct);
} else if (type == CIM_RES_TYPE_NET) {
+ struct virt_device dev;
+
+ memset(&dev, 0, sizeof(dev));
msg = rasd_to_vdev(inst,
domain,
- &domain->dev_net[domain->dev_net_ct++],
+ &dev,
ns);
+ if (msg == NULL)
+ msg = add_device_nodup(&dev,
+ domain->dev_net,
+ count,
+ &domain->dev_net_ct);
}
if (msg != NULL)
return msg;
16 years, 4 months
Re: [Libvirt-cim] libvirt-cim 0.5.1/configure fails with 'No package 'libvirt' found '
by U Gopalakrishnan
Thanks!
Installed libvirt-devel and I don't get 'No package 'libvirt' found '. But
now it fails with 'No package 'libcmpiutil' found'.
I worked aorund the problem by setting the following environment variables
LIBCU_CFLAGS=-I/usr/include/
LIBCU_LIBS="-L/usr/lib -lcmpiutil -lz -lm"
and successfully built libvirt-cim.
Thats probably not the correct way of solving this problem, I guess, is
it? (Sorry for my ignorance I am more of Ant/Maven build person, and
hasn't done lot of make builds :- ( )
I have downloaded libcmpiutil source tar from
ftp://libvirt.org/libvirt/CIM/libcmpiutil-0.4.tar.gz and built it and
installed.
What is the correct way of solving the above mentioned problem?
Is there a libcmpiutil-devel package that I should install?
Thanks
Gopal.
16 years, 4 months
[PATCH] Remove hardcoded Xen prefix from VSMigrationService
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1218817830 25200
# Node ID 69b76cf7611d1878d13af3218142b927afd509ca
# Parent 86d7161daef682ba869fbae74133cfd811f1d306
Remove hardcoded Xen prefix from VSMigrationService
Also fix prefix of MigrationJob to be that of the virt type.
Removed unnecessary comments and fixed one comment that was over 80 chars in length.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 86d7161daef6 -r 69b76cf7611d schema/VSMigrationService.mof
--- a/schema/VSMigrationService.mof Thu Aug 14 07:28:22 2008 -0700
+++ b/schema/VSMigrationService.mof Fri Aug 15 09:30:30 2008 -0700
@@ -65,7 +65,7 @@
);
};
-class Virt_MigrationJob : CIM_ConcreteJob {
+class Xen_MigrationJob : CIM_ConcreteJob {
};
[Provider("cmpi::Virt_VSMigrationService")]
diff -r 86d7161daef6 -r 69b76cf7611d src/Virt_VSMigrationService.c
--- a/src/Virt_VSMigrationService.c Thu Aug 14 07:28:22 2008 -0700
+++ b/src/Virt_VSMigrationService.c Fri Aug 15 09:30:30 2008 -0700
@@ -722,8 +722,7 @@
ind_name = ind_type_to_name(ind_type);
- /* FIXME: This is a hack until we un-Xenify this provider */
- ref = CMNewObjectPath(_BROKER, ns, "Xen_Foo", &s);
+ ref = CMGetObjectPath(inst, &s);
if ((ref == NULL) || (s.rc != CMPI_RC_OK)) {
CU_DEBUG("Failed to get job reference");
} else {
@@ -734,15 +733,7 @@
} else {
CU_DEBUG("Unable to get HostSystem properties");
}
- }
- /* FIXME: This should be merged with above once the job path is
- * properly typed
- */
- ref = CMGetObjectPath(inst, &s);
- if ((ref == NULL) || (s.rc != CMPI_RC_OK)) {
- CU_DEBUG("Failed to get job reference");
- } else {
CMPIString *str;
str = CMObjectPathToString(ref, &s);
@@ -758,8 +749,7 @@
CMSetProperty(ind, "SourceInstance",
(CMPIValue *)&inst, CMPI_instance);
- /* Seems like this shouldn't be hardcoded. */
- type = get_typed_class("Xen", ind_name);
+ type = get_typed_class(CLASSNAME(ref), ind_name);
s = stdi_raise_indication(_BROKER, context, type, ns, ind);
@@ -770,33 +760,35 @@
static CMPIInstance *prepare_indication(const CMPIBroker *broker,
CMPIInstance *inst,
- char *ns,
+ struct migration_job *job,
int ind_type,
CMPIStatus *s)
{
const char *ind_name = NULL;
CMPIInstance *ind = NULL;
CMPIInstance *prev_inst = NULL;
+ const char *pfx = NULL;
ind_name = ind_type_to_name(ind_type);
CU_DEBUG("Creating indication.");
- /* Prefix needs to be dynamic */
+
+ pfx = pfx_from_conn(job->conn);
+
ind = get_typed_instance(broker,
- "Xen",
+ pfx,
ind_name,
- ns);
- /* Prefix needs to be dynamic */
+ job->ref_ns);
if (ind == NULL) {
CU_DEBUG("Failed to create ind, type '%s:%s_%s'",
- ns, "Xen", ind_name);
+ job->ref_ns, pfx, ind_name);
goto out;
}
if (ind_type == MIG_MODIFIED) {
- /* Need to copy job inst before attaching as PreviousInstance because
- otherwise the changes we are about to make to job inst are made
- to PreviousInstance as well. */
+ /* Need to copy job inst before attaching as PreviousInstance
+ because otherwise the changes we are about to make to job
+ inst are made to PreviousInstance as well. */
prev_inst = cu_dup_instance(_BROKER, inst, s);
if (s->rc != CMPI_RC_OK || prev_inst == NULL) {
CU_DEBUG("dup_instance failed (%i:%s)", s->rc, s->msg);
@@ -816,15 +808,20 @@
CMPIStatus *s)
{
CMPIObjectPath *ref = NULL;
+ char *type;
+
+ type = get_typed_class(job->ref_cn, "MigrationJob");
ref = CMNewObjectPath(_BROKER,
job->ref_ns,
- "Virt_MigrationJob",
+ type,
s);
- if (s->rc != CMPI_RC_OK) {
+ if (s->rc != CMPI_RC_OK) {
CU_DEBUG("Failed to create job ref for update");
goto out;
}
+
+ free(type);
CMSetNameSpace(ref, job->ref_ns);
CMAddKey(ref, "InstanceID", (CMPIValue *)job->uuid, CMPI_chars);
@@ -855,7 +852,7 @@
return;
}
- ind = prepare_indication(_BROKER, inst, job->ref_ns, MIG_DELETED, &s);
+ ind = prepare_indication(_BROKER, inst, job, MIG_DELETED, &s);
rc = raise_indication(job->context, MIG_DELETED, job->ref_ns,
inst, ind);
@@ -886,7 +883,7 @@
return;
}
- ind = prepare_indication(_BROKER, inst, job->ref_ns, MIG_MODIFIED, &s);
+ ind = prepare_indication(_BROKER, inst, job, MIG_MODIFIED, &s);
CMSetProperty(inst, "JobState",
(CMPIValue *)&state, CMPI_uint16);
@@ -1238,6 +1235,7 @@
CMPIDateTime *start;
CMPIBoolean autodelete = true;
uint16_t state = CIM_JOBSTATE_STARTING;
+ char *type = NULL;
start = CMNewDateTime(_BROKER, &s);
if ((s.rc != CMPI_RC_OK) || CMIsNullObject(start)) {
@@ -1246,9 +1244,10 @@
"Failed to get job start time");
goto out;
}
+
+ type = get_typed_class(job->ref_cn, "MigrationJob");
- jobinst = _migrate_job_new_instance("Virt_MigrationJob",
- job->ref_ns);
+ jobinst = _migrate_job_new_instance(type, job->ref_ns);
if (jobinst == NULL) {
cu_statusf(_BROKER, &s,
CMPI_RC_ERR_FAILED,
@@ -1291,6 +1290,8 @@
CMSetNameSpace(*job_op, job->ref_ns);
out:
+ free(type);
+
return s;
}
@@ -1362,7 +1363,7 @@
goto out;
}
- ind = prepare_indication(_BROKER, inst, job->ref_ns, MIG_CREATED, &s);
+ ind = prepare_indication(_BROKER, inst, job, MIG_CREATED, &s);
rc = raise_indication(job->context, MIG_CREATED, job->ref_ns,
inst, ind);
if (!rc)
16 years, 4 months
libvirt-cim 0.5.1/configure fails with 'No package 'libvirt' found '
by U Gopalakrishnan
Hi,
I am trying to setup libvirt-cim 0.5.1 in RHEL 5.2. After unzipping the
tar ball when I run ./configure it fails with
checking for LIBVIRT... configure: error: Package requirements (libvirt >=
0.3.2) were not met:
No package 'libvirt' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBVIRT_CFLAGS
and LIBVIRT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I have libvirt 0.3.3 installed in the system. Also I have open pegasus 2.7
installed. Here is relevant rpm queries.
[root@pearl2-009002218157 libvirt-cim-0.5.1]# rpm -q libvirt
libvirt-0.3.3-7.el5
[root@pearl2-009002218157 libvirt-cim-0.5.1]# rpm -q tog-pegasus
tog-pegasus-2.7.0-2.el5
[root@pearl2-009002218157 libvirt-cim-0.5.1]#
Any Ideas?
Thanks
Gopal
16 years, 4 months
[PATCH 0 of 3] #3 Add reporting capabilities
by Kaitlin Rupert
This patch set will allow cimtest to generate reports. With a little extra help from a cron script, this can be used to do automated test runs.
There will need to be a follow-up patch that includes the logger error info in the FAIL test block.
16 years, 4 months
CimTest Report on XenFV 14-08-2008
by Deepti B Kalakeri
======================================
CIM Test Report for XenFV
======================================
Distro : RHEL 5.2 Beta
Kernel : 2.6.18-88.el5xen
Xen version : 3.1.2-88.el5
Libvirt : libvirt-0.3.3-7.el5
CIMOM : pegasus
PyWBEM : pywbem-3.14
CIM Schema : cimv216Experimental
LibCMPIutil : 83
LibVirtCIM : 666
CIMTEST : 304
======================================
PASS : 124
FAILED : 7 [All the test cases passed when ran manually]
XFAIL : 0
SKIP : 3
-------------------
Total : 134
======================================
All of the failing tc passed when run manually.
LogicalDisk - 02_nodevs.py: FAIL
LogicalDisk - 03_ld_gi_errs.py: FAIL
Memory - 01_memory.py: FAIL
NetworkPort - 01_netport.py: FAIL
VSSD - 04_vssd_to_rasd.py: FAIL
VirtualSystemManagementService - 09_procrasd_persist.py: FAIL
VirtualSystemManagementService - 12_referenced_config.py: FAIL
Please find the complete report attached with the mail.
Thanks and Regards,
Deepti.
Starting test suite: libvirt-cim
Cleaned log files.
Testing XenFV hypervisor
AllocationCapabilities - 01_enum.py: PASS
AllocationCapabilities - 02_alloccap_gi_errs.py: PASS
ComputerSystem - 01_enum.py: PASS
ComputerSystem - 02_nosystems.py: SKIP
ComputerSystem - 03_defineVS.py: PASS
ComputerSystem - 04_defineStartVS.py: PASS
ComputerSystem - 05_activate_defined_start.py: PASS
ComputerSystem - 06_paused_active_suspend.py: PASS
ComputerSystem - 22_define_suspend.py: PASS
ComputerSystem - 23_suspend_suspend.py: PASS
ComputerSystem - 27_define_suspend_errs.py: PASS
ComputerSystem - 32_start_reboot.py: PASS
ComputerSystem - 33_suspend_reboot.py: PASS
ComputerSystem - 35_start_reset.py: PASS
ComputerSystem - 40_RSC_start.py: PASS
ComputerSystem - 41_cs_to_settingdefinestate.py: PASS
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
ComputerSystem - 42_cs_gi_errs.py: PASS
ComputerSystemIndication - 01_created_indication.py: PASS
ElementAllocatedFromPool - 01_forward.py: PASS
ElementAllocatedFromPool - 02_reverse.py: PASS
ElementAllocatedFromPool - 03_reverse_errs.py: PASS
ElementAllocatedFromPool - 04_forward_errs.py: PASS
ElementCapabilities - 01_forward.py: PASS
ElementCapabilities - 02_reverse.py: PASS
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
ElementCapabilities - 03_forward_errs.py: PASS
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
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
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
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
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS
HostSystem - 01_enum.py: PASS
HostSystem - 02_hostsystem_to_rasd.py: PASS
HostSystem - 03_hs_to_settdefcap.py: PASS
HostSystem - 04_hs_to_EAPF.py: PASS
HostSystem - 05_hs_gi_errs.py: PASS
HostSystem - 06_hs_to_vsms.py: PASS
HostedDependency - 01_forward.py: PASS
HostedDependency - 02_reverse.py: PASS
HostedDependency - 03_enabledstate.py: PASS
HostedDependency - 04_reverse_errs.py: PASS
HostedResourcePool - 01_forward.py: PASS
HostedResourcePool - 02_reverse.py: PASS
HostedResourcePool - 03_forward_errs.py: PASS
HostedResourcePool - 04_reverse_errs.py: PASS
HostedService - 01_forward.py: PASS
HostedService - 02_reverse.py: PASS
HostedService - 03_forward_errs.py: PASS
HostedService - 04_reverse_errs.py: PASS
LogicalDisk - 01_disk.py: PASS
LogicalDisk - 02_nodevs.py: FAIL
ERROR - LogicalDisk returned 1 instead of empty list
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
LogicalDisk - 03_ld_gi_errs.py: FAIL
ERROR - Failed to get instance by the class of Xen_LogicalDisk
ERROR - Exception: (6, u'CIM_ERR_NOT_FOUND: No such instance (hd_domain/hda)')
Memory - 01_memory.py: FAIL
ERROR - Capacity should be 262144 MB instead of 131072 MB
Memory - 02_defgetmem.py: PASS
Memory - 03_mem_gi_errs.py: PASS
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
NetworkPort - 01_netport.py: FAIL
ERROR - Exception: (6, u'CIM_ERR_NOT_FOUND: No such instance (test_domain/00:11:22:33:44:55)')
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
NetworkPort - 02_np_gi_errors.py: PASS
NetworkPort - 03_user_netport.py: SKIP
Processor - 01_processor.py: PASS
Processor - 02_definesys_get_procs.py: PASS
Processor - 03_proc_gi_errs.py: PASS
Profile - 01_enum.py: PASS
Profile - 02_profile_to_elec.py: PASS
Profile - 03_rprofile_gi_errs.py: PASS
RASD - 01_verify_rasd_fields.py: PASS
RASD - 02_enum.py: PASS
RASD - 03_rasd_errs.py: PASS
RASD - 04_disk_rasd_size.py: PASS
ReferencedProfile - 01_verify_refprof.py: PASS
ReferencedProfile - 02_refprofile_errs.py: PASS
ResourceAllocationFromPool - 01_forward.py: PASS
ResourceAllocationFromPool - 02_reverse.py: PASS
ResourceAllocationFromPool - 03_forward_errs.py: PASS
ResourceAllocationFromPool - 04_reverse_errs.py: PASS
libvir: Network error : invalid network pointer in virNetworkFree
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 - Xen_VirtualSystemSettingData with VSSDC_dom was not returned
ERROR - Xen_VirtualSystemSettingData returned 0 VSSD objects, expected only 1
VirtualSystemManagementCapabilities - 01_enum.py: PASS
VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS
VirtualSystemManagementService - 01_definesystem_name.py: PASS
VirtualSystemManagementService - 02_destroysystem.py: PASS
error line 1: syntax error in 'wrong'
VirtualSystemManagementService - 03_definesystem_ess.py: PASS
error line 1: syntax error in 'wrong'
VirtualSystemManagementService - 04_definesystem_ers.py: PASS
libvir: Domain error : invalid domain pointer in virDomainFree
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Domain error : invalid domain pointer in virDomainFree
VirtualSystemManagementService - 05_destroysystem_neg.py: PASS
VirtualSystemManagementService - 06_addresource.py: PASS
error line 1: syntax error in 'ever'
VirtualSystemManagementService - 07_addresource_neg.py: PASS
VirtualSystemManagementService - 08_modifyresource.py: PASS
VirtualSystemManagementService - 09_procrasd_persist.py: FAIL
ERROR - Need to give different bridge name since it already exists
ERROR - SystemExit : 2
Traceback (most recent call last):
File "/data/users/deepti/cimtest/lib/CimTest/Globals.py", line 144, in do_try
rc = f()
File "09_procrasd_persist.py", line 137, in main
destroy_netpool(options.ip, options.virt, test_network)
File "/data/users/deepti/cimtest/suites/libvirt-cim/lib/XenKvmLib/common_util.py", line 404, in destroy_netpool
netxml = NetXML(server, virt=virt, networkname=net_name)
File "/data/users/deepti/cimtest/suites/libvirt-cim/lib/XenKvmLib/vxml.py", line 193, in __init__
sys.exit(SKIP)
SystemExit: 2
ERROR - None
VirtualSystemManagementService - 10_hv_version.py: PASS
VirtualSystemManagementService - 11_define_memrasdunits.py: PASS
VirtualSystemManagementService - 12_referenced_config.py: FAIL
ERROR - Exception: (1, u'CIM_ERR_FAILED: Invalid state transition')
ERROR - Unable to start rstest_domain
ERROR - Unable to start rstest_domain
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Invalid state transition
VirtualSystemMigrationCapabilities - 01_enum.py: PASS
VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS
VirtualSystemMigrationService - 01_migratable_host.py: PASS
VirtualSystemMigrationService - 02_host_migrate_type.py: PASS
libvir: Domain error : invalid domain pointer in virDomainFree
VirtualSystemMigrationService - 05_migratable_host_errs.py: PASS
VirtualSystemMigrationSettingData - 01_enum.py: PASS
VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS
VirtualSystemSettingDataComponent - 01_forward.py: PASS
VirtualSystemSettingDataComponent - 02_reverse.py: PASS
VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS
VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS
VirtualSystemSnapshotService - 01_enum.py: PASS
VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS
16 years, 4 months
[PATCH] Update VirtualSystemManagementCapabilities to show Add/Remove resources
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1218724102 25200
# Node ID 86d7161daef682ba869fbae74133cfd811f1d306
# Parent 9c6a7cfd8c0bd78bef65b60fad37b0873582d09d
Update VirtualSystemManagementCapabilities to show Add/Remove resources
as supported for synchronous calls.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 9c6a7cfd8c0b -r 86d7161daef6 src/Virt_VirtualSystemManagementCapabilities.c
--- a/src/Virt_VirtualSystemManagementCapabilities.c Fri Aug 08 15:21:28 2008 -0700
+++ b/src/Virt_VirtualSystemManagementCapabilities.c Thu Aug 14 07:28:22 2008 -0700
@@ -58,21 +58,27 @@
CMSetProperty(inst, "InstanceID",
(CMPIValue *)"ManagementCapabilities", CMPI_chars);
- array = CMNewArray(broker, 4, CMPI_uint16, &s);
+ array = CMNewArray(broker, 6, CMPI_uint16, &s);
if ((s.rc != CMPI_RC_OK) || CMIsNullObject(array))
goto out;
-
- element = (uint16_t)DEFINE_SYSTEM;
+
+ element = (uint16_t)ADD_RESOURCES;
CMSetArrayElementAt(array, 0, &element, CMPI_uint16);
- element = (uint16_t)DESTROY_SYSTEM;
+ element = (uint16_t)DEFINE_SYSTEM;
CMSetArrayElementAt(array, 1, &element, CMPI_uint16);
- element = (uint16_t)MOD_RESOURCE_SETTINGS;
+ element = (uint16_t)DESTROY_SYSTEM;
CMSetArrayElementAt(array, 2, &element, CMPI_uint16);
+ element = (uint16_t)MOD_RESOURCE_SETTINGS;
+ CMSetArrayElementAt(array, 3, &element, CMPI_uint16);
+
element = (uint16_t)MOD_SYS_SETTINGS;
- CMSetArrayElementAt(array, 3, &element, CMPI_uint16);
+ CMSetArrayElementAt(array, 4, &element, CMPI_uint16);
+
+ element = (uint16_t)RM_RESOURCES;
+ CMSetArrayElementAt(array, 5, &element, CMPI_uint16);
CMSetProperty(inst, "SynchronousMethodsSupported",
(CMPIValue *)&array, CMPI_uint16A);
16 years, 4 months
CimTest Report for KVM on F9 13-08-2008
by Deepti B Kalakeri
========================================================================
CIM Test Report for KVM on F9 with latest libvirt-cim and libcmpiutil
========================================================================
Distro : Fedora 9 Beta
Kernel : 2.6.25-0.121.rc5.git4.fc9
Libvirt : libvirt-0.4.2-1.fc9.x86_64
CIMOM : pegasus
PyWBEM : pywbem-0.6
CIM Schema : cimv216Experimental
LibCMPIutil : 83
LibVirtCIM : 665
CIMTEST : 299
=======================================================
PASS : 125
FAIL : 1
ACUTAL FAILED : 0
XFAIL : 2
SKIP : 6
ACTUAL SKIPPED : 4
---------------------
Total : 134
=======================================================
Here is one of the tc that failed, this tc passed when ran manually:
VirtualSystemManagementService - 06_addresource.py: FAIL
The following skipped tc passed when run manually:
ComputerSystem - 22_define_suspend.py: SKIP
ComputerSystem - 40_RSC_start.py: SKIP
Here is the list of tc that skipped :
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
Below is the list of tc that XFAIL :
ComputerSystem - 32_start_reboot.py: XFAIL Bug: 00005
ComputerSystem - 33_suspend_reboot.py: XFAIL Bug: 00005
These are XFailing as the libvirt does not yet support rebooting a KVM
guest.
Please find the complete report attached with the mail.
Thanks and Regards,
Deepti.
Starting test suite: libvirt-cim
Cleaned log files.
Testing KVM hypervisor
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: SKIP
ERROR - Need to give different bridge name since it already exists
ComputerSystem - 23_suspend_suspend.py: PASS
ComputerSystem - 27_define_suspend_errs.py: PASS
libvir: error : this function is not supported by the hypervisor: virDomainReboot
ComputerSystem - 32_start_reboot.py: XFAIL Bug: 00005
ERROR - Exception: (1, u'CIM_ERR_FAILED: Domain Operation Failed')
ERROR - Unable to 'Reboot' dom 'cs_test_domain' using RequestedStateChange()
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain Operation Failed
Bug:<00005>
libvir: error : this function is not supported by the hypervisor: virDomainReboot
ComputerSystem - 33_suspend_reboot.py: XFAIL Bug: 00005
ERROR - Exception: (1, u'CIM_ERR_FAILED: Domain Operation Failed')
ERROR - Unable to 'Reboot' dom 'test_domain' using RequestedStateChange()
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain Operation Failed
Bug:<00005>
ComputerSystem - 35_start_reset.py: PASS
ComputerSystem - 40_RSC_start.py: SKIP
ERROR - Need to give different bridge name since it already exists
ComputerSystem - 41_cs_to_settingdefinestate.py: PASS
libvir: QEMU error : Domain not found
libvir: Domain error : invalid domain pointer in virDomainFree
ComputerSystem - 42_cs_gi_errs.py: PASS
ComputerSystemIndication - 01_created_indication.py: PASS
ElementAllocatedFromPool - 01_forward.py: PASS
ElementAllocatedFromPool - 02_reverse.py: PASS
ElementAllocatedFromPool - 03_reverse_errs.py: PASS
ElementAllocatedFromPool - 04_forward_errs.py: PASS
ElementCapabilities - 01_forward.py: PASS
ElementCapabilities - 02_reverse.py: PASS
libvir: QEMU error : Domain not found
libvir: Domain error : invalid domain pointer in virDomainFree
ElementCapabilities - 03_forward_errs.py: PASS
libvir: QEMU error : Domain not found
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
libvir: QEMU error : Domain not found
libvir: Domain error : invalid domain pointer in virDomainFree
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
libvir: QEMU error : Domain not found
EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS
HostSystem - 01_enum.py: PASS
HostSystem - 02_hostsystem_to_rasd.py: PASS
HostSystem - 03_hs_to_settdefcap.py: PASS
HostSystem - 04_hs_to_EAPF.py: PASS
HostSystem - 05_hs_gi_errs.py: PASS
HostSystem - 06_hs_to_vsms.py: PASS
HostedDependency - 01_forward.py: PASS
HostedDependency - 02_reverse.py: PASS
HostedDependency - 03_enabledstate.py: PASS
HostedDependency - 04_reverse_errs.py: PASS
HostedResourcePool - 01_forward.py: PASS
HostedResourcePool - 02_reverse.py: PASS
HostedResourcePool - 03_forward_errs.py: PASS
HostedResourcePool - 04_reverse_errs.py: PASS
HostedService - 01_forward.py: PASS
HostedService - 02_reverse.py: PASS
HostedService - 03_forward_errs.py: PASS
HostedService - 04_reverse_errs.py: PASS
LogicalDisk - 01_disk.py: PASS
LogicalDisk - 02_nodevs.py: 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
libvir: Xen Daemon error : internal error failed to connect to xend
libvir: Xen Daemon error : internal error failed to connect to xend
Profile - 03_rprofile_gi_errs.py: PASS
RASD - 01_verify_rasd_fields.py: PASS
RASD - 02_enum.py: PASS
libvir: Xen Daemon error : internal error failed to connect to xend
RASD - 03_rasd_errs.py: PASS
libvir: Storage error : no storage vol with matching path
libvir: Storage error : invalid storage volume pointer in virStorageVolFree
RASD - 04_disk_rasd_size.py: PASS
ReferencedProfile - 01_verify_refprof.py: PASS
ReferencedProfile - 02_refprofile_errs.py: PASS
ResourceAllocationFromPool - 01_forward.py: PASS
ResourceAllocationFromPool - 02_reverse.py: PASS
ResourceAllocationFromPool - 03_forward_errs.py: PASS
ResourceAllocationFromPool - 04_reverse_errs.py: PASS
libvir: Network error : invalid network pointer in virNetworkFree
libvir: QEMU error : Network not found: no network with matching name
libvir: Network error : invalid network pointer in virNetworkFree
ResourceAllocationFromPool - 05_RAPF_err.py: PASS
ResourcePool - 01_enum.py: PASS
ResourcePool - 02_rp_gi_errors.py: PASS
ResourcePoolConfigurationCapabilities - 01_enum.py: PASS
ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS
ResourcePoolConfigurationService - 01_enum.py: PASS
ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS
ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS
ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS
SettingsDefine - 01_forward.py: PASS
SettingsDefine - 02_reverse.py: PASS
SettingsDefine - 03_sds_fwd_errs.py: PASS
SettingsDefine - 04_sds_rev_errs.py: PASS
SettingsDefineCapabilities - 01_forward.py: PASS
SettingsDefineCapabilities - 03_forward_errs.py: PASS
SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS
SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS
SystemDevice - 01_forward.py: PASS
SystemDevice - 02_reverse.py: PASS
SystemDevice - 03_fwderrs.py: PASS
VSSD - 01_enum.py: PASS
VSSD - 02_bootldr.py: SKIP
VSSD - 03_vssd_gi_errs.py: PASS
VSSD - 04_vssd_to_rasd.py: PASS
VirtualSystemManagementCapabilities - 01_enum.py: PASS
VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS
VirtualSystemManagementService - 01_definesystem_name.py: PASS
VirtualSystemManagementService - 02_destroysystem.py: PASS
error line 1: syntax error in 'wrong'
VirtualSystemManagementService - 03_definesystem_ess.py: PASS
error line 1: syntax error in 'wrong'
VirtualSystemManagementService - 04_definesystem_ers.py: PASS
libvir: Domain error : invalid domain pointer in virDomainFree
libvir: QEMU error : Domain not found
libvir: Domain error : invalid domain pointer in virDomainFree
VirtualSystemManagementService - 05_destroysystem_neg.py: PASS
VirtualSystemManagementService - 06_addresource.py: FAIL
ERROR - Got 99:aa:bb:cc:ee:ff, exp 99:aa:bb:cc:ee:ff. Got None, exp default-net51.
ERROR - Error invoking AddRS: add_net_res
ERROR - Error adding rs for net mac
error line 1: syntax error in 'ever'
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
VirtualSystemMigrationCapabilities - 01_enum.py: PASS
VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS
VirtualSystemMigrationService - 01_migratable_host.py: SKIP
VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP
VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP
VirtualSystemMigrationSettingData - 01_enum.py: PASS
VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS
VirtualSystemSettingDataComponent - 01_forward.py: PASS
VirtualSystemSettingDataComponent - 02_reverse.py: PASS
VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS
VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS
VirtualSystemSnapshotService - 01_enum.py: PASS
VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS
16 years, 4 months
[PATCH 0 of 3] #4 Add reporting capabilities
by Kaitlin Rupert
This patch set will allow cimtest to generate reports. With a little extra help from a cron script, this can be used to do automated test runs.
Will need to follow up with a patch that includes the error log messages in the FAIL block.
16 years, 4 months