Hide Forgot
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.
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.
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.
(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!
(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.