[PATCH] RASD: wrong provider registration for NetRASD
by Heidi Eckhart
# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1201861035 -3600
# Node ID cb0e8b858f4243a7086f627d65a07075b9f31ebc
# Parent 405c0a9cdc3f8a2e3fce2a5245f23a1645ccc5ea
RASD: wrong provider registration for NetRASD
type on registration file - the name of the provider is
Virt_RASD instead of Virt_RASDP. Only occurs for NetRASD.
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r 405c0a9cdc3f -r cb0e8b858f42 schema/ResourceAllocationSettingData.registration
--- a/schema/ResourceAllocationSettingData.registration Fri Feb 01 11:10:00 2008 +0100
+++ b/schema/ResourceAllocationSettingData.registration Fri Feb 01 11:17:15 2008 +0100
@@ -1,10 +1,10 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes
Xen_DiskResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
-Xen_NetResourceAllocationSettingData root/virt Virt_RASDP Virt_RASD instance
+Xen_NetResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
Xen_ProcResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
Xen_MemResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
KVM_DiskResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
-KVM_NetResourceAllocationSettingData root/virt Virt_RASDP Virt_RASD instance
+KVM_NetResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
KVM_ProcResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
KVM_MemResourceAllocationSettingData root/virt Virt_RASD Virt_RASD instance
16 years, 10 months
[PATCH] RegisteredProfile: getInstance with wrong hypervisor segfaults
by Heidi Eckhart
# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1201860600 -3600
# Node ID 405c0a9cdc3f8a2e3fce2a5245f23a1645ccc5ea
# Parent d03cf2a819d5df30e4c67ba0b733e14cc0d41607
RegisteredProfile: getInstance with wrong hypervisor segfaults
wbemgi 'http://localhost:5988/root/interop:Xen_RegisteredProfile.InstanceID="CIM:DSP1042-SystemVirtualization-1.0.0"'
on a KVM system segfaults.
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r d03cf2a819d5 -r 405c0a9cdc3f src/Virt_RegisteredProfile.c
--- a/src/Virt_RegisteredProfile.c Thu Jan 31 11:01:59 2008 +0100
+++ b/src/Virt_RegisteredProfile.c Fri Feb 01 11:10:00 2008 +0100
@@ -134,8 +134,12 @@ static CMPIStatus get_prof(const CMPIObj
int i;
conn = connect_by_classname(_BROKER, CLASSNAME(ref), &s);
- if (conn == NULL)
- return s;
+ if (conn == NULL) {
+ cu_statusf(_BROKER, &s,
+ CMPI_RC_ERR_NOT_FOUND,
+ "No such instance");
+ goto out;
+ }
if (cu_get_str_path(ref, "InstanceID", &id) != CMPI_RC_OK) {
cu_statusf(_BROKER, &s,
16 years, 10 months
lowercase of instanceid in Virt_MigrationJob instance
by Guo Lian Yun
Hi,
The key name of instanceid is not case sensitive in ein or gi operation.
Generally, it's written by "InstanceID" in querying result, but
Virt_MigrationJob
instance is different, the ein output as following:
...
localhost:5988/root/virt:Virt_MigrationJob.instanceid="48814722-f6d7-4ba5-b2db-6bf3242bd281"
localhost:5988/root/virt:Virt_MigrationJob.instanceid="36529c45-8aed-425e-ad57-7f411b79d898"
...
I know it's a small problem, do you think we need to make it identify with
other instances?
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, 10 months