Dear Kaitlin.
After my investigation, I pass "make postinstall" by using attached patch.
I think these definition in the .mof files are insuffcient.
How do you think?
Regards.
Toshifumi Fujimura.
Dear Kaitlin.
Thanks for your suggestion and adding wiki page.
This wiki is very useful.
After restarting Pegasus, I can't find the class "CIM_KVMRedirectionSAP".
And from my investigation, I found two points.
(1)The class "CIM_KVMRedirectionSAP"'s superclass isn't defined in any
.mof files in Libvirt-CIM.
(2)But other registered classes may have superclass.
For example, the class "CIM_VirtualSystemMigrationCapabilities" has
superclass "CIM_Capabilities".
And that is defined in "schema/VSMigrationCapabilities.mof" file.
(The log shows below)
I think some package need to add.
What should I do any more?
Works for me.
===============================
[root@localhost libvirt-cim]# grep -rn CIM_KVM *
Binary file base_schema/cimv216Experimental-MOFs.zip matches
schema/KVMRedirectionSAP.mof:4:class Xen_KVMRedirectionSAP :
CIM_KVMRedirectionSAP
schema/KVMRedirectionSAP.mof:9:class KVM_KVMRedirectionSAP :
CIM_KVMRedirectionSAP
schema/KVMRedirectionSAP.mof:14:class LXC_KVMRedirectionSAP :
CIM_KVMRedirectionSAP
[root@localhost ~]# wbemcli ecn
http://user:pass@localhost/root/virt |
grep Virt
localhost:5988/root/virt:CIM_VirtualSystemMigrationSettingData
localhost:5988/root/virt:KVM_VirtualSystemMigrationCapabilities
localhost:5988/root/virt:Xen_VirtualSystemMigrationCapabilities
localhost:5988/root/virt:CIM_VirtualSystemMigrationCapabilities
localhost:5988/root/virt:LXC_VirtualSystemMigrationSettingData
localhost:5988/root/virt:LXC_VirtualSystemMigrationCapabilities
localhost:5988/root/virt:KVM_VirtualSystemMigrationSettingData
localhost:5988/root/virt:Xen_VirtualSystemSettingData
localhost:5988/root/virt:CIM_VirtualSystemSettingData
localhost:5988/root/virt:KVM_VirtualSystemSettingData
localhost:5988/root/virt:LXC_VirtualSystemSettingData
localhost:5988/root/virt:Xen_VirtualSystemMigrationSettingData
===============================
(in schema/VSMigrationCapabilities.mof)
===============================
class CIM_VirtualSystemMigrationCapabilities : CIM_Capabilities {
uint16 DestinationHostFormatsSupported[];
uint16 SynchronousMethodsSupported[];
uint16 AsynchronousMethodsSupported[];
};
===============================
-- Toshifumi Fujimura.
> Toshifumi Fujimura wrote:
>> Thanks Mr or Ms Deepti B Kalakeri and Mr or Ms Kaitlin Rupert.
>> I tryed to regist CIM schema for Libvirt-CIM as your advice.
>>
>> On "make postinstall",I met this error message.
>>
>>
=======================================================================================
>>
>> Registering providers with active cimserver
>> Parsing error: parse error: Error adding class Xen_KVMRedirectionSAP
>> to the repository:
>> CIM_ERR_INVALID_SUPERCLASS: CIM_KVMRedirectionSAP
>> make: *** [postinstall] Error 250
>>
=======================================================================================
>>
>>
>> I think the superclasses
>> "CIM_KVMRedirectionSAP","CIM_ERR_INVALID_SUPERCLASS"
don't exist in
>> my cimserver.
>> How can I add those classes?
>>
>> Works for me.
>> Toshifumi Fujimura.
>
> Can you try the following:
>
> Restart Pegasus
>
> After restarting Pegasus, try: wbemcli ecn
>
http://user:pass@localhost/root/virt | grep CIM_KVMRedirectionSAP
>
> This should return a record like the following:
>
> localhost:5988/root/virt:CIM_KVMRedirectionSAP
>
> After that is done, you can do:
>
> sudo make preuninstall
> sudo make postinstall
>
> Running "sudo make preuninstall" should have put the proper classes
> in place. However, sometimes Pegasus needs to be restarted after
> "sudo make preinstall".
>
>
> If the wbemcli command doesn't return any records, you can do the
> following:
>
> sudo make preuninstall
> sudo make preinstall
>
> restart Pegasus
>
> sudo make postinstall
>
>
> I hope this helps!
--
Toshifumi Fujimura.
diff -r f0a209b602e7 Makefile.am
--- a/Makefile.am Wed Oct 08 09:13:55 2008 -0700
+++ b/Makefile.am Fri Oct 24 16:59:39 2008 +0900
@@ -4,49 +4,19 @@
SUBDIRS = libxkutil src doc base_schema
MOFS = \
- schema/ComputerSystem.mof \
- schema/LogicalDisk.mof \
- schema/NetworkPort.mof \
- schema/Memory.mof \
- schema/Processor.mof \
- schema/SystemDevice.mof \
schema/VSSD.mof \
- schema/HostSystem.mof \
schema/HostedDependency.mof \
- schema/VirtualSystemManagementService.mof \
- schema/VirtualSystemManagementCapabilities.mof \
schema/EnabledLogicalElementCapabilities.mof \
schema/AllocationCapabilities.mof \
schema/SettingsDefineCapabilities.mof \
- schema/MemoryPool.mof \
schema/ElementCapabilities.mof \
- schema/ProcessorPool.mof \
- schema/DiskPool.mof \
- schema/HostedResourcePool.mof \
schema/RegisteredProfile.mof \
schema/ElementConformsToProfile.mof \
schema/ComputerSystemIndication.mof \
schema/ComputerSystemMigrationIndication.mof \
- schema/ResourceAllocationSettingData.mof \
- schema/ResourcePoolConfigurationService.mof \
- schema/ResourcePoolConfigurationCapabilities.mof \
- schema/VSSDComponent.mof \
schema/SettingsDefineState.mof \
- schema/NetPool.mof \
- schema/ResourceAllocationFromPool.mof \
- schema/ElementAllocatedFromPool.mof \
- schema/HostedService.mof \
schema/ElementSettingData.mof \
- schema/VSMigrationCapabilities.mof \
- schema/VSMigrationService.mof \
- schema/VSMigrationSettingData.mof \
- schema/VirtualSystemSnapshotService.mof \
- schema/VirtualSystemSnapshotServiceCapabilities.mof \
- schema/ConcreteComponent.mof \
- schema/ConsoleRedirectionService.mof \
- schema/ConsoleRedirectionServiceCapabilities.mof \
- schema/ServiceAffectsElement.mof \
- schema/KVMRedirectionSAP.mof
+ schema/ConcreteComponent.mof
INTEROP_MOFS = \
schema/ComputerSystem.mof \