Bug 695626 - Register the CIMOMs to sblim-sfcb
Summary: Register the CIMOMs to sblim-sfcb
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: sblim-cmpi-base
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1179504
TreeView+ depends on / blocked
 
Reported: 2011-04-12 08:36 UTC by Masatake YAMATO
Modified: 2015-01-06 23:12 UTC (History)
2 users (show)

Fixed In Version: sblim-cmpi-base-1.6.1-3.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1179504 (view as bug list)
Environment:
Last Closed: 2011-04-27 16:17:00 UTC
Type: ---


Attachments (Terms of Use)
A patch fix the issue. (2.64 KB, patch)
2011-04-12 08:36 UTC, Masatake YAMATO
no flags Details | Diff

Description Masatake YAMATO 2011-04-12 08:36:03 UTC
Created attachment 491428 [details]
A patch fix the issue.

Description of problem:

CIMOMs of sblim-cmpi-base are registered to pegasus when sblim-cmpi-base package is installed. Howerver they are not registered to sblim-sfcb.

With the patch attached to this report, they are registered to sblim-sfcb.

I think sblim-cmpi-base should support sblim-sfcb because
A. sblim-cmpi-base requires cim-server; and sblim-sfcb provides cim-server.
B. provider-register.sh and programs invoked from it, which are part of sblim-cmpi-base, know how to register the CIMOMs to sblim-sfcb. Just the spec file of  sblim-cmpi-base doesn't handle sblim-sfcb.

which is part of sblim-cmpi-base, 

Version-Release number of selected component (if applicable):

sblim-cmpi-base 1.6.1-2.fc15

How reproducible:


Steps to Reproduce:
1. Install the latest sblim-sfcb
2. Install sblim-cmpi-base
3. ls -l /var/lib/sfcb/stage/mofs/root/cimv2/Linux_Base.mof
  
Actual results:

ls says "file not found".

Expected results:

ls lists the file.

Additional info:

The patch for the spec file checks whether /usr/sbin/sfcbd exits or not.
If existing, run provider-register.sh with -t sfcb option.

The patch handles the case that both pegasus and sfcb are installed. 
I think this is a bit overkill; I cannot image the system on which both pegasus and sfcbd are installed. 

NOTE: This bug is reproducible on RHEL6. However more work than f15 is needed to fix. The default value for cimschemadir in /usr/bin/sfcbrepos is wrong. This must be fixed.

Comment 1 Vitezslav Crhonek 2011-04-20 13:48:13 UTC
Did you try it in Fedora? Current spec file is written to support registration to both tog-pegasus and sblim-sfcb (one of them, respectively) since sblim-cmpi-base-1.6.0-2.

When tog-pegasus is installed, provider-register.sh uses -t pegasus, otherwise it just runs provider-register.sh without -t flag (which means it will register to sblim-sfcb, because there are no more CIM servers at this moment in Fedora and cim-server is required).

Thus, I'm not able to reproduce the issue, it works for me fine. I can imagine that this can happen when you have installed both tog-pegasus and sblim-sfcb (because they don't conflicts and tog-pegasus will be preferred during mofs registration). So this patch can be taken as enhacement - it will register to both when they're both installed (which is, as you said, overkill).

I'm not sure about RHEL6 situation, but I think all sblim packages registers only to tog-pegasus.

Comment 2 Masatake YAMATO 2011-04-22 13:26:35 UTC
You are right. I installed both tog-pegasus and sblim-sfcb to my Fedora 15 alpha system. I did not know the default registration target is sblim-sfcb.
I'm surprised this fact because in RHEL6 sblim-cmpi-base cannot register itself to sblim-sfcb. The situation is very different.

There are is case multiple cim-servers are installed.
I've been working on improving sblim-cmpi-syslog to support rsyslog, which is becoming popular these days. To test the improvement, I need multiple cim-servers to be installed.

Comment 4 Vitezslav Crhonek 2011-04-26 09:59:36 UTC
(In reply to comment #2)
> You are right. I installed both tog-pegasus and sblim-sfcb to my Fedora 15
> alpha system. I did not know the default registration target is sblim-sfcb.
> I'm surprised this fact because in RHEL6 sblim-cmpi-base cannot register itself
> to sblim-sfcb. The situation is very different.
> 
> There are is case multiple cim-servers are installed.
> I've been working on improving sblim-cmpi-syslog to support rsyslog, which is
> becoming popular these days. To test the improvement, I need multiple
> cim-servers to be installed.

Okay, I'll apply your patch as it improves package functionality and it has no negative effect. I will update also other providers likewise. Thanks!

Comment 7 Masatake YAMATO 2011-04-26 13:21:23 UTC
(In reply to comment #4)
> (In reply to comment #2)
> > You are right. I installed both tog-pegasus and sblim-sfcb to my Fedora 15
> > alpha system. I did not know the default registration target is sblim-sfcb.
> > I'm surprised this fact because in RHEL6 sblim-cmpi-base cannot register itself
> > to sblim-sfcb. The situation is very different.
> > 
> > There are is case multiple cim-servers are installed.
> > I've been working on improving sblim-cmpi-syslog to support rsyslog, which is
> > becoming popular these days. To test the improvement, I need multiple
> > cim-servers to be installed.
> 
> Okay, I'll apply your patch as it improves package functionality and it has no
> negative effect. I will update also other providers likewise. Thanks!

Thank you.


Note You need to log in before you can comment on or make changes to this bug.