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 967952 - tgt-admin assumes that ACL consists only of IPs, while these can actually be just names
Summary: tgt-admin assumes that ACL consists only of IPs, while these can actually be ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: scsi-target-utils
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact: Bruno Goncalves
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-28 16:12 UTC by Jaroslav Kortus
Modified: 2015-10-09 13:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-09 13:41:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Kortus 2013-05-28 16:12:51 UTC
Description of problem:
tgt-admin assumes that ACL consists only of IPs, while these can actually be just names (IQNs).

Version-Release number of selected component (if applicable):
scsi-target-utils-1.0.24-2.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. define a target in tgtd.conf with initiator-name
2. observe that with tgt-admin -s there is the name listed in ACL for the target
3. tgt-admin --update ALL -f -c /etc/tgt/targets.conf
4. command 3 exits with 22

Actual results:
exit code 22
error:
tgtadm: this access control rule does not exist
Command:
	tgtadm -C 0 --op unbind --mode target --tid 13 -I CLUSTER2
exited with code: 22.


Expected results:
ACL removed with -Q

Additional info:

example target:
<target iqn.2008-09.com.example:beaker-disk-2-d1-path1>
direct-store /dev/vg_virts/beaker-disk-2-1
initiator-name CLUSTER2
scsi_id beaker-disk-2-1
scsi_sn beaker-disk-2-1
write-cache off
</target>


The affected line in my case is line 1070 of tgt-admin:
execute("tgtadm -C $control_port --op unbind --mode target --tid $tgtadm_output_tid{$current_     target} -I $acl");

where -I should be (in my case) replaced with -Q (as it's a name and not an address). For general case probably both should be tried and exit code > 0 returned only when both fail.

Comment 2 Andy Grover 2013-05-29 17:54:08 UTC
patch? :-)

Comment 3 Jaroslav Kortus 2013-10-05 18:48:01 UTC
why is this set for me and needinfo? I put all info I had to the description already.

Comment 4 RHEL Program Management 2013-10-14 03:29:32 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 5 Jaroslav Kortus 2015-10-09 13:40:26 UTC
I'm not able to reproduce the buggy behaviour with scsi-target-utils-1.0.24-16.el6.x86_64. I think we can close this for now.


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