Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1076344

Summary: iscsid cannot handle more than 32 iscsi async events
Product: Red Hat Enterprise Linux 6 Reporter: mchristie
Component: iscsi-initiator-utilsAssignee: Chris Leech <cleech>
Status: CLOSED ERRATA QA Contact: Bruno Goncalves <bgoncalv>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5CC: agrover, bgoncalv, ccui, coughlan, jherrman, mchristie
Target Milestone: rcKeywords: OtherQA
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: iscsi-initiator-utils-6.2.0.873-11.el6 Doc Type: Bug Fix
Doc Text:
Prior to this update, the iscsid daemon could not handle more than 31 iSCSI asynchronous events. Therefore, when performing an iSCSI operation with 32 or more target protocol data units, iscsid entered an infinite loop and became unresponsive. With this update, iscsid can properly handle more than 31 iSCSI asynchronous events, and the described hang no longer occurs.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 08:08:06 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:

Description mchristie 2014-03-14 06:58:41 UTC
Description of problem:

When iscsi targets send 32 or more iscsi async event pdus the initiator will
run out of memory for events and this message:

BUG: iscsid: Can not allocate memory for receive context.

will be logged non stop. iscsid will then not be able to complete any more
requests because it is stuck in a endless loop printing that message.

This is fixed in upstream commit

https://github.com/mikechristie/open-iscsi/commit/36a8b41de43749d91dfd52f9c8ad4a454c9a8f15

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


How reproducible:


Steps to Reproduce:
1. Perform a operation that will result in sense being sent to the initiator.
For example, change the size of more than 32 devices.
2. This must be done on a iscsi target that sends sense asynchronously. The
most widely used ones are SCST based targets.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Bruno Goncalves 2014-05-30 14:45:54 UTC
Hi Mike,

could you help me with a reproducer for this problem?

I'm using SCST and I created 40 devices there using LVM as backend.

HANDLER vdisk_fileio {
        DEVICE disk1 {
                filename /dev/mapper/vg_test-lv_test1
        }
...


Then I discover and login to target.

Once I got all iSCSI devices connected I resize the LVM and run 
"# scstadmin -resync_dev disk'X' " to all 40 devices.

When it is completed I refresh the iSCSI sessions 
"# iscsiadm -m session -R"

All iSCSI devices now the new size, but I can't see any error there.


iscsi-initiator-utils-6.2.0.873-10.el6.x86_64
kernel: 2.6.32-431.el6.x86_64

Comment 5 Bruno Goncalves 2014-08-05 11:38:19 UTC
SanityOnly, as it passed our regression test, but we can find a reproducer for async events.

Comment 6 Bruno Goncalves 2014-08-05 11:38:42 UTC
Tested with iscsi-initiator-utils-6.2.0.873-11.el6.

Comment 7 Bruno Goncalves 2014-08-12 08:15:46 UTC
I was able to reproduce the issue when running IOs to all iSCSI devices and then rescanning the sessions with "iscsiadm -m session -R"

On iscsi-initiator-utils-6.2.0.873-10.el6:
iscsid: Can not allocate memory for receive context.


On iscsi-initiator-utils-6.2.0.873-11.el6 it works without problems.

Comment 8 errata-xmlrpc 2014-10-14 08:08:06 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-2014-1580.html

Comment 9 Red Hat Bugzilla 2023-09-14 02:05:00 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days