open-iscsi / targetd

Remote configuration of a LIO-based storage appliance
GNU General Public License v3.0
71 stars 28 forks source link

call to initiator_set_auth seems to have no effect #23

Closed raffaelespazzoli closed 6 years ago

raffaelespazzoli commented 7 years ago

when exposing a volume using a dynamic provisioner that I am developing for openshift and that you can find here: https://github.com/raffaelespazzoli/external-storage/tree/multipath/iscsi/targetd , the call to initiator_set_auth does not seem to have any effect, but does not return an error. The result with targetcli is the following:

[root@nfs-server ~]# targetcli ls 
o- / ......................................................................................................................... [...]
  o- backstores .............................................................................................................. [...]
  | o- block .................................................................................................. [Storage Objects: 1]
  | | o- vg-targetd:pvc-c348d2c1-964d-11e7-9d82-fa163e2bdbc5  [/dev/vg-targetd/pvc-c348d2c1-964d-11e7-9d82-fa163e2bdbc5 (4.0GiB) write-thru activated]
  | o- fileio ................................................................................................. [Storage Objects: 0]
  | o- pscsi .................................................................................................. [Storage Objects: 0]
  | o- ramdisk ................................................................................................ [Storage Objects: 0]
  o- iscsi .......................................................................................... [mutual disc auth, Targets: 1]
  | o- iqn.2003-01.org.example.mach1:1234 ................................................................................ [TPGs: 1]
  |   o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
  |     o- acls .......................................................................................................... [ACLs: 4]
  |     | o- iqn.2003-03.com.raffa:app-node-0 ..................................................................... [Mapped LUNs: 1]
  |     | | o- mapped_lun0 ................................... [lun0 block/vg-targetd:pvc-c348d2c1-964d-11e7-9d82-fa163e2bdbc5 (rw)]
  |     | o- iqn.2003-03.com.raffa:app-node-1 ..................................................................... [Mapped LUNs: 1]
  |     | | o- mapped_lun0 ................................... [lun0 block/vg-targetd:pvc-c348d2c1-964d-11e7-9d82-fa163e2bdbc5 (rw)]
  |     | o- iqn.2003-03.com.raffa:infranode-0 .................................................................... [Mapped LUNs: 1]
  |     | | o- mapped_lun0 ................................... [lun0 block/vg-targetd:pvc-c348d2c1-964d-11e7-9d82-fa163e2bdbc5 (rw)]
  |     | o- iqn.2003-03.com.raffa:master-0 ....................................................................... [Mapped LUNs: 1]
  |     |   o- mapped_lun0 ................................... [lun0 block/vg-targetd:pvc-c348d2c1-964d-11e7-9d82-fa163e2bdbc5 (rw)]
  |     o- luns .......................................................................................................... [LUNs: 1]
  |     | o- lun0  [block/vg-targetd:pvc-c348d2c1-964d-11e7-9d82-fa163e2bdbc5 (/dev/vg-targetd/pvc-c348d2c1-964d-11e7-9d82-fa163e2bdbc5)]
  |     o- portals .................................................................................................... [Portals: 1]
  |       o- 0.0.0.0:3260 ..................................................................................................... [OK]
  o- loopback ......................................................................................................... [Targets: 0]

I don't see any logs in targetd, everything seems to be normal.

I'm using this version of target on RHEL 7.4 targetd-0.8.6-1.el7.noarch

tasleson commented 7 years ago

@raffaelespazzoli Not sure if targetd has ever been tested on RHEL4, will need to see if LIO has the same functionality available in the API to set the initiator authentication.

RHEL4 doesn't have LIO support, how is this working...

raffaelespazzoli commented 7 years ago

@tasleson sorry, I meant RHEL 7.4. Basically the latest.

raffaelespazzoli commented 7 years ago

should I open a bug in the RHEL bugzilla?

tasleson commented 7 years ago

@raffaelespazzoli Sure, thanks!

raffaelespazzoli commented 7 years ago

created https://bugzilla.redhat.com/show_bug.cgi?id=1490631