Bug 1015563
Summary: | iscsiadm: "iscsiadm -m node -l" fails if there is already some session | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Bruno Goncalves <bgoncalv> | |
Component: | iscsi-initiator-utils | Assignee: | Chris Leech <cleech> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Bruno Goncalves <bgoncalv> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 7.0 | CC: | agrover, cleech, nsoffer | |
Target Milestone: | rc | Keywords: | Regression, Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | iscsi-initiator-utils-6.2.0.873-20.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1108535 (view as bug list) | Environment: | ||
Last Closed: | 2014-06-13 12:54:33 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: | ||
Embargoed: |
Description
Bruno Goncalves
2013-10-04 13:51:57 UTC
rpm -q iscsi-initiator-utils iscsi-initiator-utils-6.2.0.873-7.el7.x86_64 iscsiadm -m discovery -I test1 -I test2 -p na3170b.lab.bos.redhat.com -t st 10.16.41.222:3260,1 iqn.1992-08.com.netapp:sn.151753773 10.16.43.127:3260,1 iqn.1992-08.com.netapp:sn.151753773 10.16.41.222:3260,1 iqn.1992-08.com.netapp:sn.151753773 10.16.43.127:3260,1 iqn.1992-08.com.netapp:sn.151753773 iscsiadm -m node -L automatic Logging in to [iface: test1, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] (multiple) Logging in to [iface: test1, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] (multiple) Login to [iface: test1, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] successful. Login to [iface: test1, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] successful. iscsiadm -m node -l Logging in to [iface: test2, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] (multiple) Logging in to [iface: test2, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] (multiple) Login to [iface: test2, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] successful. Login to [iface: test2, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] successful. It does not affect only leading login, but it fails any time there is already an online session. This upstream change moved the printed message from a debug classification to a warning and changed the exit code from 0 to 15 (ISCSI_ERR_SESS_EXISTS) when requesting a login to a node record that already has an active session. I believe all newly requested sessions are created, and it's only the warnings and exit code that have changed. Given the problems this can cause in scripted environments, I'm planning on backing this patch out. --- a/usr/session_mgmt.c +++ b/usr/session_mgmt.c @@ -178,12 +178,12 @@ int iscsi_login_portal(void *data, struct list_head *list, struct node_rec *rec) goto done; } if (session_count >= rec->session.nr_sessions) { - log_debug(1, "%s: %d session%s requested, but %d " + log_warning("%s: %d session%s requested, but %d " "already present.", rec->iface.name, rec->session.nr_sessions, rec->session.nr_sessions == 1 ? "" : "s", session_count); - rc = 0; + rc = ISCSI_ERR_SESS_EXISTS; goto done; } Verified with iscsi-initiator-utils-6.2.0.873-20.el7.x86_64 iscsiadm -m discovery -I test1 -I test2 -p na3170b.lab.bos.redhat.com -t st 10.16.41.222:3260,1 iqn.1992-08.com.netapp:sn.151753773 10.16.43.127:3260,1 iqn.1992-08.com.netapp:sn.151753773 10.16.41.222:3260,1 iqn.1992-08.com.netapp:sn.151753773 10.16.43.127:3260,1 iqn.1992-08.com.netapp:sn.151753773 iscsiadm -m node -L automatic Logging in to [iface: test1, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] (multiple) Logging in to [iface: test1, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] (multiple) Login to [iface: test1, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] successful. Login to [iface: test1, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] successful. # iscsiadm -m node -l Logging in to [iface: test2, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] (multiple) Logging in to [iface: test2, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] (multiple) Login to [iface: test2, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] successful. Login to [iface: test2, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] successful. # echo $? 0 This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. Same issue exists now in EL 6.5 and 6.6. When this bug was fixed, the version on EL 6.5 was 872-15. Now EL 6.5 is providing 873-10 and EL 6.6 873-13. This issue is a critical issue for RHEV - iscsiadm must keep the original behavior. Sorry, this was false alarm, both 873-10 and 873-13 works as expected. |