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 902863 - targetcli does not export proper information when using block backstore
Summary: targetcli does not export proper information when using block backstore
Keywords:
Status: CLOSED DUPLICATE of bug 873474
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: targetcli
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact: Bruno Goncalves
URL:
Whiteboard:
Depends On:
Blocks: 737672
TreeView+ depends on / blocked
 
Reported: 2013-01-22 14:43 UTC by Bruno Goncalves
Modified: 2023-03-08 07:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-11 01:31:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Bruno Goncalves 2013-01-22 14:43:48 UTC
Description of problem:


Version-Release number of selected component (if applicable):
rpm -q targetcli
targetcli-2.0rc1.fb19-1.el7.noarch

uname -r
3.7.0-0.32.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.modprobe scsi_debug  sector_size=4096 dev_size_mb=10 lowest_aligned=7 physblk_exp=3 num_parts=1

**new device is /dev/sdc

2.Create backstore target
targetcli /iscsi create iqn.2009-10.com.redhat:storage-1
targetcli /iscsi/iqn.2009-10.com.redhat:storage-1/tpg1/portals create ::0 3260
targetcli /backstores/block create target1-lun1 /dev/sdc
targetcli /iscsi/iqn.2009-10.com.redhat:storage-1/tpg1/luns create /backstores/block/target1-lun1 1
targetcli /iscsi set discovery_auth enable=0
targetcli /iscsi/iqn.2009-10.com.redhat:storage-1/tpg1 set attribute authentication=0
targetcli /iscsi/iqn.2009-10.com.redhat:storage-1/tpg1 set attribute generate_node_acls=1
targetcli /iscsi/iqn.2009-10.com.redhat:storage-1/tpg1 set attribute demo_mode_write_protect=0
targetcli saveconfig

iscsiadm -m discovery -I default -p 127.0.0.1 -t st
::ffff:127.0.0.1:3260,1 iqn.2009-10.com.redhat:storage-1

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

** new device /dev/sdd
3. Get VDP info from each device

sg_inq -p 0xb0 /dev/sdc
VPD INQUIRY: Block limits page (SBC)
  Maximum compare and write length: 0 blocks
  Optimal transfer length granularity: 8 blocks
  Maximum transfer length: 2560 blocks
  Optimal transfer length: 64 blocks
  Maximum prefetch, xdread, xdwrite transfer length: 0 blocks
  Maximum unmap LBA count: 0
  Maximum unmap block descriptor count: 0
  Optimal unmap granularity: 1
  Unmap granularity alignment valid: 0
  Unmap granularity alignment: 0
  
sg_inq -p 0xb0 /dev/sdd
VPD INQUIRY: Block limits page (SBC)
  Maximum compare and write length: 0 blocks
  Optimal transfer length granularity: 1 blocks
  Maximum transfer length: 8192 blocks
  Optimal transfer length: 8192 blocks
  Maximum prefetch, xdread, xdwrite transfer length: 0 blocks



Actual results:
Backstore VPD:
Optimal transfer length granularity: 8 blocks
Optimal transfer length: 64 blocks

LUN VPD:
Optimal transfer length granularity: 1 blocks
Optimal transfer length: 8192 blocks

Expected results:
targetcli should export the fields below properly.
Optimal transfer length granularity: 1 blocks
Optimal transfer length: 8192 blocks


Additional info:
When using pscsi the correct value is exported
sg_inq -p 0xb0 /dev/sdd
VPD INQUIRY: Block limits page (SBC)
  Maximum compare and write length: 0 blocks
  Optimal transfer length granularity: 8 blocks
  Maximum transfer length: 2560 blocks
  Optimal transfer length: 64 blocks
  Maximum prefetch, xdread, xdwrite transfer length: 0 blocks
  Maximum unmap LBA count: 0
  Maximum unmap block descriptor count: 0
  Optimal unmap granularity: 1
  Unmap granularity alignment valid: 0
  Unmap granularity alignment: 0

Comment 1 Andy Grover 2013-02-27 00:49:51 UTC
related to bug 895312.

Comment 4 Andy Grover 2014-02-11 01:31:20 UTC

*** This bug has been marked as a duplicate of bug 873474 ***


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