Bug 997379

Summary: Wrong MOF files ordering
Product: [Fedora] Fedora Reporter: Tomas Smetana <tsmetana>
Component: openlmi-providersAssignee: Radek Novacek <rnovacek>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jsafrane, jsynacek, miminar, ovasik, pschiffe, rnovacek, rrakus, tsmetana, vcrhonek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-15 11:44:03 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:

Description Tomas Smetana 2013-08-15 10:53:02 UTC
Description of problem:
There are two MOFs being shipped with the openlmi-providers package:

05_LMI_Qualifiers.mof
30_LMI_Jobs.mof

The numbering prefix suggests the LMI_Qualifiers should be registered before the LMI_Jobs, however the reverse order is correct.

Version-Release number of selected component (if applicable):
penlmi-providers-0.1.1-1.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
Try to register the MOF files byt their number prefix to a newly installed CIMOM (sblim-sfcb in my case):

1. sfcbstage -n root/cimv2 /usr/share/openlmi-providers/05_LMI_Qualifiers.mof
2. sfcbrepos -f

Actual results:

error in /var/lib/sfcb/stage/mofs/indication.mof line 34 near CIM_System: class LMI_ConcreteJob was referenced but never defined.
error in /var/lib/sfcb/stage/mofs/indication.mof line 34 near CIM_System: class LMI_OwningJobElement was referenced but never defined.
error in /var/lib/sfcb/stage/mofs/indication.mof line 34 near CIM_System: class LMI_OwningNetworkJobElement cannot be association, since parent LMI_OwningJobElement is none
error in /var/lib/sfcb/stage/mofs/indication.mof line 34 near CIM_System: class LMI_AffectedJobElement was referenced but never defined.
error in /var/lib/sfcb/stage/mofs/indication.mof line 34 near CIM_System: class LMI_AffectedNetworkJobElement cannot be association, since parent LMI_AffectedJobElement is none
Failed compiling the MOF files

Expected results:
The MOFs get registered cleanly

Comment 1 Radek Novacek 2013-08-15 11:05:23 UTC
The 05_LMI_Qualifiers.mof file doesn't contain anything that is specified in the 30_LMI_Jobs.mof. Contrary, 30_LMI_Jobs.mof uses Implemented qualifier that is defined in the 05_LMI_Qualifiers.mof.

The ordering of these two files is correct.

The error is caused by something else, probably some error in registration to sfcbd.

Comment 2 Tomas Smetana 2013-08-15 11:30:27 UTC
Might be. However registering the two in reverse order worked OK for me... I'll take a closer look.

Comment 3 Tomas Smetana 2013-08-15 11:44:03 UTC
The buggy one is the reporter... There was and old /var/lib/sfcb directory containing various remains of random stuff prior the sblim-sfcb installation which got mixed with the new registration.