Bug 865739

Summary: tgtd: Can't login to target when configured to use iSNS.
Product: Red Hat Enterprise Linux 6 Reporter: Bruno Goncalves <bgoncalv>
Component: scsi-target-utilsAssignee: Andy Grover <agrover>
Status: CLOSED ERRATA QA Contact: Bruno Goncalves <bgoncalv>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: tlavigne
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
tgtd now properly reports its exported targets if configured to report them to an iSNS server.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 22:28:34 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:
Bug Depends On:    
Bug Blocks: 961026    

Description Bruno Goncalves 2012-10-12 09:48:40 UTC
Description of problem:
There is some regression.

on scsi-target-utils-1.0.24-2.el6.x86_64 the login do not work even with 1 LUN with 1 target.


Version-Release number of selected component (if applicable):
scsi-target-utils-1.0.24-2.el6.x86_64

How reproducible:
100%


#Previous version it works
scsi-target-utils-1.0.14-4.el6.x86_64

iscsiadm -m discoverydb -t isns -p 127.0.0.1 --discover
Starting iscsid:                                           [  OK  ]
127.0.0.1:3260,1 iqn.2009-10.com.redhat:storage-1
iscsiadm -m node -l
Logging in to [iface: isns_iface, target: iqn.2009-10.com.redhat:storage-1, portal: 127.0.0.1,3260] (multiple)
Login to [iface: isns_iface, target: iqn.2009-10.com.redhat:storage-1, portal: 127.0.0.1,3260] successful.


#Now it fails 
#(It seems the discovery is returning 0 to port)
scsi-target-utils-1.0.24-2.el6.x86_64

iscsiadm -m discoverydb -t isns -p 127.0.0.1 --discover
Starting iscsid:                                           [  OK  ]
127.0.0.1:0,1 iqn.2009-10.com.redhat:storage-1
iscsiadm -m node -l
Logging in to [iface: isns_iface, target: iqn.2009-10.com.redhat:storage-1, portal: 127.0.0.1,0] (multiple)
iscsiadm: Could not login to [iface: isns_iface, target: iqn.2009-10.com.redhat:storage-1, portal: 127.0.0.1,0].
iscsiadm: initiator reported error (8 - connection timed out)

---
Oct 12 05:01:06 storageqe-11 tgtd: print_scn_pdu(655) scn name: 36, iqn.1994-05.com.redhat:storageqe-11
Oct 12 05:01:07 storageqe-11 iscsid: connect to 127.0.0.1:0 failed (Connection refused)
Oct 12 05:01:10 storageqe-11 iscsid: connect to 127.0.0.1:0 failed (Connection refused)
Oct 12 05:01:14 storageqe-11 iscsid: connect to 127.0.0.1:0 failed (Connection refused)

Comment 1 RHEL Program Management 2012-10-12 09:49:48 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 3 Andy Grover 2013-08-27 22:37:58 UTC
proposed fix posted upstream, waiting for comments.

Comment 5 Bruno Goncalves 2013-08-30 17:03:48 UTC
Reproduced on scsi-target-utils-1.0.24-2.el6.x86_64

And verified fix on scsi-target-utils-1.0.24-8.el6.x86_64



iscsiadm -m discoverydb -t isns -p 127.0.0.1 --discover
127.0.0.1:3260,1 iqn.2009-10.com.redhat:storage-1

iscsiadm -m node -l
Logging in to [iface: isns_iface, target: iqn.2009-10.com.redhat:storage-1, portal: 127.0.0.1,3260] (multiple)
Login to [iface: isns_iface, target: iqn.2009-10.com.redhat:storage-1, portal: 127.0.0.1,3260] successful.

Comment 6 errata-xmlrpc 2013-11-21 22:28:34 UTC
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.

http://rhn.redhat.com/errata/RHBA-2013-1684.html