Bug 1096133

Summary: iSCSI: iscsi sessions are not restored after reboot (TOE cards)
Product: Red Hat Enterprise Linux 7 Reporter: Bruno Goncalves <bgoncalv>
Component: iscsi-initiator-utilsAssignee: Chris Leech <cleech>
Status: CLOSED WONTFIX QA Contact: Filip Suba <fsuba>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1302985 (view as bug list) Environment:
Last Closed: 2020-12-15 07:30:27 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:
Bug Depends On:    
Bug Blocks: 1302985    
Attachments:
Description Flags
dmesg.log none

Description Bruno Goncalves 2014-05-09 09:26:19 UTC
Description of problem:
After establishing an iSCSI session and rebooting the server, the iSCSI session is not restored.
It seems to impact only TOE cards, using iscsi_tcp works.

Version-Release number of selected component (if applicable):
iscsi-initiator-utils-6.2.0.873-21.el7.x86_64
3.10.0-123.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. configure TOE card
iscsiadm -m iface -I bnx2i.ac:16:2d:85:64:b9 -o update -n iface.ipaddress -v 0.0.0.0
bnx2i.ac:16:2d:85:64:b9 updated.
iscsiadm -m iface -I bnx2i.ac:16:2d:85:64:bd -o update -n iface.ipaddress -v 0.0.0.0
bnx2i.ac:16:2d:85:64:bd updated.


2.Discover iSCSI target
iscsiadm -m discovery -I bnx2i.ac:16:2d:85:64:b9 -I bnx2i.ac:16:2d:85:64:bd -p dell-equallogic-ps5000xv.lab.eng.brq.redhat.com -t st
iscsiadm: Could not set host net params (err 29)

iscsiadm: Connection to discovery portal 10.34.74.108 failed: internal error
iscsiadm: Could not set host net params (err 29)

iscsiadm: Connection to discovery portal 10.34.74.108 failed: internal error
iscsiadm: Could not set host net params (err 29)

iscsiadm: Connection to discovery portal 10.34.74.108 failed: internal error
iscsiadm: Could not set host net params (err 29)

iscsiadm: Connection to discovery portal 10.34.74.108 failed: internal error
10.34.74.109:3260,1 iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot
10.34.74.109:3260,1 iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot


3. Login to target
iscsiadm -m node -l
Logging in to [iface: bnx2i.ac:16:2d:85:64:b9, target: iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot, portal: 10.34.74.109,3260] (multiple)
Logging in to [iface: bnx2i.ac:16:2d:85:64:bd, target: iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot, portal: 10.34.74.109,3260] (multiple)
Login to [iface: bnx2i.ac:16:2d:85:64:b9, target: iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot, portal: 10.34.74.109,3260] successful.
Login to [iface: bnx2i.ac:16:2d:85:64:bd, target: iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot, portal: 10.34.74.109,3260] successful.


iscsiadm -m session -P1
Target: iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot (non-flash)
    Current Portal: 10.34.74.108:48140,1
    Persistent Portal: 10.34.74.109:3260,1
        **********
        Interface:
        **********
        Iface Name: bnx2i.ac:16:2d:85:64:b9
        Iface Transport: bnx2i
        Iface Initiatorname: iqn.1994-05.com.redhat:os-reboot
        Iface IPaddress: 10.34.37.136
        Iface HWaddress: ac:16:2d:85:64:b9
        Iface Netdev: ens1f0
        SID: 3
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE

        **********
        Interface:
        **********
        Iface Name: bnx2i.ac:16:2d:85:64:bd
        Iface Transport: bnx2i
        Iface Initiatorname: iqn.1994-05.com.redhat:os-reboot
        Iface IPaddress: 10.34.33.166
        Iface HWaddress: ac:16:2d:85:64:bd
        Iface Netdev: ens1f1
        SID: 4
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE


5. reboot server
reboot

6. check for iSCSI sessions
iscsiadm -m session
iscsiadm: No active sessions.


Additional info:


#manual login works
# iscsiadm -m node -l
Logging in to [iface: bnx2i.ac:16:2d:85:64:b9, target: iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot, portal: 10.34.74.109,3260] (multiple)
Logging in to [iface: bnx2i.ac:16:2d:85:64:bd, target: iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot, portal: 10.34.74.109,3260] (multiple)
Login to [iface: bnx2i.ac:16:2d:85:64:b9, target: iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot, portal: 10.34.74.109,3260] successful.
Login to [iface: bnx2i.ac:16:2d:85:64:bd, target: iqn.2001-05.com.equallogic:0-af1ff6-80e5d9bd9-c25a2651d6a535e8-os-reboot, portal: 10.34.74.109,3260] successful.

Comment 1 Bruno Goncalves 2014-05-09 09:27:38 UTC
Created attachment 893891 [details]
dmesg.log

Comment 3 Bruno Goncalves 2014-05-12 07:02:31 UTC
Also reproduced with be2iscsi (iSCSI boot) server.

iscsiadm -m session -P1
Target: iqn.1992-08.com.netapp:sn.151753773 (non-flash)
    Current Portal: 10.16.41.222:3260,1
    Persistent Portal: 10.16.41.222:3260,1
        **********
        Interface:
        **********
        Iface Name: be2iscsi.00:00:c9:a0:e9:09
        Iface Transport: be2iscsi
        Iface Initiatorname: iqn.1994-05.com.redhat:be2iscsi-storageqe-02
        Iface IPaddress: <empty>
        Iface HWaddress: 00:00:c9:a0:e9:09
        Iface Netdev: <empty>
        SID: 1
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE

        **********
        Interface:
        **********
        Iface Name: clone_of_be2iscsi.00:00:c9:a0:e9:09
        Iface Transport: be2iscsi
        Iface Initiatorname: iqn.1994-05.com.redhat:os-reboot
        Iface IPaddress: <empty>
        Iface HWaddress: 00:00:c9:a0:e9:09
        Iface Netdev: <empty>
        SID: 9
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE

        **********
        Interface:
        **********
        Iface Name: be2iscsi.00:00:c9:a0:e9:0b
        Iface Transport: be2iscsi
        Iface Initiatorname: iqn.1994-05.com.redhat:be2iscsi-storageqe-02
        Iface IPaddress: <empty>
        Iface HWaddress: 00:00:c9:a0:e9:0b
        Iface Netdev: <empty>
        SID: 8
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE

        **********
        Interface:
        **********
        Iface Name: clone_of_be2iscsi.00:00:c9:a0:e9:0b
        Iface Transport: be2iscsi
        Iface Initiatorname: iqn.1994-05.com.redhat:os-reboot
        Iface IPaddress: <empty>
        Iface HWaddress: 00:00:c9:a0:e9:0b
        Iface Netdev: <empty>
        SID: 10
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE
    Current Portal: 10.16.43.127:3260,1
    Persistent Portal: 10.16.43.127:3260,1
        **********
        Interface:
        **********
        Iface Name: be2iscsi.00:00:c9:a0:e9:0b
        Iface Transport: be2iscsi
        Iface Initiatorname: iqn.1994-05.com.redhat:be2iscsi-storageqe-02
        Iface IPaddress: <empty>
        Iface HWaddress: 00:00:c9:a0:e9:0b
        Iface Netdev: <empty>
        SID: 2
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE

        **********
        Interface:
        **********
        Iface Name: clone_of_be2iscsi.00:00:c9:a0:e9:0b
        Iface Transport: be2iscsi
        Iface Initiatorname: iqn.1994-05.com.redhat:os-reboot
        Iface IPaddress: <empty>
        Iface HWaddress: 00:00:c9:a0:e9:0b
        Iface Netdev: <empty>
        SID: 7
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE

        **********
        Interface:
        **********
        Iface Name: clone_of_be2iscsi.00:00:c9:a0:e9:09
        Iface Transport: be2iscsi
        Iface Initiatorname: iqn.1994-05.com.redhat:os-reboot
        Iface IPaddress: <empty>
        Iface HWaddress: 00:00:c9:a0:e9:09
        Iface Netdev: <empty>
        SID: 6
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE

        **********
        Interface:
        **********
        Iface Name: be2iscsi.00:00:c9:a0:e9:09
        Iface Transport: be2iscsi
        Iface Initiatorname: iqn.1994-05.com.redhat:be2iscsi-storageqe-02
        Iface IPaddress: <empty>
        Iface HWaddress: 00:00:c9:a0:e9:09
        Iface Netdev: <empty>
        SID: 5
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE


reboot 

iscsiadm -m session -P1
Target: iqn.1992-08.com.netapp:sn.151753773 (non-flash)
    Current Portal: 10.16.41.222:3260,1
    Persistent Portal: 10.16.41.222:3260,1
        **********
        Interface:
        **********
        Iface Name: be2iscsi.00:00:c9:a0:e9:09
        Iface Transport: be2iscsi
        Iface Initiatorname: iqn.1994-05.com.redhat:be2iscsi-storageqe-02
        Iface IPaddress: <empty>
        Iface HWaddress: 00:00:c9:a0:e9:09
        Iface Netdev: <empty>
        SID: 1
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE
    Current Portal: 10.16.43.127:3260,1
    Persistent Portal: 10.16.43.127:3260,1
        **********
        Interface:
        **********
        Iface Name: be2iscsi.00:00:c9:a0:e9:0b
        Iface Transport: be2iscsi
        Iface Initiatorname: iqn.1994-05.com.redhat:be2iscsi-storageqe-02
        Iface IPaddress: <empty>
        Iface HWaddress: 00:00:c9:a0:e9:0b
        Iface Netdev: <empty>
        SID: 2
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE

Comment 4 Bruno Goncalves 2014-11-14 09:29:27 UTC
Still reproducible:
kernel 3.10.0-201.el7 
iscsi-initiator-utils-6.2.0.873-23.el7

iscsiadm -m session -P1
Target: iqn.2008-09.com.example:storageqe-10.target1 (non-flash)
	Current Portal: 172.17.10.1:3260,1
	Persistent Portal: 172.17.10.1:3260,1
		**********
		Interface:
		**********
		Iface Name: be2iscsi.00:00:c9:e6:87:87.ipv4.0
		Iface Transport: be2iscsi
		Iface Initiatorname: iqn.1994-05.com.redhat:storageqe-15
		Iface IPaddress: <empty>
		Iface HWaddress: 00:00:c9:e6:87:87
		Iface Netdev: <empty>
		SID: 3
		iSCSI Connection State: LOGGED IN
		iSCSI Session State: LOGGED_IN
		Internal iscsid Session State: NO CHANGE

		**********
		Interface:
		**********
		Iface Name: be2iscsi.00:00:c9:e6:87:8b.ipv4.0
		Iface Transport: be2iscsi
		Iface Initiatorname: iqn.1994-05.com.redhat:storageqe-15
		Iface IPaddress: <empty>
		Iface HWaddress: 00:00:c9:e6:87:8b
		Iface Netdev: <empty>
		SID: 4
		iSCSI Connection State: LOGGED IN
		iSCSI Session State: LOGGED_IN
		Internal iscsid Session State: NO CHANGE

after reboot there is no session

Comment 6 Martin Hoyer 2017-04-13 11:28:23 UTC
Intel X540 iscsi_tcp:
kernel-3.10.0-632.el7.x86_64
iscsi-initiator-utils-6.2.0.874-1.el7.x86_64

iscsiadm -m discovery -I x540_1 -I x540_2 -p dell-equallogic-ps5000xv.lab.eng.brq.redhat.com -t st
iscsiadm: connect to 10.34.80.10 timed out
10.34.80.11:3260,1 iqn.2001-05.com.equallogic:0-af1ff6-bbe5d9bd9-7c67097399453f20-storageqe-82-io
10.34.80.11:3260,1 iqn.2001-05.com.equallogic:0-af1ff6-bbe5d9bd9-7c67097399453f20-storageqe-82-io

iscsiadm -m node -l 
Logging in to [iface: x540_1, target: iqn.2001-05.com.equallogic:0-af1ff6-bbe5d9bd9-7c67097399453f20-storageqe-82-io, portal: 10.34.80.11,3260] (multiple)
Logging in to [iface: x540_2, target: iqn.2001-05.com.equallogic:0-af1ff6-bbe5d9bd9-7c67097399453f20-storageqe-82-io, portal: 10.34.80.11,3260] (multiple)
Login to [iface: x540_1, target: iqn.2001-05.com.equallogic:0-af1ff6-bbe5d9bd9-7c67097399453f20-storageqe-82-io, portal: 10.34.80.11,3260] successful.
Login to [iface: x540_2, target: iqn.2001-05.com.equallogic:0-af1ff6-bbe5d9bd9-7c67097399453f20-storageqe-82-io, portal: 10.34.80.11,3260] successful.

iscsiadm -m session -P1
Target: iqn.2001-05.com.equallogic:0-af1ff6-bbe5d9bd9-7c67097399453f20-storageqe-82-io (non-flash)
	Current Portal: 10.34.80.10:3260,1
	Persistent Portal: 10.34.80.11:3260,1
		**********
		Interface:
		**********
		Iface Name: x540_1
		Iface Transport: tcp
		Iface Initiatorname: iqn.1994-05.com.redhat:storageqe-82-boot
		Iface IPaddress: 10.34.80.222
		Iface HWaddress: a0:36:9f:2d:4d:28
		Iface Netdev: <empty>
		SID: 1
		iSCSI Connection State: LOGGED IN
		iSCSI Session State: LOGGED_IN
		Internal iscsid Session State: NO CHANGE

		**********
		Interface:
		**********
		Iface Name: x540_2
		Iface Transport: tcp
		Iface Initiatorname: iqn.1994-05.com.redhat:storageqe-82-boot
		Iface IPaddress: 10.34.80.208
		Iface HWaddress: a0:36:9f:2d:4d:2a
		Iface Netdev: <empty>
		SID: 2
		iSCSI Connection State: LOGGED IN
		iSCSI Session State: LOGGED_IN
		Internal iscsid Session State: NO CHANGE

No session after reboot.

Comment 7 Martin Hoyer 2017-05-29 12:48:27 UTC
Reproducible with cxgb4i driver.

Comment 10 RHEL Program Management 2020-12-15 07:30:27 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.