Bug 679046

Summary: [tgtd] - tgtd doesn't support GUID as scsi_id and scsi_sn parameters' value
Product: Red Hat Enterprise Linux 6 Reporter: Max Benenson <mbenenso>
Component: scsi-target-utilsAssignee: Andy Grover <agrover>
Status: CLOSED ERRATA QA Contact: Storage QE <storage-qe>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0CC: agrover, bdonahue, coughlan, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 18:58:44 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:
Attachments:
Description Flags
targets.conf file none

Description Max Benenson 2011-02-21 12:20:49 UTC
Description of problem:
tgtd doesn't support GUID for scsi_id and scsi_sn parameters

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

How reproducible:
Always

Steps to Reproduce:
1. vim /etc/tgt/targets.conf
2. create new target and set random GUIDs as its scsi_id and scsi_sn
3. service tgtd reload
4. tgtadm --op show --mode target
  
Actual results:
the output provided by the last line will display only the part of the original guid

Expected results:
should display the full representation of the guid

Additional info:
Please see scsi_sn and scsi_id of the LUN 1:

Target 3: iqn.2001-04.com.indigo-2211144228087
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
        I_T nexus: 18
            Initiator: iqn.1994-05.com.redhat:70f0dac0bc
            Connection: 0
                IP Address: 10.35.106.12
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00030000
            SCSI SN: beaf30
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store type: rdwr
            Backing store path: None
        LUN: 1
            Type: disk
            SCSI ID: bfbeba75-1429-4908
            SCSI SN: 8d408801-a72e-40a4-8e2b-f3b1e8cd
            Size: 10737 MB
            Online: Yes
            Removable media: No
            Backing store type: rdwr
            Backing store path: /dev/vg_autofiler01/indigo-2211144228087
    Account information:
    ACL information:
        10.35.106.12

Comment 2 Andy Grover 2011-03-08 19:28:41 UTC
please attach sample targets.conf, thanks.

Comment 3 Max Benenson 2011-03-15 21:23:12 UTC
Created attachment 485607 [details]
targets.conf file

Added targets.conf file

Comment 4 Andy Grover 2011-03-24 17:59:16 UTC
looks like field lengths are cutting these off. currently 24 and 32. Upping to 36 will allow guids to fit.

Comment 5 RHEL Program Management 2011-04-04 01:47:01 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

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

Comment 7 Barry Donahue 2011-10-17 17:57:36 UTC
Verified using initial test case on scsi-target-utils-1.0.14-4.el6.x86_64 on RHEL6.2-20111013.1.

Comment 8 errata-xmlrpc 2011-12-06 18:58:44 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-2011-1762.html