Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1518367 - Boot from iSCSI not establishing all sessions persistently
Summary: Boot from iSCSI not establishing all sessions persistently
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: iscsi-initiator-utils
Version: 7.4
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Chris Leech
QA Contact: Filip Suba
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-28 18:09 UTC by John Pittman
Modified: 2019-03-26 12:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.