Xen_ElementCapabilities return expected result from one side querying by non existing instance
by Guo Lian Yun
With a non existing instance, e.g. a wrong key name or value,
Xen_VirtualSystemManagementCapabilities still return expected results
below:
wbemcli ain -ac Xen_ElementCapabilities
http://root:password@localhost/root/virt:Xen_VirtualSystemManagementCapab..."
wrong"
localhost:5988/root/virt:Xen_HostSystem.CreationClassName="Xen_HostSystem",Name="zeit"
wbemcli ain -ac Xen_ElementCapabilities
http://root:password@localhost/root/virt:Xen_VirtualSystemManagementCapab....
Wrong="wrong"
localhost:5988/root/virt:Xen_HostSystem.CreationClassName="Xen_HostSystem",Name="zeit"
The same problem with Xen_VirtualSystemMigrationCapabilities.
In conclusion, four association providers have the same problems, that is
still return expected result with non existing instance from one or two
sides querying.
They are Xen_HostedResourcePool, Xen_ResourceAllocationFromPool,
Xen_HostedService and Xen_ElementCapabilities.
Please who can have a look into them? Thanks a lot!
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, 9 months
Xen_HostedService return expected queried result with non existing instance by two sides
by Guo Lian Yun
Hi,
With a non existing instance, e.g. a wrong key name or value,
Xen_HostedService still return expected results below:
wbemcli ain -ac Xen_HostedService
http://root:password@localhost/root/virt:Xen_ResourcePoolConfigurationSer..."
wrong"
localhost:5988/root/virt:Xen_HostSystem.CreationClassName="Xen_HostSystem",Name="zeit"
wbemcli ain -ac Xen_HostedService
http://root:password@localhost/root/virt:Xen_HostSystem.CreationClassName="
wrong",Wrong="zeit"
localhost:5988/root/virt:Xen_ResourcePoolConfigurationService.CreationClassName="Xen_ResourcePoolConfigurationService",Name="RPCS",SystemCreationClassName="Xen_HostSystem",SystemName="zei"
localhost:5988/root/virt:Xen_VirtualSystemManagementService.CreationClassName="Xen_VirtualSystemManagementService",Name="Management
Service",SystemCreationClassName="Xen_HostSystem",SystemName="zeit"
localhost:5988/root/virt:Xen_VirtualSystemMigrationService.CreationClassName="Xen_VirtualSystemMigrationService",Name="MigrationService",SystemCreationClassName="",SystemName=""
Also, some keys value of Xen_VirtualSystemMigrationService are NULL.
I think it's maybe provider's fault, the same issue of
Xen_HostedResourcePool and Xen_ResourceAllocationFromPool, which have been
reported before.
Please who can have a look into them? Thanks a lot!
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, 9 months
class Virt_VirtualSystemMigrationCapabilities
by Heidi Eckhart
Hi Dan,
the subclass for VirtualSystemMigrationCapabilities in
VSMigrationCapabilities.mof has "Virt" as prefix instead of "CIM". Does
this has a certain background ?
...
class Virt_VirtualSystemMigrationCapabilities : CIM_Capabilities {
...
--
Regards
Heidi Eckhart
Software Engineer
Linux Technology Center - Open Hypervisor
heidieck(a)linux.vnet.ibm.com
**************************************************
IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Herbert Kircher
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
16 years, 9 months
[PATCH 0 of 5] #2 EAFP and RAFP support invalid references.
by Kaitlin Rupert
Updates from last set:
-"Cleanup device_type_from_poolid() in DevicePool" - reverted the function name back to device_type_from_poolid() instead of device_type_from_str()
-Added two new patches:
-"GetInstance() in DevicePool returns an instance for invalid refs."
-"Roll DevicePool GetInstance() functionality into a seperate function."
-Re-worked EAFP and RAFP patches based on the two new patches.
This fix makes it so that EAFP and RAFP do not return instances if an invalid ref is given.
These patches are dependant on the "Clean up RAFP and EAFP pool_to_* handlers." patchset.
16 years, 9 months
[PATCH] HRP accepts invalid references
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1198880883 28800
# Node ID e84ead6a0242ecb1cf63e871da8603d38233ff41
# Parent 3ea63b2076c1d02b7c3c48910809b9fb11ee290f
HRP accepts invalid references.
Add a get_host_cs() call to pool_to_sys() handler. The get_host_cs() call will verify whether the reference passed in is valid.
This patch is dependant on the "#2 EAFP and RAFP support invalid references" patchset.
Failing query:
wbemcli gi 'http://localhost/root/virt:Xen_MemoryPool.InstanceID="wrong"'
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 3ea63b2076c1 -r e84ead6a0242 src/Virt_HostedResourcePool.c
--- a/src/Virt_HostedResourcePool.c Fri Dec 21 10:58:37 2007 -0800
+++ b/src/Virt_HostedResourcePool.c Fri Dec 28 14:28:03 2007 -0800
@@ -43,8 +43,13 @@ static CMPIStatus pool_to_sys(const CMPI
{
CMPIInstance *host;
CMPIStatus s = {CMPI_RC_OK, NULL};
+ CMPIInstance *inst;
if (!match_hypervisor_prefix(ref, info))
+ return s;
+
+ s = get_pool_inst(_BROKER, ref, &inst);
+ if ((s.rc != CMPI_RC_OK) || (inst == NULL))
return s;
s = get_host_cs(_BROKER, ref, &host);
16 years, 9 months
HostedResourcePool association provider return expected result with wrong key name or value
by Guo Lian Yun
Hi,
I encounter a problem of HostedResourcePool association provider, which can
still return expected result with wrong key value, even wrong key name.
wbemcli ain -ac Xen_HostedResourcePool
http://root:password@localhost/root/virt:Xen_MemoryPool.InstanceID="wrong"
localhost:5988/root/virt:Xen_HostSystem.CreationClassName="Xen_HostSystem",Name="zeit"
wbemcli ain -ac Xen_HostedResourcePool
http://root:password@localhost/root/virt:Xen_MemoryPool.wrong="wrong"
localhost:5988/root/virt:Xen_HostSystem.CreationClassName="Xen_HostSystem",Name="zeit"
That is mean, with a non existing instance, e.g. a wrong InstanceID name or
value as above, it can return results also.
Please can you have a look into this? Thanks!
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, 9 months
Xen_ResourceAllocationFromPool association provider return expected result with non existing instance of MemResourceAllocationSettingData and ProcResourceAllocationSettingData
by Guo Lian Yun
Hi,
>From below test result, we can get MemResourceAllocationSettingData info,
there is only one instance of MemResourceAllocationSettingData.
wbemcli ain -ac Xen_ResourceAllocationFromPool
http://root:password@localhost/root/virt:Xen_MemoryPool.InstanceID="MemoryPool/0"
localhost:5988/root/virt:MemResourceAllocationSettingData.InstanceID="Domain-0/mem"
However, with a non existing instance of MemResourceAllocationSettingData,
the reverse test can return correct results also.
wbemcli ain -ac Xen_ResourceAllocationFromPool
http://root:password@localhost/root/virt:Xen_MemResourceAllocationSetting..."
wrong"
localhost:5988/root/virt:Xen_MemoryPool.InstanceID="MemoryPool/0"
Meanwhile, the problem exist in Xen_ProcResourceAllocationSettingData
instance.
I think maybe this is provider's fault, please who can have a look at this?
Thanks!!
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, 9 months
report Xen_HostSystem parsing error in F8 while make postinstall
by Guo Lian Yun
Hi,
When I running make postinstall, it reports parsing error :
Parsing error: parse error: Error adding class Xen_HostSystem to the
repository: CIM_ERR_INVALID_SUPERCLASS: Operation cannot be carried out
since the specified superclass does not exist: "CIM_ComputerSystem"
Actually, CIM_ComputerSystem exist in the repository
(/var/lib/Pegasus/repository/root#virt/classes), and Xen_HostSystem has
been added to the repository. Of course, I have
installed schema cimv216Experimental successfully. This is using
xen-3.1.0-13.fc8 and libvirt-0.3.3-2.fc8.
However, there is no error in RHEL 5.1 by making postinstall.
Who know why? Thanks!
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, 9 months
[PATCH 00 of 29] #2 - Enable libvirt-cim providers for OpenWbem
by Heidi Eckhart
updated schema and provider registration scripts
added "Provider" qualifier to each provider's mof
fixed provider and module naming
Diff to #1:
- patch 1: registration for interop namespace must be root/interop instead of /root/interop for OpenWbem
- patch 7: forgot to rename provider in src file
- patch 17: fixed hg header
- patch 19: forgot to rename provider of MethodMI
16 years, 9 months