Bug 1518367

Summary: Boot from iSCSI not establishing all sessions persistently
Product: Red Hat Enterprise Linux 7 Reporter: John Pittman <jpittman>
Component: iscsi-initiator-utilsAssignee: Chris Leech <cleech>
Status: CLOSED ERRATA QA Contact: Filip Suba <fsuba>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.4CC: loberman, nweddle, revers, rhandlin, tcleveng, tmilsond
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: iscsi-initiator-utils-6.2.0.874-17.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 20:03:52 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: 1711360    

Description John Pittman 2017-11-28 18:09:25 UTC
Description of problem:

When using a boot from iSCSI system, increasing nr_sessions to duplicate paths, not all sessions are being established at boot.

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

kernel-3.10.0-693.el7.x86_64
iscsi-initiator-utils-6.2.0.874-4.el7.x86_64

How reproducible:

Install system with 2 paths, configuring multipath.

[root@db006-finaltest ~]# iscsiadm -m session -P0
tcp: [1] 172.19.120.252:3260,1040 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [2] 172.19.120.251:3260,1039 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)

[root@db006-finaltest ~]# multipath -ll
3600a09803830416b735d4b6656774245 dm-0 NETAPP  ,LUN C-Mode
size=125G features='4 queue_if_no_path pg_init_retries 50 retain_attached_hw_handle' hwhandler='1 alua' wp=rw
`-+- policy='service-time 0' prio=50 status=active
  |- 1:0:0:0 sda 8:0  active ready running
  `- 2:0:0:0 sdb 8:16 active ready running

Post-install, create static interfaces, and login through those interfaces.  Additionally, increase nr_sessions to 2.  This should translate to 8 paths, but with the paths coming in through the default iface, it ends up being 10.

# iscsiadm -m iface -I ibft0-iscsi -o new
# iscsiadm -m iface -I ibft1-iscsi -o new

# iscsiadm -m iface -I ibft0-iscsi -o update -n iface.hwaddress -v  00:25:b5:00:00:34
# iscsiadm -m iface -I ibft1-iscsi -o update -n iface.hwaddress -v  00:25:b5:00:00:35

# iscsiadm -m discovery -t st -p 172.19.120.251 -I ibft0-iscsi --login
# iscsiadm -m discovery -t st -p 172.19.120.252 -I ibft0-iscsi --login
# iscsiadm -m discovery -t st -p 172.19.120.251 -I ibft1-iscsi --login
# iscsiadm -m discovery -t st -p 172.19.120.252 -I ibft1-iscsi --login

Sessions before boot:

[root@db006-finaltest ~]# iscsiadm -m session
tcp: [1] 172.19.120.252:3260,1040 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [10] 172.19.120.252:3260,1040 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [2] 172.19.120.251:3260,1039 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [3] 172.19.120.251:3260,1039 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [4] 172.19.120.251:3260,1039 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [5] 172.19.120.252:3260,1040 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [6] 172.19.120.252:3260,1040 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [7] 172.19.120.251:3260,1039 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [8] 172.19.120.251:3260,1039 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [9] 172.19.120.252:3260,1040 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)

Sessions after boot:

root@db006-test ~]# iscsiadm -m session
tcp: [1] 172.19.120.252:3260,1040 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [2] 172.19.120.251:3260,1039 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [3] 172.19.120.251:3260,1039 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [4] 172.19.120.251:3260,1039 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)
tcp: [5] 172.19.120.251:3260,1039 iqn.1992-08.com.netapp:sn.731d33c3c89a11e780dc00a098c5f418:vs.10 (non-flash)


Actual results:

Many missing sessions at reboot.

Expected results:

All sessions should be present after reboot.

Comment 12 Chris Leech 2019-10-17 06:37:29 UTC
The iscsi-mark-root-nodes script that makes sure all initramfs created sessions are marked as "onboot" instead of automatic or manual startup appears to be falsely identifying the additional records as being already active.

Comment 14 Filip Suba 2020-02-13 09:41:25 UTC
Verified with iscsi-initiator-utils-iscsiuio-6.2.0.874-17.el7. Regression testing passed.

Comment 16 errata-xmlrpc 2020-03-31 20:03:52 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.

https://access.redhat.com/errata/RHBA-2020:1124