Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-23294

ACL LUN mapping for additional LUNs is not created

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhel-9.4
    • rhel-9.4
    • targetcli
    • None
    • targetcli-2.1.57-2.el9
    • Yes
    • Important
    • Regression
    • rhel-sst-storage-io
    • ssg_filesystems_storage_and_HA
    • 22
    • 23
    • 2
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None

      What were you trying to do that didn't work?

      When creating more than one LUN in a target, only the first LUN (LUN 0) is mapped to ACL. The second one (LUN 1) isn't:

      [root@kvm-05-guest03 ~]# targetcli /iscsi create iqn.2021-04.com.redhat:default
      Created target iqn.2021-04.com.redhat:default.
      Created TPG 1.
      Global pref auto_add_default_portal=true
      Created default portal listening on all IPs (0.0.0.0), port 3260.
      [root@kvm-05-guest03 ~]# targetcli /iscsi/iqn.2021-04.com.redhat:default/tpg1/acls create iqn.2021-04.com.redhat:installer
      Created Node ACL for iqn.2021-04.com.redhat:installer
      [root@kvm-05-guest03 ~]# targetcli /backstores/fileio create test1 test1.img 2GiB
      Created fileio test1 with size 2147483648
      [root@kvm-05-guest03 ~]# targetcli /backstores/fileio create test2 test2.img 2GiB
      Created fileio test2 with size 2147483648
      [root@kvm-05-guest03 ~]# targetcli /iscsi/iqn.2021-04.com.redhat:default/tpg1/luns create /backstores/fileio/test1/
      Created LUN 0.
      Created LUN 0->0 mapping in node ACL iqn.2021-04.com.redhat:installer
      [root@kvm-05-guest03 ~]# targetcli /iscsi/iqn.2021-04.com.redhat:default/tpg1/luns create /backstores/fileio/test2/
      Created LUN 1.
      [root@kvm-05-guest03 ~]#
      

      The same steps executed on RHEL-9.3 GA work as expected:

      [root@kvm-05-guest17 ~]# targetcli /iscsi create iqn.2021-04.com.redhat:default
      Created target iqn.2021-04.com.redhat:default.
      Created TPG 1.
      Global pref auto_add_default_portal=true
      Created default portal listening on all IPs (0.0.0.0), port 3260.
      [root@kvm-05-guest17 ~]# targetcli /iscsi/iqn.2021-04.com.redhat:default/tpg1/acls create iqn.2021-04.com.redhat:installer
      Created Node ACL for iqn.2021-04.com.redhat:installer
      [root@kvm-05-guest17 ~]# targetcli /backstores/fileio create test1 test1.img 2GiB
      Created fileio test1 with size 2147483648
      [root@kvm-05-guest17 ~]# targetcli /backstores/fileio create test2 test2.img 2GiB
      Created fileio test2 with size 2147483648
      [root@kvm-05-guest17 ~]# targetcli /iscsi/iqn.2021-04.com.redhat:default/tpg1/luns create /backstores/fileio/test1/
      Created LUN 0.
      Created LUN 0->0 mapping in node ACL iqn.2021-04.com.redhat:installer
      [root@kvm-05-guest17 ~]# targetcli /iscsi/iqn.2021-04.com.redhat:default/tpg1/luns create /backstores/fileio/test2/
      Created LUN 1.
      Created LUN 1->1 mapping in node ACL iqn.2021-04.com.redhat:installer
      [root@kvm-05-guest17 ~]#
      

      Please provide the package NVR for which bug is seen:

      RHEL-9.4.0-20240130.10
      targetcli-2.1.57-1.el9

      How reproducible:

      Always

      Steps to reproduce

      1.  See above

      Expected results

      ...
      [root@kvm-05-guest17 ~]# targetcli /iscsi/iqn.2021-04.com.redhat:default/tpg1/luns create /backstores/fileio/test2/
      Created LUN 1.
      Created LUN 1->1 mapping in node ACL iqn.2021-04.com.redhat:installer
      [root@kvm-05-guest17 ~]#
      

      Actual results

      ...
      [root@kvm-05-guest03 ~]# targetcli /iscsi/iqn.2021-04.com.redhat:default/tpg1/luns create /backstores/fileio/test2/
      Created LUN 1.
      [root@kvm-05-guest03 ~]#
      

              mlombard@redhat.com Maurizio Lombardi
              jstodola@redhat.com Jan Stodola
              Maurizio Lombardi Maurizio Lombardi
              Martin Hoyer Martin Hoyer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: