Bug 798178

Summary: iscsi bnx2i session logging will hang if bnx2x NIC his down.
Product: Red Hat Enterprise Linux 5 Reporter: Gris Ge <fge>
Component: iscsi-initiator-utilsAssignee: Chris Leech <cleech>
Status: CLOSED ERRATA QA Contact: Bruno Goncalves <bgoncalv>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.8CC: bgoncalv, coughlan, lmiksik, mchristi, sforsber, thenzl
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: When iscsid is starting an offloaded iSCSI session, the operational state of the associated network interface is now checked. The network interface is brought into an administrative up state automatically if needed. Reason: Some iSCSI offload hardware requires the network interface to be up to function properly. Previously this required additional network configuration steps before starting iSCSI. Result (if any): Offloaded iSCSI sessions can be established without manually configuring the network interface first, iscsid will bring the interface up if needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-08 07:43:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 809207    
Bug Blocks:    

Description Gris Ge 2012-02-28 09:00:40 UTC
Description of problem:

bnx2i iSCSI connection need its NICs in "up" state.
If bnx2x NICs is not configured as "on boot" while "iscsi" daemon is "on boot",
OS will hang at iSCSI loggin:
====
Setting up iSCSI targets: Logging in to [iface: bnx2i.00:10:18:88:e7:ff, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] (multiple)
Logging in to [iface: bnx2i.00:10:18:88:e7:fd, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] (multiple)
Logging in to [iface: bnx2i.00:10:18:88:e7:ff, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] (multiple)
Logging in to [iface: bnx2i.00:10:18:88:e7:fd, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] (multiple
====

I have waited it for more than 20 minutes, still no timeout.

User need to bring OS into single mode and disable "iscsi" and "iscsid" service for "on boot".

Version-Release number of selected component (if applicable):
RHEl 5.8 GA

How reproducible:
100%

Steps to Reproduce:
1. Setup iscsi connection on bnx2i.
2. Make sure bnx2x NICs is not "up when boot" in /etc/sysconfig/network-scripts/
3. Make sure "iscsi" and "iscsid" daemon is on boot.
4. reboot OS.
  
Actual results:
OS hang at "iscsiadm -m node -l"

Expected results:
there are many options for bnx2i:
 1. Automatically enable NICs when got iscsi connection request.
 2. Make sure iscsi connection is isolated from NIC's state.
 3. iscsiadm timeout for bnx2i and warm user to bring NIC up.

Additional info:
"iscsi" and "iscsid" daemon is default on in run level 3 and 5, it will cause OS hang on boot and only single user-mode could disable it. I am requesting blocker for it.

Comment 1 Mike Christie 2012-02-28 23:02:22 UTC
Will try to replicate here when I get some time. Adding devel ack for 5.9. Probably a bad setting or daemon segfaulting so could not send response.

Comment 4 Bruno Goncalves 2012-10-17 14:28:33 UTC
I've just installed iscsi-initiator-utils-6.2.0.872-16.el5

the server has 2 bnx2i cards on eth2 and eth3.
eth2: bnx2i.00:10:18:88:e7:fc
eth3: bnx2i.00:10:18:88:e7:fe

after boot only eth3 is up. Then I ran:

iscsiadm -m discovery -t st -p na3170b.lab.bos.redhat.com -I bnx2i.00:10:18:88:e7:ff -I bnx2i.00:10:18:88:e7:fd
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
Logging in to [iface: bnx2i.00:10:18:88:e7:ff, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] (multiple)
Logging in to [iface: default, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] (multiple)
Logging in to [iface: bnx2i.00:10:18:88:e7:fd, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] (multiple)
Logging in to [iface: bnx2i.00:10:18:88:e7:ff, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] (multiple)
Logging in to [iface: bnx2i.00:10:18:88:e7:fd, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] (multiple)
Login to [iface: bnx2i.00:10:18:88:e7:ff, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] successful.
Login to [iface: default, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] successful.
iscsiadm: Could not login to [iface: bnx2i.00:10:18:88:e7:fd, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260].
iscsiadm: initiator reported error (8 - connection timed out)
Login to [iface: bnx2i.00:10:18:88:e7:ff, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] successful.
iscsiadm: Could not login to [iface: bnx2i.00:10:18:88:e7:fd, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260].
iscsiadm: initiator reported error (8 - connection timed out)
iscsiadm: Could not log into all portals


iscsiadm -m session
tcp: [1] 10.16.43.127:3260,1 iqn.1992-08.com.netapp:sn.151753773
bnx2i: [2] 10.16.41.222:3260,1 iqn.1992-08.com.netapp:sn.151753773
bnx2i: [3] 10.16.43.127:3260,1 iqn.1992-08.com.netapp:sn.151753773


which means the server didn't bring up eth2 during login phase.

After bringing it up the login works

ifconfig eth2 up
iscsiadm -m node -l
Logging in to [iface: bnx2i.00:10:18:88:e7:fd, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] (multiple)
Logging in to [iface: bnx2i.00:10:18:88:e7:fd, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] (multiple)
Login to [iface: bnx2i.00:10:18:88:e7:fd, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.43.127,3260] successful.
Login to [iface: bnx2i.00:10:18:88:e7:fd, target: iqn.1992-08.com.netapp:sn.151753773, portal: 10.16.41.222,3260] successful.

Comment 7 Bruno Goncalves 2012-10-29 08:53:20 UTC
Problem has been resolved on

rpm -q iscsi-initiator-utils
iscsi-initiator-utils-6.2.0.872-16.el5

Comment 9 errata-xmlrpc 2013-01-08 07:43:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0092.html