RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1518367 - Boot from iSCSI not establishing all sessions persistently
Summary: Boot from iSCSI not establishing all sessions persistently
Keywords:
Status: CLOSED ERRATA
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: 1711360
TreeView+ depends on / blocked
 
Reported: 2017-11-28 18:09 UTC by John Pittman
Modified: 2021-09-03 13:46 UTC (History)
6 users (show)

Fixed In Version: iscsi-initiator-utils-6.2.0.874-17.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-31 20:03:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1124 0 None None None 2020-03-31 20:04:29 UTC

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


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