Bug 1297792

Summary: targetcli - /loopback create does not create luns
Product: Red Hat Enterprise Linux 7 Reporter: lejeczek <peljasz>
Component: targetcliAssignee: Maurizio Lombardi <mlombard>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Hoyer <mhoyer>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.1CC: bgoncalv
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-22 14:52:02 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:

Description lejeczek 2016-01-12 13:22:03 UTC
Description of problem:

I'm having this:

ls /
o- / .................................................................................... [...]
  o- backstores ......................................................................... [...]
  | o- block ............................................................. [Storage Objects: 1]
  | | o- h200front .................... [/dev/mapper/h200front-0 (9.1TiB) write-thru activated]
  | o- fileio ............................................................ [Storage Objects: 0]
  | o- pscsi ............................................................. [Storage Objects: 0]
  | o- ramdisk ........................................................... [Storage Objects: 0]
  o- iscsi ....................................................................... [Targets: 1]
  | o- iqn.2003-01.org.linux-iscsi.rider.x8664:sn.c4b0d2fb1663 ...................... [TPGs: 1]
  |   o- tpg1 .......................................................... [no-gen-acls, no-auth]
  |     o- acls ..................................................................... [ACLs: 2]
  |     | o- iqn.1994-05.com.redhat:5ac472d57ced ............................. [Mapped LUNs: 1]
  |     | | o- mapped_lun0 ........................................ [lun0 block/h200front (rw)]
  |     | o- iqn.1994-05.com.redhat:5e4fbe456f22 ............................. [Mapped LUNs: 1]
  |     |   o- mapped_lun0 ........................................ [lun0 block/h200front (rw)]
  |     o- luns ..................................................................... [LUNs: 1]
  |     | o- lun0 ................................. [block/h200front (/dev/mapper/h200front-0)]
  |     o- portals ............................................................... [Portals: 1]
  |       o- 0.0.0.0:3260 ................................................................ [OK]


Initiators get to iscsi targets, but now trying to use loopback, a naa.xxx does get created and luns/ inside it but no actual luns. In global I have auto_add_mapped_luns=true


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

targetcli-2.1.fb37-3.el7.noarch
3.10.0-327.3.1.el7.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 lejeczek 2016-02-05 12:14:31 UTC
maybe not that important, manual create works.

Comment 4 Maurizio Lombardi 2019-03-22 14:52:02 UTC
I can't reproduce this with the latest rhel7 version.
Feel free to reopen it if you disagree