'Parsing error' during make postinstall step of installing libvirt-cim

Hello, I am trying to setup latest libvirt-cim in RHEL 5.2 with Pegasus server 2.8.0-1. I am using libvirt-cim source snapshot dated 01/13/09 obtained from ftp://libvirt.org/libvirt/CIM/ . Following the README in the source, the 'make postinstall' step fails with the following error. Processing provider modules: Virt_AllocationCapabilities Virt_ComputerSystem Virt_ComputerSystemIndication Virt_ComputerSystemMigrationIndication Virt_ConcreteComponent Virt_ConsoleRedirectionService Virt_ConsoleRedirectionServiceCapabilities Virt_Device Virt_DevicePool Virt_ElementAllocatedFromPool Virt_ElementCapabilities Virt_ElementConformsToProfile Virt_ElementSettingData Virt_EnabledLogicalElementCapabilities Virt_HostedAccessPoint Virt_HostedDependency Virt_HostedResourcePool Virt_HostedService Virt_HostSystem Virt_KVMRedirectionSAP Virt_RASD Virt_ResourceAllocationFromPool Virt_ResourcePoolConfigurationCapabilities Virt_ResourcePoolConfigurationService Virt_SAPAvailableForElement Virt_ServiceAccessBySAP Virt_ServiceAffectsElement Virt_SettingsDefineCapabilities Virt_SettingsDefineState Virt_SystemDevice Virt_VirtualSystemManagementCapabilities Virt_VirtualSystemManagementService Virt_VirtualSystemSnapshotService Virt_VirtualSystemSnapshotServiceCapabilities Virt_VSMigrationCapabilities Virt_VSMigrationService Virt_VSMigrationSettingData Virt_VSSD Virt_VSSDComponent Registering providers with active cimserver Parsing error: parse error: Could not find declaration for Qualifier named ASSOCIATION make: *** [postinstall] Error 250 Any ideas? Thanks Gopal

U Gopalakrishnan wrote:
Hello,
I am trying to setup latest libvirt-cim in RHEL 5.2 with Pegasus server 2.8.0-1. I am using libvirt-cim source snapshot dated 01/13/09 obtained from ftp://libvirt.org/libvirt/CIM/ . Following the README in the source, the 'make postinstall' step fails with the following error.
Registering providers with active cimserver Parsing error: parse error: Could not find declaration for Qualifier named ASSOCIATION make: *** [postinstall] Error 250
Hi Gopal, This error looks like the Pegasus repository isn't setup properly. Before running make postinstall, did you run "make preinstall"? After running make preinstall, you'll need to restart Pegasus. Not sure if you've looked at this, but there's some instructions at: http://wiki.libvirt.org/page/Libvirt-cim_setup Let us know if this doesn't resolve the issue. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

Hi Kaitlin, I followed the instructions in the wiki, postinstall step is now completing without a make error. But I see few error messages in the output. I think most of them are harmless and is because the postinstall step is run multiple times. But one particular error message given below is worrying me. Parsing error: parse error: Error adding class Xen_HostedResourcePool to the repository: CIM_ERR_INVALID_SUPERCLASS: CIM_HostedResourcePool The complete output from the 'make postinstall' command is attached. Please advise on whether these error messages needs to be looked into or could be safely ignored. Also, the README contained in the source tar.gz files found at ftp://libvirt.org/libvirt/CIM/ seems to be outdated, e.g. it didn't mention about the make preinstall step. May be README could just give a link to the wiki page which seems to be current. Thanks Gopal Kaitlin Rupert <kaitlin@linux.vnet.ibm.com> Sent by: libvirt-cim-bounces@redhat.com 01/14/2009 23:27 Please respond to List for discussion and development of libvirt CIM <libvirt-cim@redhat.com> To List for discussion and development of libvirt CIM <libvirt-cim@redhat.com> cc Subject Re: [Libvirt-cim] 'Parsing error' during make postinstall step of installing libvirt-cim U Gopalakrishnan wrote:
Hello,
I am trying to setup latest libvirt-cim in RHEL 5.2 with Pegasus server 2.8.0-1. I am using libvirt-cim source snapshot dated 01/13/09 obtained
from ftp://libvirt.org/libvirt/CIM/ . Following the README in the source, the 'make postinstall' step fails with the following error.
Registering providers with active cimserver Parsing error: parse error: Could not find declaration for Qualifier named ASSOCIATION make: *** [postinstall] Error 250
Hi Gopal, This error looks like the Pegasus repository isn't setup properly. Before running make postinstall, did you run "make preinstall"? After running make preinstall, you'll need to restart Pegasus. Not sure if you've looked at this, but there's some instructions at: http://wiki.libvirt.org/page/Libvirt-cim_setup Let us know if this doesn't resolve the issue. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com _______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

But one particular error message given below is worrying me.
Parsing error: parse error: Error adding class Xen_HostedResourcePool to the repository: CIM_ERR_INVALID_SUPERCLASS: CIM_HostedResourcePool
I wasn't able to reproduce this problem using a clean tree and clean Pegasus repository. Sounds like the CIM_HostedResourcePool and Xen_HostedResourcePool classes might not have been added to your repository. You can verify with the following commands: To check the root/virt namespace: wbemcli ecn http://localhost/root/virt:CIM_HostedResourcePool wbemcli ecn http://localhost/root/virt:Xen_HostedResourcePool To check the root/cimv2 namespace: wbemcli ecn http://localhost/root/cimv2:CIM_HostedResourcePool wbemcli ecn http://localhost/root/cimv2:Xen_HostedResourcePool If the class isn't found (should look like the output below), you can try running the following: 1) make preuninstall 2) make preinstall 3) Restart the CIMOM 4) make postinstall Let us know if the problem persists. Also, let us know which CIMOM you are using. I tested with Pegasus 2.7.2-2 on an Fedora 10 system. ----- $ wbemcli ecn http://localhost/root/cimv2:CIM_HostedResourcePool localhost:5988/root/cimv2:Xen_HostedResourcePool localhost:5988/root/cimv2:KVM_HostedResourcePool localhost:5988/root/cimv2:LXC_HostedResourcePool
The complete output from the 'make postinstall' command is attached.
Please advise on whether these error messages needs to be looked into or could be safely ignored.
Warning: the instance already exists. In this implementation, that means it cannot be changed. These message can be ignored. You're correct, this is because make postinstall was run several times. It means that some of the providers are already registered properly. ---------- Parsing error: parse error: Error adding class Virt_VirtualSystemSnapshotService to the repository: CIM_ERR_CLASS_HAS_CHILDREN: Virt_VirtualSystemSnapshotService This means the class is already present in the repository. You can verify using: $ wbemcli ecn http://localhost/root/virt:Virt_VirtualSystemSnapshotService localhost:5988/root/virt:KVM_VirtualSystemSnapshotService localhost:5988/root/virt:Xen_VirtualSystemSnapshotService localhost:5988/root/virt:LXC_VirtualSystemSnapshotService ----------- Parsing error: parse error: Error adding class CIM_VirtualSystemMigrationService to the repository: CIM_ERR_CLASS_HAS_CHILDREN: CIM_VirtualSystemMigrationService Same issue here.
Also, the README contained in the source tar.gz files found at ftp://libvirt.org/libvirt/CIM/ seems to be outdated, e.g. it didn't mention about the make preinstall step. May be README could just give a link to the wiki page which seems to be current.
Sounds like the README is out of date. I'll update this information. Thanks! -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

You can verify with the following commands:
To check the root/virt namespace: wbemcli ecn http://localhost/root/virt:CIM_HostedResourcePool
localhost:5988/root/virt:LXC_HostedResourcePool localhost:5988/root/virt:KVM_HostedResourcePool localhost:5988/root/virt:Xen_HostedResourcePool localhost:5988/root/virt:CIM_HostedStoragePool
wbemcli ecn http://localhost/root/virt:Xen_HostedResourcePool (no output)
To check the root/cimv2 namespace: wbemcli ecn http://localhost/root/cimv2:CIM_HostedResourcePool
* wbemcli: Cim: (5) CIM_ERR_INVALID_CLASS: CIM_HostedResourcePool
wbemcli ecn http://localhost/root/cimv2:Xen_HostedResourcePool
* wbemcli: Cim: (5) CIM_ERR_INVALID_CLASS: Xen_HostedResourcePool
If the class isn't found (should look like the output below), you can try running the following:
1) make preuninstall 2) make preinstall 3) Restart the CIMOM 4) make postinstall
Let us know if the problem persists.
I still get CIM_ERR_INVALID_SUPERCLASS: CIM_HostedResourcePool. The complete make postinstall output is attached. Also the 'wbemcli ecn ..' command gives the same out as shown above even after re-running the postinstall.
Also, let us know which CIMOM you are using. I tested with Pegasus 2.7.2-2 on an Fedora 10 system.
I am running on Pegasus 2.8.0-1 on RHEL 5.2 system. Thanks Gopal

U Gopalakrishnan wrote:
You can verify with the following commands:
To check the root/virt namespace: wbemcli ecn http://localhost/root/virt:CIM_HostedResourcePool
localhost:5988/root/virt:LXC_HostedResourcePool localhost:5988/root/virt:KVM_HostedResourcePool localhost:5988/root/virt:Xen_HostedResourcePool localhost:5988/root/virt:CIM_HostedStoragePool
wbemcli ecn http://localhost/root/virt:Xen_HostedResourcePool (no output)
To check the root/cimv2 namespace: wbemcli ecn http://localhost/root/cimv2:CIM_HostedResourcePool
* wbemcli: Cim: (5) CIM_ERR_INVALID_CLASS: CIM_HostedResourcePool
wbemcli ecn http://localhost/root/cimv2:Xen_HostedResourcePool
* wbemcli: Cim: (5) CIM_ERR_INVALID_CLASS: Xen_HostedResourcePool
If the class isn't found (should look like the output below), you can try running the following:
1) make preuninstall 2) make preinstall 3) Restart the CIMOM 4) make postinstall
Let us know if the problem persists.
I still get CIM_ERR_INVALID_SUPERCLASS: CIM_HostedResourcePool. The completeIn this implementation, that means it cannot be changed. Warning: the instance already exists. In this implementation, that means it cannot be changed. Warning: the instance already exists. In this implementation, that means it cannot be changed. Warning: the instance already exists. In this implementation, that means it cannot be changed.
make postinstall output is attached.
Also the 'wbemcli ecn ..' command gives the same out as shown above even after re-running the postinstall.
The postinstall log attached to the mail and the wbemcli ecn command for the root/cimv2 namespace imply that you do not have the CIM_HostedResourcePool registered, and hence you are seeing the above error messages and also in the postinstall o/p.
Also, let us know which CIMOM you are using. I tested with Pegasus 2.7.2-2 on an Fedora 10 system.
I am running on Pegasus 2.8.0-1 on RHEL 5.2 system.
I tried doing a make postinstall today on RHEL5.2 and faced the same problem. The make preinstall steps did not seem to eliminate the problem for me as well.
Thanks Gopal
------------------------------------------------------------------------
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik@linux.vnet.ibm.com

If the class isn't found (should look like the output below), you can try running the following:
1) make preuninstall 2) make preinstall 3) Restart the CIMOM 4) make postinstall
Let us know if the problem persists.
I still get CIM_ERR_INVALID_SUPERCLASS: CIM_HostedResourcePool. The complete make postinstall output is attached.
Also the 'wbemcli ecn ..' command gives the same out as shown above even after re-running the postinstall.
Also, let us know which CIMOM you are using. I tested with Pegasus 2.7.2-2 on an Fedora 10 system.
I am running on Pegasus 2.8.0-1 on RHEL 5.2 system.
Is your root/cimv2 namespace populated? I'm guessing that CIM_HostedResourcePool is not added to the root/cimv2 namespace during the make preinstall because CIM_SystemComponent is not there. You can check to see if the root/cimv2 namespace is populated by doing the following: /var/lib/Pegasus/repository/root#cimv2/classes You should see a number of classes there. CIM_SystemComponent should be present there as well. I uninstalled Pegasus on my RHEL 5.2 system, removed the repository, and then reinstalled Pegasus. The tog-pegasus-2.7.0-1.el5 rpm populates root/cimv2. My guess is your Pegasus install isn't populating the root/cimv2 namespace. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

You can check to see if the root/cimv2 namespace is populated by doing the following:
/var/lib/Pegasus/repository/root#cimv2/classes
You should see a number of classes there. CIM_SystemComponent should be
present there as well.
I checked by Pegasus installation root/cimv2 is populated and CIM_SystemComponent class is also present. Here is the output. # ls /var/lib/Pegasus/repository/root#cimv2/classes |grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedStoragePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent # I dont see CIM_HostedResourcePool in root/cimv2. But do see it in root/virt namespace. # ls /var/lib/Pegasus/repository/root#virt/classes |grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedResourcePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent # Thanks Gopal

U Gopalakrishnan wrote:
You can check to see if the root/cimv2 namespace is populated by doing the following:
/var/lib/Pegasus/repository/root#cimv2/classes
You should see a number of classes there. CIM_SystemComponent should be present there as well.
I checked by Pegasus installation root/cimv2 is populated and CIM_SystemComponent class is also present. Here is the output.
# ls /var/lib/Pegasus/repository/root#cimv2/classes |grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedStoragePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent #
I dont see CIM_HostedResourcePool in root/cimv2. But do see it in root/virt namespace.
The CIM_HostedResourcePool needs to be present in the root/cimv2 namespace as well.
# ls /var/lib/Pegasus/repository/root#virt/classes |grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedResourcePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent #
Thanks Gopal
Can you 1) unistall the pegasus 2) rm -rf /var/lib/Pegasus/repository, 3) Install the pegasus 4) verify the HostedResourcePool registered in the root/cimv2 namespace by executing wbemcli ecn http://root:passwd@localhost/root/cimv2 | grep CIM_HostedResourcePool localhost:5988/root/cimv2:CIM_HostedResourcePool 5) then do a make preinstall ,make postinstall. This should quickly solve the problem for you.
------------------------------------------------------------------------
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik@linux.vnet.ibm.com

Hi Deepti,
Can you 1) unistall the pegasus 2) rm -rf /var/lib/Pegasus/repository, 3) Install the pegasus 4) verify the HostedResourcePool registered in the root/cimv2 namespace by executing wbemcli ecn http://root:passwd@localhost/root/cimv2 | grep CIM_HostedResourcePool localhost:5988/root/cimv2:CIM_HostedResourcePool
Re-installed pegasus, and checked for CIM_HostedResourcePool in root/cimv2. The class is not registered. # wbemcli ecn http://root:xxxx@localhost/root/cimv2 | grep CIM_HostedResourcePool # Here is all the SystemComponent classes # ls /var/lib/Pegasus/repository/root#cimv2/classes | grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedStoragePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent # how do we proceed now? Thanks Gopal Deepti B Kalakeri <deeptik@linux.vnet.ibm.com> Sent by: libvirt-cim-bounces@redhat.com 01/19/2009 11:29 Please respond to List for discussion and development of libvirt CIM <libvirt-cim@redhat.com> To List for discussion and development of libvirt CIM <libvirt-cim@redhat.com> cc Subject Re: [Libvirt-cim] 'Parsing error' during make postinstall step of installing libvirt-cim U Gopalakrishnan wrote:
You can check to see if the root/cimv2 namespace is populated by doing the following:
/var/lib/Pegasus/repository/root#cimv2/classes
You should see a number of classes there. CIM_SystemComponent should be present there as well.
I checked by Pegasus installation root/cimv2 is populated and CIM_SystemComponent class is also present. Here is the output.
# ls /var/lib/Pegasus/repository/root#cimv2/classes |grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedStoragePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent #
I dont see CIM_HostedResourcePool in root/cimv2. But do see it in root/virt namespace.
The CIM_HostedResourcePool needs to be present in the root/cimv2 namespace as well.
# ls /var/lib/Pegasus/repository/root#virt/classes |grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedResourcePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent #
Thanks Gopal
Can you 1) unistall the pegasus 2) rm -rf /var/lib/Pegasus/repository, 3) Install the pegasus 4) verify the HostedResourcePool registered in the root/cimv2 namespace by executing wbemcli ecn http://root:passwd@localhost/root/cimv2 | grep CIM_HostedResourcePool localhost:5988/root/cimv2:CIM_HostedResourcePool 5) then do a make preinstall ,make postinstall. This should quickly solve the problem for you.
------------------------------------------------------------------------
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik@linux.vnet.ibm.com _______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

U Gopalakrishnan wrote:
Hi Deepti,
Can you 1) unistall the pegasus 2) rm -rf /var/lib/Pegasus/repository, 3) Install the pegasus 4) verify the HostedResourcePool registered in the root/cimv2 namespace by executing wbemcli ecn http://root:passwd@localhost/root/cimv2 | grep CIM_HostedResourcePool localhost:5988/root/cimv2:CIM_HostedResourcePool
Re-installed pegasus, and checked for CIM_HostedResourcePool in root/cimv2. The class is not registered.
# wbemcli ecn http://root:xxxx@localhost/root/cimv2 | grep CIM_HostedResourcePool
Oh! I am not sure why Pegasus 2.8.0-1 is not working. Since Kaitlin was able to work with tog-pegasus-2.7.0-1 version and you are finding problems with the Pegasus 2.8.0-1 can you try to install the Pegasus 2.7.0-1 and try.
#
Here is all the SystemComponent classes
# ls /var/lib/Pegasus/repository/root#cimv2/classes | grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedStoragePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent #
how do we proceed now?
Thanks Gopal
*Deepti B Kalakeri <deeptik@linux.vnet.ibm.com>* Sent by: libvirt-cim-bounces@redhat.com
01/19/2009 11:29 Please respond to List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>
To List for discussion and development of libvirt CIM <libvirt-cim@redhat.com> cc
Subject Re: [Libvirt-cim] 'Parsing error' during make postinstall step of installing libvirt-cim
U Gopalakrishnan wrote:
You can check to see if the root/cimv2 namespace is populated by doing the following:
/var/lib/Pegasus/repository/root#cimv2/classes
You should see a number of classes there. CIM_SystemComponent should be present there as well.
I checked by Pegasus installation root/cimv2 is populated and CIM_SystemComponent class is also present. Here is the output.
# ls /var/lib/Pegasus/repository/root#cimv2/classes |grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedStoragePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent #
I dont see CIM_HostedResourcePool in root/cimv2. But do see it in root/virt namespace.
The CIM_HostedResourcePool needs to be present in the root/cimv2 namespace as well.
# ls /var/lib/Pegasus/repository/root#virt/classes |grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedResourcePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent #
Thanks Gopal
Can you 1) unistall the pegasus 2) rm -rf /var/lib/Pegasus/repository, 3) Install the pegasus 4) verify the HostedResourcePool registered in the root/cimv2 namespace by executing wbemcli ecn http://root:passwd@localhost/root/cimv2 | grep CIM_HostedResourcePool localhost:5988/root/cimv2:CIM_HostedResourcePool 5) then do a make preinstall ,make postinstall.
This should quickly solve the problem for you.
------------------------------------------------------------------------
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik@linux.vnet.ibm.com
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
------------------------------------------------------------------------
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik@linux.vnet.ibm.com

Oh! I am not sure why Pegasus 2.8.0-1 is not working. Since Kaitlin was able to work with tog-pegasus-2.7.0-1 version and you are finding problems with the Pegasus 2.8.0-1 can you try to install the
Pegasus 2.7.0-1 and try.
I could manage to get only pegasus 2.7.0-2 source. I built it and installed, but still don't see CIM_HostedResourcePool class in root/cimv2 namespace :( Do you think there could be difference between 2.7.0-2 and 2.7.0-1 that could be breaking us? Also do you have a 2.7.0-1 binary/source rpm or source zip? Thanks Gopal

U Gopalakrishnan wrote:
Oh! I am not sure why Pegasus 2.8.0-1 is not working. Since Kaitlin was able to work with tog-pegasus-2.7.0-1 version and you are finding problems with the Pegasus 2.8.0-1 can you try to install the Pegasus 2.7.0-1 and try.
The make preinstall step will add CIM_HostedResourcePool to the root/cimv2 namespace. CIM_HostedResourcePool is a subclass of CIM_SystemComponent, so CIM_SystemComponent needs to be present in the repository before CIM_HostedResourcePool can be added. Gopal, after rebuilding the Pegasus repository, have you tried running "make preinstall" again? After "make preinstall", be sure to restart Pegasus before running "make install" and "make postinstall"
I could manage to get only pegasus 2.7.0-2 source. I built it and installed, but still don't see CIM_HostedResourcePool class in root/cimv2 namespace :(
Do you think there could be difference between 2.7.0-2 and 2.7.0-1 that could be breaking us?
I don't think there should be much difference between the versions.
Also do you have a 2.7.0-1 binary/source rpm or source zip?
I am using the Pegasus rpm from the RedHat 5.2 iso. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

I did a clean install of Pegasus 2.7.0-2 that is shipped with RHEL 5.2 and followed the libvirt wiki installation instructions, still see the CIM_ERR_INVALID_SUPERCLASS error during the post install step. Parsing error: parse error: Error adding class Xen_HostedResourcePool to the repository: CIM_ERR_INVALID_SUPERCLASS: CIM_HostedResourcePool I still don't see CIM_HostedResourcePool in root/cimv2 namespace but it is present in root/virt namespace. I see CIM_SystemComponent class in both namespaces. Here is relevant output # ls /var/lib/Pegasus/repository/root#cimv2/classes | grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedStoragePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent # ls /var/lib/Pegasus/repository/root#virt/classes | grep CIM_SystemComponent CIM_AccountOnSystem.CIM_SystemComponent CIM_ApplicationSystemSoftwareFeature.CIM_SystemComponent CIM_ASBGPEndpoints.CIM_SystemComponent CIM_ComponentCS.CIM_SystemComponent CIM_Confederation.CIM_SystemComponent CIM_ContainedDomain.CIM_SystemComponent CIM_FilterEntryInSystem.CIM_SystemComponent CIM_FilterListInSystem.CIM_SystemComponent CIM_HostedFileSystem.CIM_SystemComponent CIM_HostedResourcePool.CIM_SystemComponent CIM_InstalledOS.CIM_SystemComponent CIM_J2eeApplicationModule.CIM_SystemComponent CIM_J2eeServerInDomain.CIM_SystemComponent CIM_PolicyContainerInPolicyContainer.CIM_SystemComponent CIM_PolicyRepositoryInPolicyRepository.CIM_SystemComponent CIM_ResourceOfSystem.CIM_SystemComponent CIM_RoutersInAS.CIM_SystemComponent CIM_SystemBIOS.CIM_SystemComponent CIM_SystemComponent.CIM_Component CIM_SystemDevice.CIM_SystemComponent I have captured output form make install and make postinstall. I didn't notice any thing wrong in the make install output, let me know if you want to take a look. Thanks Gopal Kaitlin Rupert <kaitlin@linux.vnet.ibm.com> Sent by: libvirt-cim-bounces@redhat.com 01/19/2009 20:58 Please respond to List for discussion and development of libvirt CIM <libvirt-cim@redhat.com> To List for discussion and development of libvirt CIM <libvirt-cim@redhat.com> cc Subject Re: [Libvirt-cim] 'Parsing error' during make postinstall step of installing libvirt-cim U Gopalakrishnan wrote:
Oh! I am not sure why Pegasus 2.8.0-1 is not working. Since Kaitlin was able to work with tog-pegasus-2.7.0-1 version and
are finding problems with the Pegasus 2.8.0-1 can you try to install
you the
Pegasus 2.7.0-1 and try.
The make preinstall step will add CIM_HostedResourcePool to the root/cimv2 namespace. CIM_HostedResourcePool is a subclass of CIM_SystemComponent, so CIM_SystemComponent needs to be present in the repository before CIM_HostedResourcePool can be added. Gopal, after rebuilding the Pegasus repository, have you tried running "make preinstall" again? After "make preinstall", be sure to restart Pegasus before running "make install" and "make postinstall"
I could manage to get only pegasus 2.7.0-2 source. I built it and installed, but still don't see CIM_HostedResourcePool class in root/cimv2 namespace
:(
Do you think there could be difference between 2.7.0-2 and 2.7.0-1 that could be breaking us?
I don't think there should be much difference between the versions.
Also do you have a 2.7.0-1 binary/source rpm or source zip?
I am using the Pegasus rpm from the RedHat 5.2 iso. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com _______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

U Gopalakrishnan wrote:
I did a clean install of Pegasus 2.7.0-2 that is shipped with RHEL 5.2 and followed the libvirt wiki installation instructions, still see the CIM_ERR_INVALID_SUPERCLASS error during the post install step.
Parsing error: parse error: Error adding class Xen_HostedResourcePool to the repository: CIM_ERR_INVALID_SUPERCLASS: CIM_HostedResourcePool
I still don't see CIM_HostedResourcePool in root/cimv2 namespace but it is present in root/virt namespace. I see CIM_SystemComponent class in both namespaces.
Looks like the cimv216-cimv2_mof was missing from the tarball and the spec file. I submitted a patch to fix this problem. Thanks for reporting this issue! -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
participants (3)
-
Deepti B Kalakeri
-
Kaitlin Rupert
-
U Gopalakrishnan