Bug 589689

Summary: Dynamically load tgt_drivers and package tgt-iser separately, for proper dependencies
Product: Red Hat Enterprise Linux 6 Reporter: Vesselin Kolev <vlk>
Component: scsi-target-utilsAssignee: Andy Grover <agrover>
Status: CLOSED WONTFIX QA Contact: Storage QE <storage-qe>
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: agrover, bdonahue, coughlan, qcai
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-08 19:04:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 697866, 767187, 846704    

Description Vesselin Kolev 2010-05-06 17:19:57 UTC
Description of problem:

When starting tgtd, the following error is logged in syslog (/var/log/messages):

tgtd: libibverbs.so: cannot open shared object file: No such file or directory - iser transport not used

The solution is either to build RPM package with dependence "Requires: libibverbs-devel" or to redesign libibverbs in the way to make symlink:

/usr/lib/libibverbs.so -> /usr/lib/libibverbs.so.1


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

0.9.11-1.20091205snap.el6

How reproducible:

Always

Steps to Reproduce:

1. Make some configuration in /etc/tgt/targets.conf
2. Start service (tgtd daemon):

# service tgtd start

  
Actual results:

Daemon starts, but error is logged in syslog.

Expected results:

Clean start with no errors of this kind.

Additional info:

Comment 2 Mike Christie 2010-05-06 17:39:05 UTC
(In reply to comment #0)
> Description of problem:
> 
> When starting tgtd, the following error is logged in syslog
> (/var/log/messages):
> 
> tgtd: libibverbs.so: cannot open shared object file: No such file or directory
> - iser transport not used
> 

This error is fine if you are not using iser. If you are using iser then you should install libibverbs.

Are you trying to use iser or do you have libibverbs and it is not working?

Comment 3 Vesselin Kolev 2010-05-06 18:23:34 UTC
Yes, I'm trying to use iser. But I have libibverbs installed:

[vesso@mahadeva ~]$ rpm -ql libibverbs
/etc/libibverbs.d
/usr/lib/libibverbs.so.1
/usr/lib/libibverbs.so.1.0.0
/usr/share/doc/libibverbs-1.1.3
/usr/share/doc/libibverbs-1.1.3/AUTHORS
/usr/share/doc/libibverbs-1.1.3/COPYING
/usr/share/doc/libibverbs-1.1.3/ChangeLog
/usr/share/doc/libibverbs-1.1.3/README

The described problem is solved by installing libibverbs-devel (provides /usr/lib/libibverbs.so):

[vesso@mahadeva ~]$ rpm -ql libibverbs-devel
...
/usr/lib/libibverbs.so
...

Comment 4 RHEL Program Management 2010-05-06 18:37:07 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 5 Mike Christie 2010-05-06 18:48:26 UTC
(In reply to comment #3)
> Yes, I'm trying to use iser. But I have libibverbs installed:
> 

Ah I see what you are saying.

I did not want to add the requires to scsi-target-utils rpm because it would force users of just iscsi to bring in all the ib stuff.

I am trying to break out the iser code and make it lib and add it to a separate rpm which would have the required requires. So you could do

// install core target
yum install scsi-target-utils
// install iser handler for target
yum install scsi-target-iser-utils

And that would bring in and install everything needed.

Comment 6 Vesselin Kolev 2010-05-06 19:06:01 UTC
I agree with You! In such case splitting of the package is the only way.

Thank You a lot!!!

Comment 7 Mike Christie 2010-05-06 19:19:51 UTC
Ok. It is too close to RHEL 6 release time to do this, so I am putting this up for RHEL 6.1 and adding a devel ack. You can track the progress in this bugzilla. Thanks for the bug report!

Comment 8 Mike Christie 2010-05-08 01:45:42 UTC
*** Bug 589803 has been marked as a duplicate of this bug. ***

Comment 10 Mike Christie 2011-02-01 08:52:43 UTC
This is not getting done for 6.1, because upstream just completed a completely new iser target for stgt.

Comment 13 Andy Grover 2011-12-20 21:19:06 UTC
implemented in rawhide, but we may or may not want to backport this to rhel6.

Comment 18 RHEL Program Management 2012-07-10 06:07:13 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 19 RHEL Program Management 2012-07-11 01:54:11 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 20 Andy Grover 2012-08-08 19:04:37 UTC
atm scsi-target-utils depends on ib stuff. I don't think it's worth diverging from upstream just to eliminate dependencies on two small packages. closing wontfix.