RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1008528 - tgtd: pass-through. Initiator does not find any LUN from target.
Summary: tgtd: pass-through. Initiator does not find any LUN from target.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: scsi-target-utils
Version: 6.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact: Bruno Goncalves
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-16 14:31 UTC by Bruno Goncalves
Modified: 2015-10-09 12:47 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-09 12:47:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Bruno Goncalves 2013-09-16 14:31:56 UTC
Description of problem:

Login to a target using the configuration below does not provide any new LUN

default-driver iscsi
<target iqn.2009-10.com.redhat:storage-1>
    write-cache off
    allow-in-use yes
    <backing-store /dev/sdb>
        scsi_sn 1459111
        scsi_id 1459111
        lun 1
        bs-type rdwr
        device-type pt
    </backing-store>
</target>


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

How reproducible:
100%

Steps to Reproduce:
1.modprobe scsi_debug ptype=0 num_parts=1 dev_size_mb=40
new device is sdb

2.Create a /etc/tgt/targets.conf as defined above.

3.service tgtd start

4.iscsiadm -m discovery -I default -p 127.0.0.1 -t st
Starting iscsid: [  OK  ]
[  OK  ]
127.0.0.1:3260,1 iqn.2009-10.com.redhat:storage-1

5. iscsiadm -m node -l

6.lsscsi -g
[0:0:0:0]    disk    ATA      ST500NM0011      BB43  /dev/sda   /dev/sg0
[11:0:0:0]   disk    Linux    scsi_debug       0004  /dev/sdb   /dev/sg1
[12:0:0:0]   storage IET      Controller       0001  -         /dev/sg2
Actual results:


Expected results:
A new LUN on the server.

Comment 2 RHEL Program Management 2013-10-14 02:09:59 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 4 Bruno Goncalves 2015-10-09 12:47:38 UTC
The configuration from the description is not valid.

We should not be able to use bs-type rdwr and device-type pt. See BZ#1008528.

On RHEL-6.7 an error is returned when using this invalid config.

scsi-target-utils-1.0.24-16.el6.x86_64

# service tgtd start
Starting SCSI target daemon: [  OK  ]
tgtadm: invalid request
Command:
	tgtadm -C 0 --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/sdb --device-type pt --bstype rdwr 
exited with code: 22.


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