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 1055064 - targetcli restoreconfig doesn't restore all iSCSI portals
Summary: targetcli restoreconfig doesn't restore all iSCSI portals
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel
Version: 7.0
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact: Bruno Goncalves
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-18 14:20 UTC by bfcutler
Modified: 2014-06-18 06:49 UTC (History)
4 users (show)

Fixed In Version: kernel-3.10.0-105.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:27:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
write.sh reproduces the problem and write.log shows the error (1.13 KB, application/gzip)
2014-01-18 14:20 UTC, bfcutler
no flags Details
updated test script (748 bytes, text/plain)
2014-01-22 01:05 UTC, Andy Grover
no flags Details

Description bfcutler 2014-01-18 14:20:41 UTC
Created attachment 852002 [details]
write.sh reproduces the problem and write.log shows the error

Description of problem:

"targetcli restoreconfig" doesn't always restore all iSCSI portals.  This can happen on reboot but also can be triggered manually.


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

Current RHEL7 Beta as of 1/18/14.

uname -r: 3.10.0-54.0.1.el7.x86_64

Version 2.1.fb31 of targetcli (per yum info targetcli)


How reproducible:

The attached tar file contains a script (write.sh) and results (write.log).

Simply execute "bash write.sh" and examine the output.  Upon failure, the output will contain one or more lines of the form:

Creating NetworkPortal object 192.168.1.2:3260 failed, skipped

Those lines should not be present and all portals should be correctly restored.

The example log provided has two such failures.


Additional info:

RHEL7 Beta is running within a VirtualBox (4.3.6) VM.  The host processor is a Xeon IvyBridge.  The host OS is Windows 7 Ultimate.

You can greatly increase the chance of failure by running with a single core.  Yes, I know that's not a supported configuration but perhaps it's helpful for debugging.

Comment 2 Andy Grover 2014-01-20 23:39:07 UTC
can reproduce

Comment 3 Andy Grover 2014-01-22 01:05:38 UTC
Created attachment 853546 [details]
updated test script

here's a cut-down version of the test script. Creating portals too fast leads to errors.

Comment 4 Andy Grover 2014-01-25 00:19:59 UTC
fix posted upstream

Comment 5 Andy Grover 2014-01-31 22:53:17 UTC
accepted upstream, waiting to show up in -stable

Comment 7 Jarod Wilson 2014-02-28 17:01:56 UTC
A kernel patch was submitted against this bug, so this bug needs to be against the kernel component. You'll have to reacquire flags now, unfortunately.

Comment 8 Jarod Wilson 2014-03-05 18:36:17 UTC
Patch(es) available on kernel-3.10.0-105.el7

Comment 11 Bruno Goncalves 2014-03-10 14:04:50 UTC
Verified. On kernel-3.10.0-105.el7.x86_64 it was not reproducible.

Easily reproducible on kernel-3.10.0-84.el7.x86_64

Configuration restored, 1 recoverable errors:
Creating NetworkPortal object 192.168.1.2:3260 failed: Could not create NetworkPortal in configFS., skipped


Note: I could reproduce this issue only on virtual machine.

Comment 12 Ludek Smid 2014-06-13 12:27:13 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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