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 739843 - iscsiadm discovery cannot get correct iface information at first run
Summary: iscsiadm discovery cannot get correct iface information at first run
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: iscsi-initiator-utils
Version: 6.1
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact: Storage QE
URL:
Whiteboard:
Depends On:
Blocks: 767187 903130
TreeView+ depends on / blocked
 
Reported: 2011-09-20 08:12 UTC by Gris Ge
Modified: 2013-01-23 09:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Consequence: iSCSI discovery via a TOE (TCP Offload Engine) interface fails when the iscsiadm -m iface has never been executed. Cause: This is due to the iscsiadm -m discovery command not checking interface settings while the iscsiadm -m iface does. Fix: iscsiadm will try to create the default ifaces when it cannot fine one passed in. Result: Users do not have to run the extra iscsiadm -m iface command before running a command that operates on a iface.
Clone Of:
: 844427 903130 (view as bug list)
Environment:
Last Closed: 2012-06-20 14:49:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0957 0 normal SHIPPED_LIVE iscsi-initiator-utils bug fix and enhancement update 2012-06-19 20:59:34 UTC

Description Gris Ge 2011-09-20 08:12:46 UTC
Description of problem:

If perfrom iscsi discovery via TOE card right after iscsi-initiator-utils installed, iscsiadm will fail with iface not found issue.

=====
[root@storageqe-02 ~]# iscsiadm -m discovery -t st -p
na3170b.lab.bos.redhat.com \
> -I "be2iscsi.00:00:c9:a0:e9:0b"
Starting iscsid:                                           [  OK  ]
iscsiadm: Could not read iface info for be2iscsi.00:00:c9:a0:e9:0b. Make
sure a iface config with the file name and iface.iscsi_ifacename
be2iscsi.00:00:c9:a0:e9:0b is in /var/lib/iscsi/ifaces.

[root@storageqe-02 ~]# iscsiadm -m discovery -t st -p
na3170b.lab.bos.redhat.com -I "be2iscsi.00:00:c9:a0:e9:0b"
iscsiadm: Could not read iface info for be2iscsi.00:00:c9:a0:e9:0b. Make
sure a iface config with the file name and iface.iscsi_ifacename
be2iscsi.00:00:c9:a0:e9:0b is in /var/lib/iscsi/ifaces.
[root@storageqe-02 ~]# iscsiadm -m discovery -t st -p
na3170b.lab.bos.redhat.com -I "be2iscsi.00:00:c9:a0:e9:0b"
iscsiadm: Could not read iface info for be2iscsi.00:00:c9:a0:e9:0b. Make
sure a iface config with the file name and iface.iscsi_ifacename
be2iscsi.00:00:c9:a0:e9:0b is in /var/lib/iscsi/ifaces.
[root@storageqe-02 ~]# iscsiadm -m iface
default tcp,<empty>,<empty>,<empty>,<empty>
iser iser,<empty>,<empty>,<empty>,<empty>
be2iscsi.00:00:c9:a0:e9:09
be2iscsi,00:00:c9:a0:e9:09,<empty>,<empty>,<empty>
be2iscsi.00:00:c9:a0:e9:0b
be2iscsi,00:00:c9:a0:e9:0b,<empty>,<empty>,<empty>
[root@storageqe-02 ~]# iscsiadm -m discovery -t st -p
na3170b.lab.bos.redhat.com -I "be2iscsi.00:00:c9:a0:e9:0b"
10.16.41.222:3260,1001 iqn.1992-08.com.netapp:sn.151753773
10.16.43.127:3260,1002 iqn.1992-08.com.netapp:sn.151753773
=====

Work around: execute "iscsiadm -m iface" before discovery

Version-Release number of selected component (if applicable):
iscsi-initiator-utils-6.2.0.872-26.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Install iscsi-initiator-utils on server with iSCSI TOE card.
2. Perform disovery like this:
iscsiadm -m discovery -t st -p \
na3170b.lab.bos.redhat.com -I "be2iscsi.00:00:c9:a0:e9:0b"
3. discovery will failed if "iscsiadm -m iface" not execute before.
  
Actual results:
discovery failed with "iface not found" error

Expected results:
discovery correctly finished.

Additional info:
"iscsiadm -m iface" will check and setup correct iface. this should also be execute before discovery.

Comment 4 Caspar Zhang 2011-09-29 09:29:10 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
    "iscsiadm -m discovery" doesn't check iface settings. But "iscsiadm -m iface" does.

Consequence
    iscsi discovery via TOE iface will failed if "iscsiadm -m iface" has never been executed.

Workaround
    run "iscsiadm -m iface" at least once after iscsi-initiator-uitls installed. Once iface setting been updated, future discovery could perform without any error.

Result
    This bug only affected user who use hard-coded TOE iface for discovery. Normally, user needs to use "iscsiadm -m iface" to check the interface name, then discovery. Hence normal user will not affected.
    This bug only happen if "iscsiadm -m iface" has never been executed.

Comment 5 Martin Prpič 2011-09-29 10:00:12 UTC
Note added to the Storage and File Systems section in the Technical Notes

Comment 6 Martin Prpič 2011-09-29 10:00:12 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,12 +1 @@
-Cause
+iSCSI discovery via a TOE (TCP Offload Engine) interface fails when the iscsiadm -m iface has never been executed. This is due to the iscsiadm -m discovery command not checking interface settings while the iscsiadm -m iface does. To work around this issue, run the iscsiadm -m iface command at least once after installing the iscsi-initiatio-utils package. Once the interface setting is updated, discoveries are performed with no errors.-    "iscsiadm -m discovery" doesn't check iface settings. But "iscsiadm -m iface" does.
-
-Consequence
-    iscsi discovery via TOE iface will failed if "iscsiadm -m iface" has never been executed.
-
-Workaround
-    run "iscsiadm -m iface" at least once after iscsi-initiator-uitls installed. Once iface setting been updated, future discovery could perform without any error.
-
-Result
-    This bug only affected user who use hard-coded TOE iface for discovery. Normally, user needs to use "iscsiadm -m iface" to check the interface name, then discovery. Hence normal user will not affected.
-    This bug only happen if "iscsiadm -m iface" has never been executed.

Comment 8 Mike Christie 2012-03-06 21:38:20 UTC
*** Bug 800361 has been marked as a duplicate of this bug. ***

Comment 10 Mike Christie 2012-03-22 09:30:15 UTC
Fixed in iscsi-initiator-utils-6.2.0.872-37.el6.

Comment 12 Bruno Goncalves 2012-03-23 10:26:36 UTC
It has been fixed on iscsi-initiator-utils-6.2.0.872-38.el6.

reproduced the bug on iscsi-initiator-utils-6.2.0.872-36.el6

[root@storageqe-01 ~]# rpm -q iscsi-initiator-utils
iscsi-initiator-utils-6.2.0.872-36.el6.x86_64
[root@storageqe-01 ~]# modprobe bnx2i
[root@storageqe-01 ~]# iscsiadm -m discovery -t st -p na3170b.lab.bos.redhat.com -I bnx2i.00:10:18:88:e7:ff -I bnx2i.00:10:18:88:e7:fd
iscsiadm: Could not read iface info for bnx2i.00:10:18:88:e7:ff. Make sure a iface config with the file name and iface.iscsi_ifacename bnx2i.00:10:18:88:e7:ff is in /var/lib/iscsi/ifaces.
[root@storageqe-01 ~]# iscsiadm -m iface
[root@storageqe-01 ~]# iscsiadm -m discovery -t st -p na3170b.lab.bos.redhat.com -I bnx2i.00:10:18:88:e7:ff -I bnx2i.00:10:18:88:e7:fd
iscsiadm: Please set the iface.ipaddress for iface bnx2i.00:10:18:88:e7:ff, then retry the login command.

-------
rpm -q iscsi-initiator-utilsiscsi-initiator-utils-6.2.0.872-38.el6.x86_64
[root@storageqe-01 ~]# modprobe bnx2i
[root@storageqe-01 ~]# iscsiadm -m discovery -t st -p na3170b.lab.bos.redhat.com -I bnx2i.00:10:18:88:e7:ff -I bnx2i.00:10:18:88:e7:fd
iscsiadm: Please set the iface.ipaddress for iface bnx2i.00:10:18:88:e7:ff, then retry the login command.

Note: this error message to set ipaddress is just because it is needed to configure the IP address on bnx2i drive before running the discovery, but the discovery command was able to read the iface info, therefore this bug is fixed.

Comment 13 Mike Christie 2012-05-02 03:51:51 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1,4 @@
-iSCSI discovery via a TOE (TCP Offload Engine) interface fails when the iscsiadm -m iface has never been executed. This is due to the iscsiadm -m discovery command not checking interface settings while the iscsiadm -m iface does. To work around this issue, run the iscsiadm -m iface command at least once after installing the iscsi-initiatio-utils package. Once the interface setting is updated, discoveries are performed with no errors.+Consequence: iSCSI discovery via a TOE (TCP Offload Engine) interface fails when the iscsiadm -m iface has never been executed.
+Cause: This is due to the iscsiadm -m discovery command not checking interface settings while the iscsiadm -m iface does.
+Fix: iscsiadm will try to create the default ifaces when it cannot fine one passed in.
+Result: Users do not have to run the extra iscsiadm -m iface command before running a command that operates on a iface.

Comment 14 errata-xmlrpc 2012-06-20 14:49:01 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-2012-0957.html


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