make postinstall error

Hi, I see the following postinstall error: Parsing error: parse error: Error adding class Xen_ResourceAllocationSettingData to the repository: CIM_ERR_CLASS_HAS_CHILDREN: Xen_ResourceAllocationSettingData Here is the description and the probable solution for it: CIM_ERR_CLASS_HAS_CHILDREN *Description: * This error message uses one parameter, {0}, which is replaced by the class name. *Cause: * This exception is thrown by the CIMOM to disallow invalidation of the subclasses by a superclass deletion. Clients must explicitly delete the subclasses first. The check for subclasses is made before the check for class instances. *Solution: * Remove the subclasses of the given class. Here is the list of RASD related classes and subclasses. wbemcli ecn http://u:p@localhost/root/virt | grep ResourceAllocationSettingData localhost:5988/root/virt:LXC_InputResourceAllocationSettingData localhost:5988/root/virt:KVM_GraphicsResourceAllocationSettingData localhost:5988/root/virt:LXC_GraphicsResourceAllocationSettingData localhost:5988/root/virt:Xen_GraphicsResourceAllocationSettingData localhost:5988/root/virt:Xen_InputResourceAllocationSettingData localhost:5988/root/virt:CIM_ResourceAllocationSettingData localhost:5988/root/virt:KVM_ResourceAllocationSettingData localhost:5988/root/virt:KVM_InputResourceAllocationSettingData localhost:5988/root/virt:LXC_ResourceAllocationSettingData localhost:5988/root/virt:Xen_ResourceAllocationSettingData I tried modifying the mof file, Makefile but nothing worked. I also made sure there were no RASD subclasses like DiskRASD and alike before postinstall as suggested above, but nothing worked. Can you suggest how and why we could be facing this error. Thanks and Regards, Deepti.

Deepti B Kalakeri wrote:
Hi,
I see the following postinstall error:
Parsing error: parse error: Error adding class Xen_ResourceAllocationSettingData to the repository: CIM_ERR_CLASS_HAS_CHILDREN: Xen_ResourceAllocationSettingData
Here is the description and the probable solution for it:
CIM_ERR_CLASS_HAS_CHILDREN
I tried modifying the mof file, Makefile but nothing worked. I also made sure there were no RASD subclasses like DiskRASD and alike before postinstall as suggested above, but nothing worked. Can you suggest how and why we could be facing this error.
This is caused by the way the providers are unregistered is handled in "make preuninstall". The RASDs are defined in on mof / registration file. So when the RASD classes are registered, <>_ResourceAllocationSettingData gets registered before <>_ProcResourceAllocationSettingData (etc). When the providers are unregistered, <>_ResourceAllocationSettingData is unregistered first because it's first in the mof file. However, it can't be unregistered because <>_ProcResourceAllocationSettingData (etc) are still registered, so it gets left behind. The next time you go to post install, <>_ResourceAllocationSettingData is already there because it wasn't cleaned up properly beforehand. There's an ugly way to handle this in the Makefile. I'll see if I can come up with a cleaner way to do this and then submit a patch. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
participants (2)
-
Deepti B Kalakeri
-
Kaitlin Rupert