Bug 1127399
Summary: | Cannot compile sample OpenPegasus providers "Error adding class CIM_Component to the repository" | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sean Stewart <Sean.Stewart> | ||||
Component: | tog-pegasus | Assignee: | Vitezslav Crhonek <vcrhonek> | ||||
Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.0 | CC: | amahdal, jscotka, Sean.Stewart, vcrhonek | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | tog-pegasus-2.14.1-3.el7 | Doc Type: | Bug Fix | ||||
Doc Text: |
Previously, it was not possible to compile sample OpenPegasus providers,
and the following error occurred:
Error adding class CIM_Component to the repository
This bug has been fixed, and providers are now able to compile successfully.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-11-19 11:08:36 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Sean Stewart
2014-08-06 19:58:07 UTC
Seems to be caused by two facts - we ship and use newer schema than was originally packed in tog-pegasus's tarball (because the old one is missing some classes needed by OpenLMI providers) and default interop namespace has been changed to root/interop instead of original root/PG_InterOp (e.g. because of compatibility with SFCB CIMOM). Until it's fixed, you can workaround the issue: 1. copy CIM_AbstractComponent.mof shipped in cim-schema package to the sample providers: # cp /usr/share/mof/cimv2.33.0/Core/CIM_AbstractComponent.mof /usr/share/Pegasus/samples/Providers/Load/CIM233/DMTF/Core/ 2. patch /usr/share/Pegasus/samples/Providers/Load/Makefile and /usr/share/Pegasus/samples/Providers/Load/SDK_CIM_Schema.mof with attached patch (registers missing class, enables registering experimental classes and changes interop) Hope this helps, then it should work as expected. Created attachment 924892 [details]
workaround patch
Thanks for the quick response. I patched the file and am still getting an error: Could not open include file DMTF/Core/CIM_AbstractComponent.mof What package is supposed to install this file? I think I've installed everything I can think of and it still seems to be missing. Oops, it helps if I read the entire comment. :) Thanks again! Scheduled automated test: TJ#1092255 Works on all except ppc64le, where it complains: mak/config.mak:84: *** PEGASUS_PLATFORM environment variable undefined. Please set to one of the following: LINUX_PPC_E500_GNU LINUX_ZSERIES_GNU LINUX_GNU LINUX_SH4_GNU LINUX_IX86_GNU LINUX_X86_64_CLANG LINUX_IX86_CLANG LINUX_PPC64_GNU LINUX_AARCH64_GNU LINUX_IA64_GNU LINUX_PPC_GNU LINUX_ZSERIES64_GNU LINUX_X86_64_GNU . Stop. Should it even work out-of-the-box? If so, should this be reassigned or logged as separate bug? Or it's matter of documentation? Please file it as a new bug. It probably never worked on ppc64le and its support needs to be added. Thank you for explanation; the issue is now filed as bug 1266235. As I said, the rest of archs is OK so the original problem is fixed. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2314.html Missing 'Fixed In Version' value added based on Erratum. |