Bug 1039827 - libiscsi API libiscsi_node_logout failed to logout session with specified iface
Summary: libiscsi API libiscsi_node_logout failed to logout session with specified iface
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: iscsi-initiator-utils
Version: 6.4
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Chris Leech
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-10 05:53 UTC by niko
Modified: 2017-12-06 11:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-06 11:20:07 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description niko 2013-12-10 05:53:19 UTC
Steps to Reproduce:

[root@192 tests]iscsiadm -m iface -I testiface0 -o new
[root@192 tests]iscsiadm -m iface -I testiface0 -o update -n iface.net_ifacename -v eth0
[root@192 tests]iscsiadm -m discovery -t st -p 192.168.1.6 -Itestiface0 -l

use libiscsi/test/test_logout test logout.
(node.address,node.name in test_logout.c modified)

[root@192 tests]# pwd
/root/rpmbuild/BUILD/open-iscsi-2.0-872-rc4-bnx2i.new/libiscsi/tests

[root@192 tests]# ./test_logout 
Error logging out: No matching session


Patch to fix this:

libiscsi_node_logout should also specify node.iface

--- a/libiscsi/libiscsi.c    2013-12-10 13:00:03.491334091 +0800
+++ b/libiscsi/libiscsi.c        2013-12-10 13:19:24.964099206 +0800
@@ -401,6 +401,8 @@
        rec->tpgt = node->tpgt;
        strlcpy(rec->conn[0].address, node->address, NI_MAXHOST);
        rec->conn[0].port = node->port;
+       if(!node->iface)
+               strcpy(rec->iface.name, node->iface);
 }
 
 int login_helper(void *data, node_rec_t *rec)

Comment 3 Jan Kurik 2017-12-06 11:20:07 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/


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