-
Bug
-
Resolution: Done-Errata
-
Major
-
rhel-9.4
-
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
-
-
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
- 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 ~]#
- links to
-
RHBA-2023:123388 targetcli bug fix and enhancement update