| Summary: | libiscsi API libiscsi_node_logout failed to logout session with specified iface | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | niko <tongfw> |
| Component: | iscsi-initiator-utils | Assignee: | Chris Leech <cleech> |
| Status: | CLOSED WONTFIX | QA Contact: | Red Hat Kernel QE team <kernel-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4 | CC: | agrover, coughlan |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-12-06 11:20:07 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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/ |
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)